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.

Slides:



Advertisements
Similar presentations
Chapter 4 Gates and Circuits.
Advertisements

Switching circuits Composed of switching elements called “gates” that implement logical blocks or switching expressions Positive logic convention (active.
Sistemas Digitais I LESI - 2º ano Lesson 1 - Introduction U NIVERSIDADE DO M INHO E SCOLA DE E NGENHARIA Prof. João Miguel Fernandes
Sahar Mosleh PageCalifornia State University San Marcos 1 Introductory Concepts This section of the course introduces the concept of digital circuits and.
Logical Design.
1 CS/COE0447 Computer Organization & Assembly Language Logic Design.
Introduction to Digital Systems By Dr. John Abraham UT-Panam.
EECC341 - Shaaban #1 Lec # 1 Winter Introduction to Digital Systems Analog devices and systems process time-varying signals that can take.
EECS 150 Fa04 Lecture 2 EECS Components and Design Techniques for Digital Systems Lec 02 – CMOS Technology David Culler Electrical Engineering.
CS61C L23 Synchronous Digital Systems (1) Garcia, Fall 2011 © UCB Lecturer SOE Dan Garcia inst.eecs.berkeley.edu/~cs61c CS61C.
Chapter 4 Gates and Circuits.
© UC Berkeley 8/30/2007 EECS150-F05 CMOS lec02 1 EECS Components and Design Techniques for Digital Systems Lec 02 – Gates and CMOS Technology
Outline Chapter 1 Hardware, Software, Programming, Web surfing, … Chapter Goals –Describe the layers of a computer system –Describe the concept.
© 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.
DIGITAL ELECTRONICS CIRCUIT P.K.NAYAK P.K.NAYAK ASST. PROFESSOR SYNERGY INSTITUTE OF ENGINEERING & TECHNOLOGY.
Digital Design Copyright © 2006 Frank Vahid 1 Digital Design Slides to accompany the textbook Digital Design, First Edition, by Frank Vahid, John Wiley.
1 The development of modern computer systems Early electronic computers Mainframes Time sharing Microcomputers Networked computing.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 3 – Combinational Logic Design Part 1 –
Lecture 8 Topics –Switch –Transistor –CMOS transistor –Logic gates AND, OR, NOT Universal gates: NAND, NOR XOR.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Lecture 11 – Design Concepts.
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.
CSET 4650 Field Programmable Logic Devices
Chapter 4 Gates and Circuits.
Binary Codes Computers and other digital systems "work" with binary numbers. I/P & O/P is usually done using decimal numbers, alphabetics, special symbols.
Quiz # 2 Chapters 4, 5, & 6.
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.
Introduction to Computing Systems from bits & gates to C & beyond Chapter 3 Digital Logic Structures Transistors Logic gates & Boolean logic Combinational.
Chapter 4 Gates and Circuits.
COMPUTER SYSTEM ARCHITECTURE By Sohaib.  The digital computer is a digital system that performs various computational tasks.  The word digital implies.
Digital Electronics. Introduction to Number Systems & Codes Digital & Analog systems, Numerical representation, Digital number systems, Binary to Decimal.
Contemporary Logic Design Introduction © R.H. Katz Transparency No. 2-1 Chapter # 1: Introduction.
1 Chapter 1 Introduction * Many slides are from the authors.
Introduction to Computing Systems from bits & gates to C & beyond Chapter 3 Digital Logic Structures Transistors Logic gates & Boolean logic Combinational.
Logic Design Computer Architecture and Design Lecture 1.
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.
CSE 311 Foundations of Computing I Spring 2013, Lecture 3 Propositional Logic, Boolean Logic/Boolean Algebra 1.
Slide No. 1 Course: Logic Design Dr. Ali Elkateeb Topic: Introduction Course Number: COMP 1213 Course Title: Logic Design Instructor: Dr. Ali Elkateeb.
I - Introduction © Copyright 2004, Gaetano Borriello and Randy H. Katz 1 Why study logic design? Obvious reasons  this course is part of the CS/CompE.
1 Boolean Algebra & Logic Gates. 2 Objectives Understand the relationship between Boolean logic and digital computer circuits. Learn how to design simple.
Welcome CSC 480/580 – Digital Logic & Computer Design Term: Winter 2002 Instructor: William T Krieger.
CSCI-100 Introduction to Computing Hardware Design Part I.
DIGITAL SYSTEMS 2004 Rudolf Tracht and A.J. Han Vinck.
Module 1.2 Introduction to Verilog
Fall 2004EE 3563 Digital Systems Design EE 3563 VHSIC Hardware Description Language  Required Reading: –These Slides –VHDL Tutorial  Very High Speed.
CHAPTER-2 Fundamentals of Digital Logic. Digital Logic Digital electronic circuits are used to build computer hardware as well as other products (digital.
CSE 311 Foundations of Computing I
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.
CS/COE0447 Computer Organization & Assembly Language
CS151 Introduction to Digital Design Chapter 2: Combinational Logic Circuits Lecture 5: Binary Logic and Gates.
Chapter 3 Digital Logic Structures. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 3-2 Transistor: Building.
Introduction to ASIC flow and Verilog HDL
CS 61C: Great Ideas in Computer Architecture Hardware intro, Digital Logic 1 Instructors: Nicholas Weaver & Vladimir Stojanovic
Logic gates.
CS Fall Introduction - 1 Welcome to CS 150: Components and Design Techniques for Digital Systems This week What is logic design? What is digital.
Combinational Logic Design
Chapter #6: Sequential Logic Design
Stateless Combinational Logic and State Circuits
CSCI-100 Introduction to Computing
CS105 Introduction to Computer Concepts GATES and CIRCUITS
Digital Logic Structures Logic gates & Boolean logic
ECNG 1014: Digital Electronics Lecture 1: Course Overview
CSE 370 – Winter Sequential Logic - 1
January 10 W’05 Yutao He 4532B Boelter Hall CSM51A/EEM16-Sec.1 W’05
Welcome to CSE370: Introduction to Digital Design
Portions © Copyright 2009, S. Brown and Z Vranesic
Introductory Concepts
CSE 370 – Winter Introduction -2- 1
COMPUTER ORGANIZATION
Presentation transcript:

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 requirements  it is the implementation basis for all modern computing devices building large things from small components provide a model of how a computer works More important reasons  the inherent parallelism in hardware is often our first exposure to parallel computation  it offers an interesting counterpoint to software design and is therefore useful in furthering our understanding of computation

I - Introduction © Copyright 2004, Gaetano Borriello and Randy H. Katz 2 What will we learn in this class? The language of logic design  Boolean algebra, logic minimization, state, timing, CAD tools The concept of state in digital systems  analogous to variables and program counters in software systems How to specify/simulate/compile/realize our designs  hardware description languages  tools to simulate the workings of our designs  logic compilers to synthesize the hardware blocks of our designs  mapping onto programmable hardware Contrast with software design  sequential and parallel implementations  specify algorithm as well as computing/storage resources it will use

I - Introduction © Copyright 2004, Gaetano Borriello and Randy H. Katz 3 Applications of logic design Conventional computer design  CPUs, busses, peripherals Networking and communications  phones, modems, routers Embedded products  in cars, toys, appliances, entertainment devices Scientific equipment  testing, sensing, reporting The world of computing is much much bigger than just PCs!

I - Introduction © Copyright 2004, Gaetano Borriello and Randy H. Katz 4 A quick history lesson 1850: George Boole invents Boolean algebra  maps logical propositions to symbols  permits manipulation of logic statements using mathematics 1938: Claude Shannon links Boolean algebra to switches  his Masters’ thesis 1945: John von Neumann develops the first stored program computer  its switching elements are vacuum tubes (a big advance from relays) 1946: ENIAC... The world’s first completely electronic computer  18,000 vacuum tubes  several hundred multiplications per minute 1947: Shockley, Brittain, and Bardeen invent the transistor  replaces vacuum tubes  enable integration of multiple devices into one package  gateway to modern electronics

I - Introduction © Copyright 2004, Gaetano Borriello and Randy H. Katz 5 What is logic design? What is design?  given a specification of a problem, come up with a way of solving it choosing appropriately from a collection of available components  while meeting some criteria for size, cost, power, beauty, elegance, etc. What is logic design?  determining the collection of digital logic components to perform a specified control and/or data manipulation and/or communication function and the interconnections between them  which logic components to choose? – there are many implementation technologies (e.g., off-the-shelf fixed-function components, programmable devices, transistors on a chip, etc.)  the design may need to be optimized and/or transformed to meet design constraints

I - Introduction © Copyright 2004, Gaetano Borriello and Randy H. Katz 6 sense drive AND What is digital hardware? Collection of devices that sense and/or control wires that carry a digital value (i.e., a physical quantity that can be interpreted as a “0” or “1”)  example: digital logic where voltage 2.0v is a “1”  example: pair of transmission wires where a “0” or “1” is distinguished by which wire has a higher voltage (differential)  example: orientation of magnetization signifies a “0” or a “1” Primitive digital hardware devices  logic computation devices (sense and drive) are two wires both “1” - make another be “1” (AND) is at least one of two wires “1” - make another be “1” (OR) is a wire “1” - then make another be “0” (NOT)  memory devices (store) store a value recall a previously stored value

I - Introduction © Copyright 2004, Gaetano Borriello and Randy H. Katz 7 What is happening now in digital design? Important trends in how industry does hardware design  larger and larger designs  shorter and shorter time to market  cheaper and cheaper products Scale  pervasive use of computer-aided design tools over hand methods  multiple levels of design representation Time  emphasis on abstract design representations  programmable rather than fixed function components  automatic synthesis techniques  importance of sound design methodologies Cost  higher levels of integration  use of simulation to debug designs  simulate and verify before you build

I - Introduction © Copyright 2004, Gaetano Borriello and Randy H. Katz 8 New ability: to accomplish the logic design task with the aid of computer-aided design tools and map a problem description into an implementation with programmable logic devices after validation via simulation and understanding of the advantages/disadvantages as compared to a software implementation You must learn: concepts/skills/abilities Understanding the basics of logic design (concepts) Understanding sound design methodologies (concepts) Modern specification methods (concepts) Familiarity with a full set of CAD tools (skills) Realize digital designs in an implementation technology (skills) Appreciation for the differences and similarities (abilities) in hardware and software design

I - Introduction © Copyright 2004, Gaetano Borriello and Randy H. Katz 9 Digital Systems Digital vs. Analog Waveforms Analog: values vary over a broad range continuously Digital: only assumes discrete values +5 V –5 Time +5 V –5 101 Time

I - Introduction © Copyright 2004, Gaetano Borriello and Randy H. Katz 10 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):

I - Introduction © Copyright 2004, Gaetano Borriello and Randy H. Katz 11 conducting path composed of switches closes circuit current flowing through coil magnetizes core and causes normally closed (nc) contact to be pulled open when no current flows, the spring of the contact returns it to its normal position Relay networks A simple way to convert between conducting paths and switch settings is to use (electro-mechanical) relays. What is a relay? What determines the switching speed of a relay network?

I - Introduction © Copyright 2004, Gaetano Borriello and Randy H. Katz 12 Transistor networks Relays aren't used much anymore  some traffic light controllers are still electro-mechanical Modern digital systems are designed in CMOS technology  MOS stands for Metal-Oxide on Semiconductor  C is for complementary because there are both normally-open and normally-closed switches MOS transistors act as voltage-controlled switches  similar, though easier to work with than relays.

I - Introduction © Copyright 2004, Gaetano Borriello and Randy H. Katz 13 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 MOS transistors have three terminals: drain, gate, and source  they act as switches in the following way: if the voltage on the gate terminal is (some amount) higher/lower than the source terminal then a conducting path will be established between the drain and source terminals G SD G SD

I - Introduction © Copyright 2004, Gaetano Borriello and Randy H. Katz 14 3v X Y 0 volts xy 3 volts 0v what is the relationship between x and y? MOS networks 0 volts 3 volts

I - Introduction © Copyright 2004, Gaetano Borriello and Randy H. Katz 15 xy z1z2 0 volts 3 volts 0 volts 3 volts 0 volts 3 volts what is the relationship between x, y and z? Two input networks 3v XY 0v Z1Z1 3v XY 0v Z2Z2 3 volts 0 volts 3 volts 0 volts NAND NOR

I - Introduction © Copyright 2004, Gaetano Borriello and Randy H. Katz 16 scope of this course Representation of digital designs Physical devices (transistors, relays) Switches Truth tables Boolean algebra Gates Waveforms Finite state behavior Register-transfer behavior Concurrent abstract specifications

I - Introduction © Copyright 2004, Gaetano Borriello and Randy H. Katz 17 Digital vs. analog Convenient to think of digital systems as having only discrete, digital, input/output values In reality, real electronic components exhibit continuous, analog, behavior Why do we make the digital abstraction anyway?  switches operate this way  easier to think about a small number of discrete values Why does it work?  does not propagate small errors in values  always resets to 0 or 1

I - Introduction © Copyright 2004, Gaetano Borriello and Randy H. Katz 18 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 capacitorCharged 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 Mapping from physical world to binary world

I - Introduction © Copyright 2004, Gaetano Borriello and Randy H. Katz 19 inputsoutputs system Combinational vs. sequential digital circuits A simple model of a digital system is a unit with inputs and outputs: Combinational means "memory-less"  a digital circuit is combinational if its output values only depend on its input values

I - Introduction © Copyright 2004, Gaetano Borriello and Randy H. Katz 20 easy to implement with CMOS transistors (the switches we have available and use most) 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

I - Introduction © Copyright 2004, Gaetano Borriello and Randy H. Katz 21 Sequential logic Sequential systems  exhibit behaviors (output values) that depend not only on the current input values, but also on previous input values In reality, all real circuits are sequential  because the outputs do not change instantaneously after an input change  why not, and why is it then sequential? A fundamental abstraction of digital design is to reason (mostly) about steady-state behaviors  look at the outputs only after sufficient time has elapsed for the system to make its required changes and settle down

I - Introduction © Copyright 2004, Gaetano Borriello and Randy H. Katz 22 Synchronous sequential digital systems Outputs of a combinational circuit depend only on current inputs  after sufficient time has elapsed Sequential circuits have memory  even after waiting for the transient activity to finish The steady-state abstraction is so useful that most designers use a form of it when constructing sequential circuits:  the memory of a system is represented as its state  changes in system state are only allowed to occur at specific times controlled by an external periodic clock  the clock period is the time that elapses between state changes it must be sufficiently long so that the system reaches a steady-state before the next state change at the end of the period

I - Introduction © Copyright 2004, Gaetano Borriello and Randy H. Katz 23 B A C Clock Example of combinational and sequential logic Combinational:  input A, B  wait for clock edge  observe C  wait for another clock edge  observe C again: will stay the same Sequential:  input A, B  wait for clock edge  observe C  wait for another clock edge  observe C again: may be different

I - Introduction © Copyright 2004, Gaetano Borriello and Randy H. Katz 24 An example Calendar subsystem: number of days in a month (to control watch display)  used in controlling the display of a wrist-watch LCD screen  inputs: month, leap year flag  outputs: number of days

I - Introduction © Copyright 2004, Gaetano Borriello and Randy H. Katz 25 Implementation in software integer number_of_days ( month, leap_year_flag) { switch (month) { case 1: return (31); case 2: if (leap_year_flag == 1) then return (29) else return (28); case 3: return (31);... case 12: return (31); default: return (0); }

I - Introduction © Copyright 2004, Gaetano Borriello and Randy H. Katz 26 leap month d28d29d30d31 monthleapd28d29d30d ––––– 0001– – – – – – – – – – – ––––– 111–––––– Implementation as a combinational digital system Encoding:  how many bits for each input/output?  binary number for month  four wires for 28, 29, 30, and 31 Behavior:  combinational  truth table specification

I - Introduction © Copyright 2004, Gaetano Borriello and Randy H. Katz 27 symbol for and symbol for or symbol for not Combinational example (cont’d) Truth-table to logic to switches to gates  d28 = 1 when month=0010 and leap=0  d28 = m8'm4'm2m1'leap'  d31 = 1 when month=0001 or month=0011 or... month=1100  d31 = (m8'm4'm2'm1) + (m8'm4'm2m1) +... (m8m4m2'm1')  d31 = can we simplify more? monthleapd28d29d30d – – – – ––––– 111–––––– 0000–––––

I - Introduction © Copyright 2004, Gaetano Borriello and Randy H. Katz 28 Combinational example (cont’d) d28 = m8'm4'm2m1'leap’ d29 = m8'm4'm2m1'leap d30 = (m8'm4m2'm1') + (m8'm4m2m1') + (m8m4'm2'm1) + (m8m4'm2m1) = (m8'm4m1') + (m8m4'm1) d31 = (m8'm4'm2'm1) + (m8'm4'm2m1) + (m8'm4m2'm1) + (m8'm4m2m1) + (m8m4'm2'm1') + (m8m4'm2m1') + (m8m4m2'm1')

I - Introduction © Copyright 2004, Gaetano Borriello and Randy H. Katz 29 Activity How much can we simplify d31? What if we started the months with 0 instead of 1? (i.e., January is 0000 and December is 1011) d31 is true if:month is 7 or less and odd (1, 3, 5, 7), or month is 8 or more and even (8, 10, 12, and includes 14) d31 is true if:m8 is 0 and m1 is 1, or m8 is 1 and m1 is 0 d31 = m8’m1 + m8m1’ More complex expression (0, 2, 4, 6, 7, 9, 11): d31 = m8’m4’m2’m1’ + m8’m4’m2m1’ + m8’m4m2’m1’ + m8’m4m2m1’ + m8’m4m2m1 + m8m4’m2’m1 + m8m4’m2m1 d31 = m8’m1’ + m8’m4m2 + m8m1 (includes 13 and 15) d31 = (d28 + d29 + d30)’

I - Introduction © Copyright 2004, Gaetano Borriello and Randy H. Katz 30 Combinational example (cont’d) d28 = m8'm4'm2m1'leap’ d29 = m8'm4'm2m1'leap d30 = (m8'm4m2'm1') + (m8'm4m2m1') + (m8m4'm2'm1) + (m8m4'm2m1) d31 = (m8'm4'm2'm1) + (m8'm4'm2m1) + (m8'm4m2'm1) + (m8'm4m2m1) + (m8m4'm2'm4') + (m8m4'm2m1') + (m8m4m2'm1')

I - Introduction © Copyright 2004, Gaetano Borriello and Randy H. Katz 31 system data-path control state registers combinational logic multiplexer comparator code registers registerlogic switching networks Design hierarchy

I - Introduction © Copyright 2004, Gaetano Borriello and Randy H. Katz 32 Summary That was what the entire course is about  converting solutions to problems into combinational and sequential networks effectively organizing the design hierarchically  doing so with a modern set of design tools that lets us handle large designs effectively  taking advantage of optimization opportunities