CS61CL Machine Structures Lec 7 – Introduction to Digital Design David Culler Electrical Engineering and Computer Sciences University of California, Berkeley.

Slides:



Advertisements
Similar presentations
CT455: Computer Organization Logic gate
Advertisements

Introduction to Digital Systems By Dr. John Abraham UT-Panam.
I - Introduction © Copyright 2004, Gaetano Borriello and Randy H. Katz 1 Why study logic design? Obvious reasons  this course is part of the EE/CS/CE.
EELE 367 – Logic Design Module 2 – Modern Digital Design Flow Agenda 1.History of Digital Design Approach 2.HDLs 3.Design Abstraction 4.Modern Design Steps.
EECC341 - Shaaban #1 Lec # 1 Winter Introduction to Digital Systems Analog devices and systems process time-varying signals that can take.
CS 150 – Fall Lec #26 – Digital Design – 1 Digital Design and System Implementation zOverview of Physical Implementations zCMOS devices zCMOS transistor.
EECS 150 Fa04 Lecture 2 EECS Components and Design Techniques for Digital Systems Lec 02 – CMOS Technology David Culler Electrical Engineering.
Fall 2002EECS150 - Lec02-CMOS Page 1 EECS150 - Digital Design Lecture 2 - CMOS August 27, 2003 by Mustafa Ergen Lecture Notes: John Wawrzynek.
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 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.
Chapter 9_3 Following Instructions: Principles of Computer Operation.
Chapter 1. Introduction This course is all about how computers work But what do we mean by a computer? –Different types: desktop, servers, embedded devices.
Chapter 4 Gates and Circuits.
Spring 2002EECS150 - Lec02-CMOS Page 1 EECS150 - Digital Design Lecture 2 - CMOS January 24, 2002 John Wawrzynek.
© UC Berkeley 8/30/2007 EECS150-F05 CMOS lec02 1 EECS Components and Design Techniques for Digital Systems Lec 02 – Gates and CMOS Technology
CIS 314 : Computer Organization Lecture 1 – Introduction.
Railway Foundation Electronic, Electrical and Processor Engineering.
CS61C L20 Synchronous Digital Systems (1) Garcia, Spring 2007 © UCB Disk failures 15x specs!  A recent conference reveals that drives fail in real life.
© UC Berkeley CS61CL – Machine Structures David Culler Electrical Engineering and Computer Sciences University of California, Berkeley
Computer ArchitectureFall 2008 © August 20 th, Introduction to Computer Architecture Lecture 2 – Digital Logic Design.
Fundamentals of Digital Logic B. Furman 25NOV2014.
CS61CL Machine Structures Lec 8 – State and Register Transfers David Culler Electrical Engineering and Computer Sciences University of California, Berkeley.
Digital Design: An Embedded Systems Approach Using Verilog
Lecture 8 Topics –Switch –Transistor –CMOS transistor –Logic gates AND, OR, NOT Universal gates: NAND, NOR XOR.
Gates and Logic: From switches to Transistors, Logic Gates and Logic Circuits Hakim Weatherspoon CS 3410, Spring 2013 Computer Science Cornell University.
CS 61C L01 Introduction (1) Garcia, Spring 2004 © UCB Lecturer PSOE Dan Garcia CS61C www page www-inst.eecs.berkeley.edu/~cs61c/
Chapter 4 Gates and Circuits. 4–2 Chapter Goals Identify the basic gates and describe the behavior of each Describe how gates are implemented using transistors.
Chapter 4 Gates and Circuits.
Chapter 3 Digital Logic Structures. 3-2 Transistor: Building Block of Computers Microprocessors contain millions of transistors Intel Pentium 4 (2000):
1 CHAPTER 4: PART I ARITHMETIC FOR COMPUTERS. 2 The MIPS ALU We’ll be working with the MIPS instruction set architecture –similar to other architectures.
Chapter 4 Gates and Circuits. Integrated Circuits aka CHIPS What’s in this thing???? 4–2.
Chapter 4 Gates and Circuits.
CS 352 : Computer Organization and Design University of Wisconsin-Eau Claire Dan Ernst Elementary Digital Logic Apps O/S Arch  Arch Logic Digital Analog.
Chapter 2: Fundamentals of Digital Electronics Dr Mohamed Menacer Taibah University
CSCI-235 Micro-Computers in Science Hardware Design Part I.
Lecture 2 1 Computer Elements Transistors (computing) –How can they be connected to do something useful? –How do we evaluate how fast a logic block is?
CS61C L23 Synchronous Digital Systems (1) Garcia, Fall 2011 © UCB Senior Lecturer SOE Dan Garcia inst.eecs.berkeley.edu/~cs61c.
School of Computer Science G51CSA 1 Computer Systems Architecture Fundamentals Of Digital Logic.
Lecture 2. Logic Gates Prof. Taeweon Suh Computer Science Education Korea University 2010 R&E Computer System Education & Research.
Digital Logic Structures. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 3-2 Roadmap Problems Algorithms.
1 Boolean Algebra & Logic Gates. 2 Objectives Understand the relationship between Boolean logic and digital computer circuits. Learn how to design simple.
CS 61C: Great Ideas in Computer Architecture Synchronous Digital Systems 1 Instructors: John Wawrzynek & Vladimir Stojanovic
CSCI-100 Introduction to Computing Hardware Design Part I.
CHAPTER-2 Fundamentals of Digital Logic. Digital Logic Digital electronic circuits are used to build computer hardware as well as other products (digital.
Abstraction And Technology 1 Comp 411 – Fall /28/06 Computer Abstractions and Technology 1. Layer Cakes 2. Computers are translators 3. Switches.
Chapter 0 - reVieW Combinational Logic Circuit, Combinational Logic Circuit, Propagation Delay, Propagation Delay, Programmable Logic. Programmable Logic.
Logic Design / Processor and Control Units Tony Diep.
FPGA-Based System Design: Chapter 1 Copyright  2004 Prentice Hall PTR Moore’s Law n Gordon Moore: co-founder of Intel. n Predicted that number of transistors.
Chapter 3 Digital Logic Structures. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 3-2 Transistor: Building.
Moore’s Law and Its Future Mark Clements. 15/02/2007EADS 2 This Week – Moore’s Law History of Transistors and circuits The Integrated circuit manufacturing.
CS61C L20 Synchronous Digital Systems (1) Beamer, Spring 2008 © UCB Scott Beamer, Guest Lecturer inst.eecs.berkeley.edu/~cs61c CS61C : Machine Structures.
Integrated Microsystems Lab. EE372 VLSI SYSTEM DESIGNE. Yoon 1-1 Panorama of VLSI Design Fabrication (Chem, physics) Technology (EE) Systems (CS) Matel.
Introduction to Computing Systems and Programming Digital Logic Structures.
CS 61C: Great Ideas in Computer Architecture Hardware intro, Digital Logic 1 Instructors: Nicholas Weaver & Vladimir Stojanovic
Computer Organization IS F242. Course Objective It aims at understanding and appreciating the computing system’s functional components, their characteristics,
Logic gates.
COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE
Stateless Combinational Logic and State Circuits
Digital Signals Digital Signals have two basic states:
4. Transistors and logic gates
CS105 Introduction to Computer Concepts GATES and CIRCUITS
EEL 3705 / 3705L Digital Logic Design
Fundamentals of Computer Science Part i2
Digital Electronics Lab 2 Instructor:
Instructor:Po-Yu Kuo 教師:郭柏佑
HIGH LEVEL SYNTHESIS.
January 24 W’05 Yutao He 4532B Boelter Hall CSM51A/EEM16-Sec.1 W’05
COMS 361 Computer Organization
CSE 370 – Winter Introduction -2- 1
Presentation transcript:

CS61CL Machine Structures Lec 7 – Introduction to Digital Design David Culler Electrical Engineering and Computer Sciences University of California, Berkeley

CS61CL Road Map 10/14/09 CS61CL F09 2 Hardware Software Machine Lang. pgm Instruction Set Architecture Machine Organization HLL Program Asm Lang. Pgm Compiler Assembler foo.c foo.s foo.o I/O systemInstr. Set Proc. Digital Design Circuit Design Datapath & Control Layout & fab Semiconductor Materials foo.exe Linker

10/14/09 CS61CL F09 3 Linking Resolve names to addresses Relocate code and data blocks –Adjust internally resolved addresses J ____ Code Data Symbol table ref “foo” ext 32 def “bar” int 32 ref “bar” int 60 ref “xyz” int 80 ddef “xyz” int 16 32: J _32_ LW _16_ 60: 80: 16: 0610 Object file exe file 20: def “foo” int 20 … Object file SW $ra, 16($sp) 20: SW $ra, 16($sp) J ____ 132: J _32_ LW _16_ 160: 180:

10/14/09 CS61CL F09 4 Questions

10/14/09 CS61CL F09 5 Evolution of Instruction Sets Single Accumulator (EDSAC 1950) Accumulator + Index Registers (Manchester Mark I, IBM 700 series 1953) Separation of Programming Model from Implementation High-level Language Based (Stack)Concept of a Family (B )(IBM ) General Purpose Register Machines Complex Instruction SetsLoad/Store Architecture RISC (Vax, Intel ) (CDC 6600, Cray ) (MIPS,Sparc,HP-PA,IBM RS6000, 1987) iX86?

10/14/09 CS61CL F09 6 Dramatic Technology Advance Prehistory: Generations –1 st Tubes –2 nd Transistors –3 rd Integrated Circuits –4 th VLSI…. Discrete advances in each generation –Faster, smaller, more reliable, easier to utilize Modern computing: Moore’s Law –Continuous advance, fairly homogeneous technology

10/14/09 CS61CL F09 7 Moore’s Law “Cramming More Components onto Integrated Circuits” –Gordon Moore, Electronics, 1965 # on transistors on cost-effective integrated circuit double every 18 months

10/14/09 CS61CL F09 8 Example: Intel Pentium

10/14/09 CS61CL F09 9 Integrated Circuits Primarily Crystalline Silicon 1mm - 25mm on a side M transistors ( M “logic gates") conductive layers feature size ~ 0.13um = 0.13 x m “CMOS” most common - complementary metal oxide semiconductor Package provides: –spreading of chip-level signal paths to board-level –heat dissipation. Ceramic or plastic with gold wires. Chip in Package

10/14/09 CS61CL F09 10 Integrated Circuits Uses for digital IC technology today: –standard microprocessors »used in desktop PCs, and embedded applications »simple system design (mostly software development) –memory chips (DRAM, SRAM) –application specific ICs (ASICs) »custom designed to match particular application »can be optimized for low-power, low-cost, high-performance »high-design cost / relatively low manufacturing cost –field programmable logic devices (FPGAs, CPLDs) »customized to particular application after fabrication »short time to market »relatively high part cost –standardized low-density components »still manufactured for compatibility with older system designs

10/14/09 CS61CL F09 11 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: the basic element Implementing a simple circuit: Z  A A Z

10/14/09 CS61CL F09 12 Technology State “0” State “1” Relay logicCircuit OpenCircuit Closed CMOS logic volts volts Transistor transistor logic (TTL) volts volts Fiber OpticsLight offLight on Dynamic RAMDischarged capacitor Charged capacitor Nonvolatile memory (erasable)Trapped electronsNo trapped electrons Programmable ROMFuse blownFuse intact Bubble memoryNo magnetic bubbleBubble present Magnetic diskNo flux reversalFlux reversal Compact discNo pitPit Physical world to Digital world Sense the logical value, manipulate in a systematic fashion.

10/14/09 CS61CL F09 13 The Digital Abstraction Logical 1 (true) : V > Vdd –V th Logical 0 (false) : V < Vth Logical Gates –behave like boolean operators on these voltage signals –Produce signals that can be treated as logical values V +3 0 Logic 1 Logic 0 Logic Gate

10/14/09 CS61CL F09 14 CMOS “Devices” Cross Section Top View MOSFET (Metal Oxide Semiconductor Field Effect Transistor) Essentially a voltage-controlled switch N: closed when gate is Hi P: closed when gate is Lo nFET pFET

10/14/09 CS61CL F09 15 Transistor-level Logic Circuits (inv) Inverter (NOT gate): Vdd Gnd Vdd Gnd 0 volts inout 3 volts what is the relationship between in and out? 3 volts 0 volts

10/14/09 CS61CL F09 16 Example: NOT V out +3 0 Logic 0 Input Voltage Logic 1 Input Voltage V in +3 F inout T T F not( out, in)

10/14/09 CS61CL F09 17 Big idea: Self-restoring logic CMOS logic gates are self-restoring –Even if the inputs are imperfect, switching time is fast and outputs go “rail to rail” –Doesn’t matter how many you cascade »Although propagation delay increases Limit fan-out to ensure sharp and complete transition

10/14/09 CS61CL F09 18 Combinational Logic Symbols Common combinational logic systems have standard symbols called logic gates –Buffer, NOT –AND, NAND –OR, NOR Z A B Z Z A A B Easy to implement with CMOS transistors (the switches we have available and use most) ABA*BA+B

10/14/09 CS61CL F09 19 X Y Z XYZ XYZ XYZ XYZ Z X Y X Y Z XYZ XYZ XYZ XYZ Z X Y X xor Y = X Y' + X' Y X or Y but not both ("inequality", "difference") X xnor Y = X Y + X' Y' X and Y are the same ("equality", "coincidence") more Boolean Expressions to Logic Gates NAND NOR XOR X  Y XNOR X = Y

Administration Great job on Mid Term –Mean: 79%, Median: 82%, Min: 36, Max: 99 (3) Project 2 is due Monday 10/26 –Work in pieces »call snprintf / save / restore / rtn »copy format to buffer respecting bufferSize »dispatch to one format function »add other format functions Homework 6 out tonight 10/14/09 CS61CL F09 20

10/14/09 CS61CL F09 21 Relationship Among Representations *Theorem: Any Boolean function that can be expressed as a truth table can be written as an expression in Boolean Algebra using AND, OR, NOT. How do we convert from one to the other?

10/14/09 CS61CL F09 Recall: Addition Example: = 5 Unsigned binary addition Is just addition, base 2 Add the bits in each position and carry

Design an Adder 10/14/09 CS61CL F A B Ci Co S A B Ci Co S A B Ci Co S A B Ci Co S Ci A B Co S

10/14/09 CS61CL F09 24 Element of Time Logical change is not instantaneous Broader digital design methodology has to make it appears as such –Clocking, delay estimation, glitch avoidance V out +3 0 T Propagation delay

10/14/09 CS61CL F09 25 What makes Digital Systems tick? Combinational Logic time clk

10/14/09 CS61CL F09 26 Synchronous Circuit Design clock –distributed to all flip-flops ALL CYCLES GO THROUGH A REG! Combinational Logic Blocks (CL) –Acyclic –no internal state (no feedback) –output only a function of inputs Registers (reg) –collections of flip-flops

10/14/09 CS61CL F09 27 Modern Hardware Design Extremely Software Intensive –Design tools (schematic capture, hardware description lang.) –Simulation tools –Optimization tools –Verification tools –Supply chain and project management Managing complexity of fundamental –Modularity –Methodology –Clarity –Technology independence Push the edge –Of the available tools –Of the technology

10/14/09 CS61CL F09 28 Basic Design Tradeoffs You can usually improve on one at the expense of one or both of the others. These tradeoffs exist at every level in the system design - every sub-piece and component. Design Specification - –Functional Description. –Performance, cost, power constraints. As a designer you must make the tradeoffs necessary to achieve the function within the constraints.