2008Sp61C-L20-sb-SDS - CS61C L20 Synchronous Digital...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: CS61C L20 Synchronous Digital Systems (1) Beamer, Spring 2008 UCB Scott Beamer, Guest Lecturer inst.eecs.berkeley.edu/~cs61c CS61C : Machine Structures Lecture #20 Introduction to Synchronous Digital Systems 2008-3-12 Wif in Air Coast to Coast www.aircell.com CS61C L20 Synchronous Digital Systems (2) Beamer, Spring 2008 UCB Review C program: foo.c Assembly program: foo.s Executable(mach lang pgm): a.out Compiler Assembler Linker Loader Memory Object(mach lang module): foo.o lib.o CS61C L20 Synchronous Digital Systems (3) Beamer, Spring 2008 UCB 61C What are Machine Structures? Coordination of many levels of abstraction I/O system Processor Compiler Operating System (MacOS X) Application (Netscape) Digital Design Circuit Design Instruction Set Architecture Datapath & Control transistors Memory Hardware Software Assembler ISA is an important abstraction level: contract between HW & SW CS61C L20 Synchronous Digital Systems (4) Beamer, Spring 2008 UCB Below the Program High-level language program (in C) swap int v, int k){ int temp; temp = v[k]; v[k] = v[k+1]; v[k+1] = temp; } Assembly language program (for MIPS) swap: sll $2, $5, 2 add $2, $4,$2 lw $15, 0($2) lw $16, 4($2) sw $16, 0($2) sw $15, 4($2) jr $31 Machine (object) code (for MIPS) 000000 00000 00101 0001000010000000 000000 00100 00010 0001000000100000 . . ....
View Full Document

Page1 / 18

2008Sp61C-L20-sb-SDS - CS61C L20 Synchronous Digital...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online