{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

L15-ac-intro-sds-state1-6up

L15-ac-intro-sds-state1-6up - inst.eecs.berkeley.edu/~cs61c...

Info icon This preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
CS61C L15 Intro to SDS, State Elements I (1) Chae, Summer 2008 © UCB Albert Chae, Instructor inst.eecs.berkeley.edu/~cs61c CS61C : Machine Structures Lecture #15 – Intro to Synchronous Digital Systems, State Elements I 2008-7-16 Go BEARS~ CS61C L15 Intro to SDS, State Elements I (2) Chae, Summer 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 L15 Intro to SDS, State Elements I (3) Chae, Summer 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 . . . C compiler assembler CS61C L15 Intro to SDS, State Elements I (4) Chae, Summer 2008 © UCB 61C Levels of Representation lw $t0, 0($2) lw $t1, 4($2) sw $t1, 0($2) sw $t0, 4($2) High Level Language Program (e.g., C) Assembly Language Program (e.g.,MIPS) Machine Language Program (MIPS) Hardware Architecture Description (Logic, Logisim, etc.) Compiler Assembler Machine Interpretation temp = v[k]; v[k] = v[k+1]; v[k+1] = temp; 0000 1001 1100 0110 1010 1111 0101 1000 1010 1111 0101 1000 0000 1001 1100 0110 1100 0110 1010 1111 0101 1000 0000 1001 0101 1000 0000 1001 1100 0110 1010 1111 Logic Circuit Description (Logisim, etc.) Architecture Implementation CS61C L15 Intro to SDS, State Elements I (5) Chae, Summer 2008 © UCB Synchronous Digital Systems Synchronous: Means all operations are coordinated by a central clock . - It keeps the “heartbeat” of the system! Digital: Mean all values are represented by discrete values Electrical signals are treated as 1 s and 0 s and grouped together to form words. The hardware of a processor, such as the MIPS, is an example of a Synchronous Digital System CS61C L15 Intro to SDS, State Elements I (6) Chae, Summer 2008 © UCB Logic Design Next 4 weeks: we ll study how a modern processor is built; starting with basic elements as building blocks. Why study hardware design? Understand capabilities and limitations of hardware in general and processors in particular. What processors can do fast and what they can t do fast (avoid slow things if you want your code to run fast!) Background for more detailed hardware courses (CS 150, CS 152, EE 192) There is just so much you can do with processors. At some point you may need to design your own custom hardware.
Image of page 1

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

View Full Document Right Arrow Icon
CS61C L15 Intro to SDS, State Elements I (7) Chae, Summer 2008 © UCB PowerPC Die Photograph Let s look closer… CS61C L15 Intro to SDS, State Elements I (8) Chae, Summer 2008 © UCB Transistors 101 MOSFET Metal-Oxide-Semiconductor Field-Effect Transistor Come in two types: - n-type NMOSFET - p-type PMOSFET For n-type ( p-type opposite)
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern