CS61C L23 Synchronous Digital Systems (1) Garcia, Fall 2011 © UCB Senior Lecturer SOE Dan Garcia www.cs.berkeley.edu/~ddgarcia inst.eecs.berkeley.edu/~cs61c.

Slides:



Advertisements
Similar presentations
CEG3420 L1 Intro.1 Copyright (C) 1998 UCB CEG3420 Computer Design Lecture 1 Philip Leong.
Advertisements

ECE 15B Computer Organization Spring 2010 Dmitri Strukov Lecture 2: Overview of Computer Organization Partially adapted from Computer Organization and.
Instructor: Senior Lecturer SOE Dan Garcia CS 61C: Great Ideas in Computer Architecture Pipelining Hazards 1.
CS 61C L13 Combinational Logic (1) A Carle, Summer 2005 © UCB inst.eecs.berkeley.edu/~cs61c/su05 CS61C : Machine Structures Lecture #13: Combinational.
CS 61C L29 Combinational Logic Blocks (1) Garcia, Spring 2004 © UCB Lecturer PSOE Dan Garcia inst.eecs.berkeley.edu/~cs61c.
CS61C L21 State Elements: CircuitsThat Remember (1) Garcia © UCB Lecturer PSOE Dan Garcia inst.eecs.berkeley.edu/~cs61c.
CS 61C L14 Combinational Logic (1) A Carle, Summer 2006 © UCB inst.eecs.berkeley.edu/~cs61c/su06 CS61C : Machine Structures Lecture #14: Combinational.
CS61C L20 Synchronous Digital Systems (1) Garcia, Spring 2010 © UCB Lecturer SOE Dan Garcia inst.eecs.berkeley.edu/~cs61c.
CS61C L23 Synchronous Digital Systems (1) Garcia, Fall 2011 © UCB Lecturer SOE Dan Garcia inst.eecs.berkeley.edu/~cs61c CS61C.
CS61C L21 State Elements : Circuits that Remember (1) Spring 2007 © UCB 161 Exabytes In 2006  In 2006 we created, captured, and replicated 161 exabytes.
CS61C L20 Synchronous Digital Systems (1) Garcia, Fall 2006 © UCB Blu-ray vs HD-DVD war over?  As you know, there are two different, competing formats.
CS61C L21 State Elements : Circuits that Remember (1) Garcia, Fall 2006 © UCB One Laptop per Child  The OLPC project has been making news recently with.
CS61C L14 Introduction to Synchronous Digital Systems (1) Beamer, Summer 2007 © UCB Scott Beamer, Instructor inst.eecs.berkeley.edu/~cs61c CS61C : Machine.
CS61C L14 Synchronous Digital Systems & State Elements I (1) Pearce, Summer 2010 © UCB inst.eecs.berkeley.edu/~cs61c CS61C : Machine Structures Lecture.
CIS 314 : Computer Organization Lecture 1 – Introduction.
CS 61C L20 Introduction to Synchronous Digital Systems (1) Garcia, Fall 2004 © UCB Lecturer PSOE Dan Garcia inst.eecs.berkeley.edu/~cs61c.
CS 61C L21 State Elements: CircuitsThat Remember (1) Garcia, Fall 2004 © UCB Lecturer PSOE Dan Garcia inst.eecs.berkeley.edu/~cs61c.
CS 61C L28 Representations of Combinatorial Logic Circuits (1) Garcia, Spring 2004 © UCB Lecturer PSOE Dan Garcia inst.eecs.berkeley.edu/~cs61c.
CS61C L20 Synchronous Digital Systems (1) Garcia, Spring 2007 © UCB Disk failures 15x specs!  A recent conference reveals that drives fail in real life.
CS61C L20 Introduction to Synchronous Digital Systems (1) Garcia © UCB Lecturer PSOE Dan Garcia inst.eecs.berkeley.edu/~cs61c.
CS61C L17 Combinational Logic (1) Chae, Summer 2008 © UCB Albert Chae, Instructor inst.eecs.berkeley.edu/~cs61c CS61C : Machine Structures Lecture #17.
Computer ArchitectureFall 2008 © August 20 th, Introduction to Computer Architecture Lecture 2 – Digital Logic Design.
CS61C L14 Introduction to Synchronous Digital Systems (1) Garcia, Fall 2005 © UCB Lecturer PSOE, new dad Dan Garcia inst.eecs.berkeley.edu/~cs61c.
CS61C L15 Synchronous Digital Systems (1) Beamer, Summer 2007 © UCB Scott Beamer, Instructor inst.eecs.berkeley.edu/~cs61c CS61C : Machine Structures Lecture.
CS3350B Computer Architecture Winter 2015 Lecture 5.2: State Circuits: Circuits that Remember Marc Moreno Maza [Adapted.
CS 61C L01 Introduction (1) Garcia, Spring 2004 © UCB Lecturer PSOE Dan Garcia CS61C www page www-inst.eecs.berkeley.edu/~cs61c/
CS231: Computer Architecture I Laxmikant Kale Fall 2004.
Chapter 3 Digital Logic Structures. 3-2 Transistor: Building Block of Computers Microprocessors contain millions of transistors Intel Pentium 4 (2000):
CS 61C: Great Ideas in Computer Architecture Lecture 9: Synchronous Digital Systems Instructor: Sagar Karandikar
Logic Design Computer Architecture and Design Lecture 1.
Digital Logic Structures. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 3-2 Roadmap Problems Algorithms.
CS61C L26 Combinational Logic Blocks (1) Garcia, Spring 2014 © UCB Very fast 3D Micro Printer  A new company called Nanoscribe has developed a fabrication.
CS 61C: Great Ideas in Computer Architecture Synchronous Digital Systems 1 Instructors: John Wawrzynek & Vladimir Stojanovic
CS35101 Computer Architecture Spring 2006 Week 1 Slides adapted from: Mary Jane Irwin ( Course url:
CSCI-100 Introduction to Computing Hardware Design Part I.
Inst.eecs.berkeley.edu/~cs61c UCB CS61C Great Ideas in Computer Architecture (aka Machine Structures) Lecture 40 – Summary & Goodbye “Evidence has emerged.
Introduction to Computer Organization
Instructor:Po-Yu Kuo 教師:郭柏佑
CS 232: Computer Architecture II Prof. Laxmikant (Sanjay) Kale.
Logic Design / Processor and Control Units Tony Diep.
Chapter 3 Digital Logic Structures. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 3-2 Transistor: Building.
CS 61C L4.1.1 Combinational Logic (1) K. Meinz, Summer 2004 © UCB CS61C : Machine Structures Lecture Logic Gates and Combinational Logic
Inst.eecs.berkeley.edu/~cs61c UCB CS61C Great Ideas in Computer Architecture (aka Machine Structures) Lecture 40 – Summary & Goodbye Sr Lecturer SOE Dan.
CS61C L20 Synchronous Digital Systems (1) Beamer, Spring 2008 © UCB Scott Beamer, Guest Lecturer inst.eecs.berkeley.edu/~cs61c CS61C : Machine Structures.
Instructor: Justin Hsia 7/24/2013Summer Lecture #181 CS 61C: Great Ideas in Computer Architecture Combinational and Sequential Logic, Boolean Algebra.
Instructor: Senior Lecturer SOE Dan Garcia CS 61C: Great Ideas in Computer Architecture Pipelining Hazards 1.
CS61C L24 State Elements : Circuits that Remember (1) Garcia, Fall 2014 © UCB Senior Lecturer SOE Dan Garcia inst.eecs.berkeley.edu/~cs61c.
CS 61C: Great Ideas in Computer Architecture Sequential Elements, Synchronous Digital Systems 1 Instructors: Vladimir Stojanovic & Nicholas Weaver
CS 61C: Great Ideas in Computer Architecture Hardware intro, Digital Logic 1 Instructors: Nicholas Weaver & Vladimir Stojanovic
CS61C L20 Thread Level Parallelism II (1) Garcia, Spring 2013 © UCB Senior Lecturer SOE Dan Garcia inst.eecs.berkeley.edu/~cs61c.
CS 61C: Great Ideas in Computer Architecture Finite State Machines, Functional Units 1 Instructors: Vladimir Stojanovic and Nicholas Weaver
Instructor: Justin Hsia 7/17/2012Summer Lecture #171 CS 61C: Great Ideas in Computer Architecture OpenMP, Transistors.
Riyadh Philanthropic Society For Science Prince Sultan College For Woman Dept. of Computer & Information Sciences CS 251 Introduction to Computer Organization.
CS 110 Computer Architecture Lecture 9: Finite State Machines, Functional Units Instructor: Sören Schwertfeger School of.
New-School Machine Structures Parallel Requests Assigned to computer e.g., Search “Katz” Parallel Threads Assigned to core e.g., Lookup, Ads Parallel Instructions.
CS 110 Computer Architecture Lecture 8: Synchronous Digital Systems Instructor: Sören Schwertfeger School of Information.
CS4100: 計算機結構 Course Outline 國立清華大學資訊工程學系 九十九年度第二學期.
Revisão de Circuitos Lógicos PARTE I. What are “Machine Structures”? Coordination of many levels of abstraction I/O systemProcesso r Compiler Operating.
Stateless Combinational Logic and State Circuits
State Circuits : Circuits that Remember
Inst.eecs.berkeley.edu/~cs61c CS61C : Machine Structures Lecture #21 State Elements: Circuits that Remember Hello to James Muerle in the.
Memristor memory on its way (hopefully)
4. Transistors and logic gates
COSC121: Computer Systems
Inst.eecs.berkeley.edu/~cs61c CS61CL : Machine Structures Lecture #8 – State Elements, Combinational Logic Greet class James Tu, TA.
Lecturer PSOE Dan Garcia
CS4100: 計算機結構 Course Outline
Lecturer PSOE Dan Garcia
Guest Lecturer: Justin Hsia
Instructor: Michael Greenbaum
Presentation transcript:

CS61C L23 Synchronous Digital Systems (1) Garcia, Fall 2011 © UCB Senior Lecturer SOE Dan Garcia inst.eecs.berkeley.edu/~cs61c CS61C : Machine Structures Lecture 23 Introduction to Synchronous Digital Systems (SDS) Switches, Transistors, Gates Web turns 25  In 1989, Sir Tim Berners- Lee sat in an office in CERN and developed the WWW. Celebrate: #web25 bits.blogs.nytimes.com/2014/03/11/as-the-world-wide-web-turns-25-fear-about-its-future

CS61C L23 Synchronous Digital Systems (2) Garcia, Spring 2013 © UCB New-School Machine Structures (It’s a bit more complicated!) Parallel Requests Assigned to computer e.g., Search “Garcia” Parallel Threads Assigned to core e.g., Lookup, Ads Parallel Instructions >1 one time e.g., 5 pipelined instructions Parallel Data >1 data one time e.g., Add of 4 pairs of words Hardware descriptions All one time Smart Phone Warehous e Scale Computer Software Hardware Harness Parallelism & Achieve High Performance Logic Gates Core … Memory (Cache) Input/Output Computer Main Memory Cor e Instruction Unit(s) Functional Unit(s) A 3 +B 3 A 2 +B 2 A 1 +B 1 A 0 +B 0 Today’s Lecture

CS61C L23 Synchronous Digital Systems (3) Garcia, Spring 2013 © UCB What is Machine Structures? 61C Coordination of many levels of abstraction I/O systemProcessor Compiler Operating System (MacOS X) Application (Chrome) 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 L23 Synchronous Digital Systems (4) Garcia, Spring 2013 © UCB Levels of Representation/Interpretation 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 (e.g., block diagrams) Compiler Assembler Machine Interpretation temp = v[k]; v[k] = v[k+1]; v[k+1] = temp; Logic Circuit Description (Circuit Schematic Diagrams) Architecture Implementation Anything can be represented as a number, i.e., data or instructions

CS61C L23 Synchronous Digital Systems (5) Garcia, Spring 2013 © UCB Synchronous Digital Systems Hardware of a processor, such as the MIPS, is an example of a Synchronous Digital System Synchronous: All operations coordinated by a central clock  “Heartbeat” of the system! Digital: All values represented by discrete values Electrical signals are treated as 1s and 0s; grouped together to form words

CS61C L23 Synchronous Digital Systems (6) Garcia, Spring 2013 © UCB Logic Design Next several 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 hw 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 in depth hw courses (CS 150, CS 152) –There is just so much you can do with standard processors: you may need to design own custom hw for extra performance

CS61C L23 Synchronous Digital Systems (7) Garcia, Spring 2013 © UCB Close switch (if A is “1” or asserted) and turn on light bulb (Z) AZ Open switch (if A is “0” or unasserted) and turn off light bulb (Z) Switches: Basic Element of Physical Implementations Implementing a simple circuit (arrow shows action if wire changes to “1”): Z  A A Z

CS61C L23 Synchronous Digital Systems (8) Garcia, Spring 2013 © UCB AND OR Z  A and B Z  A or B A B A B Switches (cont’d) Compose switches into more complex ones (Boolean functions):

CS61C L23 Synchronous Digital Systems (9) Garcia, Spring 2013 © UCB Transistor Networks Modern digital systems designed in CMOS – MOS: Metal-Oxide on Semiconductor – C for complementary: normally-open and normally-closed switches MOS transistors act as voltage-controlled switches

CS61C L23 Synchronous Digital Systems (10) Garcia, Spring 2013 © UCB n-channel open when voltage at G is low closes when: voltage(G) > voltage (S) +  p-channel closed when voltage at G is low opens when: voltage(G) < voltage (S) –  MOS Transistors Three terminals: drain, gate, and source – Switch action: if voltage on gate terminal is (some amount) higher/lower than source terminal then conducting path established between drain and source terminals G SD G SD

CS61C L23 Synchronous Digital Systems (11) Garcia, Spring 2013 © UCB 3v X Y 0 volts xy 3 volts 0v what is the relationship between x and y? MOS Networks “0” (ground) “1” (voltage source)

CS61C L23 Synchronous Digital Systems (12) Garcia, Spring 2013 © UCB Transistor Circuit Rep. vs. Block diagram Chips are composed of nothing but transistors and wires. Small groups of transistors form useful building blocks. Block are organized in a hierarchy to build higher-level blocks: ex: adders. abc “1” (voltage source) “0” (ground) (You can build AND, OR, NOT out of NAND!)

CS61C L23 Synchronous Digital Systems (13) Garcia, Spring 2013 © UCB How many hours h on Project 2a? a)0 ≤ h < 10 b)10 ≤ h < 20 c)20 ≤ h < 30 d)30 ≤ h < 40 e)40 ≤ h Other administrivia?

CS61C L23 Synchronous Digital Systems (14) Garcia, Spring 2013 © UCB I could live without your handouts… a)Strongly disagree b)Mildly disagree c)Neutral d)Mildly agree e)Strongly agree

CS61C L23 Synchronous Digital Systems (15) Garcia, Spring 2013 © UCB Signals and Waveforms: Clocks Signals When digital is only treated as 1 or 0 Is transmitted over wires continuously Transmission is effectively instant -Implies that any wire only contains 1 value at a time

CS61C L23 Synchronous Digital Systems (16) Garcia, Spring 2013 © UCB Signals and Waveforms

CS61C L23 Synchronous Digital Systems (17) Garcia, Spring 2013 © UCB Signals and Waveforms: Grouping

CS61C L23 Synchronous Digital Systems (18) Garcia, Spring 2013 © UCB Signals and Waveforms: Circuit Delay

CS61C L23 Synchronous Digital Systems (19) Garcia, Spring 2013 © UCB Sample Debugging Waveform

CS61C L23 Synchronous Digital Systems (20) Garcia, Spring 2013 © UCB Type of Circuits Synchronous Digital Systems are made up of two basic types of circuits: Combinational Logic (CL) circuits Our previous adder circuit is an example. Output is a function of the inputs only. Similar to a pure function in mathematics, y = f(x). (No way to store information from one invocation to the next. No side effects) State Elements: circuits that store information.

CS61C L23 Synchronous Digital Systems (21) Garcia, Spring 2013 © UCB Circuits with STATE (e.g., register)

CS61C L23 Synchronous Digital Systems (22) Garcia, Spring 2013 © UCB Peer Instruction 1)SW can peek at HW (past ISA abstraction boundary) for optimizations 2)SW can depend on particular HW implementation of ISA 12 a) FF b) FT c) TF d) TT

CS61C L23 Synchronous Digital Systems (23) Garcia, Spring 2013 © UCB system datapath control state registers combinational logic multiplexer comparator code registers registerlogic switching networks Design Hierarchy

CS61C L23 Synchronous Digital Systems (24) Garcia, Spring 2013 © UCB And in conclusion… ISA is very important abstraction layer Contract between HW and SW Clocks control pulse of our circuits Voltages are analog, quantized to 0/1 Circuit delays are fact of life Two types of circuits: Stateless Combinational Logic (&,|,~) State circuits (e.g., registers)