
Carnegie Mellon Combinational Circuits Design of Digital Circuits 2017 Srdjan Capkun Onur Mutlu (Guest starring: Frank K. Gürkaynak and Aanjhan Ranganathan) http://www.syssec.ethz.ch/education/Digitaltechnik_17 1 Adapted from Digital Design and Computer Architecture, David Money Harris & Sarah L. Harris ©2007 Elsevier Carnegie Mellon What we will learn Tools to build digital circuits . Transistors . Gates . … and why they matter Boolean Algebra Combinational Circuits Verilog 2 Carnegie Mellon Abstraction Abstraction Levels Examples Application Software Programs Operating Systems Device drivers Architecture Instructions, Registers Micro architecture Datapath, Controllers Logic Adders, Memories This Course This Digital Circuits AND gates, NOT gates Analog Circuits Amplifiers Devices Transistors, Diodes Physics Electrons 3 Carnegie Mellon Crash course in EE All the good parts of EE in short . Just the best parts, only highlights We will have exercises where we need to put this into use . We will use Verilog to program FPGAs… . … and we will learn what these mean in a few hours What do we need to know to build computers . Understanding how they work will help you If you want to know more . Plenty of lectures/theses at EE (Prof. Benini, Gürkaynak) 4 Carnegie Mellon (micro)-Processors 5 Carnegie Mellon FPGAs 6 Carnegie Mellon Custom ASICs 7 Carnegie Mellon But they all look the same…. Microprocessors FPGAs ASICs In short: Common building Reprogrammable You customize block of Hardware, flexible everything Computers Development Time minutes days months Performance o + ++ Good for Simple to use Prototyping Mass production, Ubiquitous Small volume Max performance Programming Compiler Bitfile Design Masks Languages C/C++/Java/… Verilog/VHDL Verilog/VHDL Main Companies Intel, ARM Xilinx, Altera, TSMC, UMC, ST, Lattice Globalfoundries 8 Carnegie Mellon But they all look the same…. Microprocessors FPGAs ASICs In short: Common building Reprogrammable You customize block of Hardware, flexible everything Computers Development Time minutes days months Performance o + ++ Good for Simple to use Prototyping Mass production, Ubiquitous Small volume Max performance Programming Compiler Bitfile Design Masks Languages C/C++/Java/… Verilog/VHDL Verilog/VHDL Main Companies Intel, ARM Xilinx, Altera, TSMC, UMC, ST, Lattice Globalfoundries 9 Carnegie Mellon But they all look the same…. Microprocessors FPGAs ASICs In short: Common building Reprogrammable You customize block of Hardware, flexible everything Computers Development Time minutes days months Performance o + ++ Good for Simple to use Prototyping Mass production, Ubiquitous Small volume Max performance Programming Compiler Bitfile Design Masks Languages C/C++/Java/… Verilog/VHDL Verilog/VHDL Main Companies Intel, ARM Xilinx, Altera, TSMC, UMC, ST, Lattice Globalfoundries 10 Carnegie Mellon But they all look the same…. Microprocessors FPGAs ASICs In short: Common building Reprogrammable You customize block of Hardware, flexible everything Computers Development Time minutes days months Performance o + ++ Good for Simple to use Prototyping Mass production, Ubiquitous Small volume Max performance Programming Compiler Bitfile Design Masks Languages C/C++/Java/… Verilog/VHDL Verilog/VHDL Main Companies Intel, ARM Xilinx, Altera, TSMC, UMC, ST, Lattice Globalfoundries 11 Carnegie Mellon But they all look the same…. Microprocessors FPGAs ASICs In short: Common building Reprogrammable You customize block of Hardware, flexible everything Computers Development Time minutes days months Performance o + ++ Good for Simple to use Prototyping Mass production, Ubiquitous Small volume Max performance Programming Compiler Bitfile Design Masks Languages C/C++/Java/… Verilog/VHDL Verilog/VHDL Main Companies Intel, ARM Xilinx, Altera, TSMC, UMC, ST, Lattice Globalfoundries 12 Carnegie Mellon But they all look the same…. Microprocessors FPGAs ASICs Want to By learn program how ming these these In short: work Common building Reprogrammable You customize block of Hardware, flexible everything Computers Development Time minutes days months Performance o + ++ Good for Simple to use Prototyping Mass production, Ubiquitous SmallUsing volume this languageMax performance Programming Compiler Bitfile Design Masks Languages C/C++/Java/… Verilog/VHDL Verilog/VHDL Main Companies Intel, ARM Xilinx, Altera, TSMC, UMC, ST, Lattice Globalfoundries 13 Carnegie Mellon Building Blocks For Microchips Conductors . Metals: Aluminum, Copper Insulators . Glass (SiO2), Air Semiconductors . Silicon (Si), Germanium (Ge) 14 Carnegie Mellon Semiconductor 15 Carnegie Mellon N-type Doping 16 Carnegie Mellon P-type Doping 17 Carnegie Mellon What Is So Great About Semiconductors? You can “engineer” its properties . Make it P type by injecting type-III elements (B, Ga, In) . Make it N type by injecting elements from type-V (P,As) Starting with a pure semiconductor, you can combine P and N regions next to each other Allows you to make interesting electrical devices . Diodes . Transistors . Thrystors 18 Carnegie Mellon The transistor By combining . Conductors (Metals) . Insulators (Oxide) Gate . Semiconductors Source Drain We get a Transistor (MOS) . Basically it is a switch . Apply (positive) voltage to GATE . Current flows from DRAIN to SOURCE Why is this cool? . We can combine many of these to realize simple logic gates 19 Carnegie Mellon nMOS + pMOS = CMOS 20 Carnegie Mellon nMOS + pMOS = CMOS When One Type MOS works, the other is the load 21 Carnegie Mellon CMOS Gate Structure The general form used to construct any inverting logic pMOS gate, such as: pull-up NOT, NAND, or NOR. network . The networks may consist of inputs transistors in series or in output parallel. When transistors are in nMOS parallel, the network is ON if pull-down either transistor is ON. network . When transistors are in series, the network is ON only if all transistors are ON. 22 Carnegie Mellon CMOS Gates: NOT Gate NOT VDD A Y P1 Y = A A Y N1 A Y 0 1 GND 1 0 A P1 N1 Y 0 1 23 Carnegie Mellon CMOS Gates: NOT Gate NOT VDD A Y P1 Y = A A Y N1 A Y 0 1 GND 1 0 A P1 N1 Y 0 ON OFF 1 1 OFF ON 0 24 Carnegie Mellon CMOS Gates: NAND Gate NAND A Y P2 P1 B Y A N1 Y = AB B N2 A B Y 0 0 1 0 1 1 1 0 1 1 1 0 A B P1 P2 N1 N2 Y 0 0 0 1 1 0 1 1 25 Carnegie Mellon CMOS Gates: NAND Gate NAND N1 and N2 are connected in series; A Y P2 P1 both must be ON to pull B Y the output to GND. A N1 Y = AB P1 and P2 are in B N2 parallel; only one must A B Y be ON to pull the 0 0 1 output up to VDD. 0 1 1 1 0 1 1 1 0 A B P1 P2 N1 N2 Y 0 0 ON ON OFF OFF 1 0 1 ON OFF OFF ON 1 1 0 OFF ON ON OFF 1 1 1 OFF OFF ON ON 0 26 Carnegie Mellon Common Logic Gates 27 Carnegie Mellon Moore’s Law 28 Carnegie Mellon Moore’s Law Coined by Gordon Moore: . In 1965 . Co-founder of Intel Number of transistors that can be manufactured doubles roughly every 18 months. In other words: it increases 100 fold over 10 years. 29 Carnegie Mellon How Do We Keep Moore’s Law Manufacturing smaller structures . Some structures are already a few atoms in size Developing materials with better properties . Copper instead of Aluminum (better conductor) . Hafnium Oxide, air for Insulators . Making sure all materials are compatible is the challenge Optimizing the manufacturing steps . How to use 193nm ultraviolet light to pattern 20nm structures New technologies . FinFET, Gate All Around transistor, Single Electron Transistor… 30 Carnegie Mellon We can now build logic circuits functional spec inputs outputs timing spec A logic circuit is composed of: . Inputs . Outputs Functional specification (describes relationship between inputs and outputs) Timing specification (describes the delay between inputs changing and outputs responding) 31 Carnegie Mellon Circuits Circuit elements . E1, E2, E3 n1 . Each itself a circuit A E1 B E3 Y Nodes (wires) . Inputs: A, B, C C E2 Z . Outputs: Y, Z . Internal: n1 . To count the nodes look at . outputs of every circuit element . inputs to the entire circuit 32 Carnegie Mellon Types of Logic Circuits functional spec inputs outputs timing spec Combinational Logic . Memoryless . Outputs determined by current values of inputs . In some books called Combinatorial Logic Sequential Logic . Has memory . Outputs determined by previous and current values of inputs 33 Carnegie Mellon Rules of Combinational Composition Every circuit element is itself combinational Every node of the circuit is either . designated as an input to the circuit or . connects to exactly one output terminal of a circuit element The circuit contains no cyclic paths: every path through the circuit visits each circuit node at most once Example: (If E1-3 combinational) 34 Carnegie Mellon Boolean Equations Functional specification of outputs in terms of inputs Example (full adder – more later): S = F(A, B, Cin) A S B CL Cout = G(A, B, Cin) Cout Cin S = A B Cin Cout = AB + ACin + BCin 35 Carnegie Mellon Boolean Algebra Set of axioms and theorems to simplify Boolean equations Like regular algebra, but in some cases simpler because variables can have only two values (1 or 0) Axioms and theorems obey the principles of duality: . stay correct if ANDs and ORs interchanged and 0’s and 1’s interchanged . Examples: 0 = B ∙ B = 36 Carnegie Mellon Boolean Algebra Set of axioms and theorems to simplify Boolean equations Like regular algebra, but in some cases simpler because variables can have only two values (1 or 0) Axioms and theorems obey the principles of duality: . stay correct if ANDs and ORs interchanged and 0’s and 1’s interchanged . Examples: dual 0 = 1 1 = 0 B ∙ B = 0 B + B = 1 37 Carnegie Mellon Boolean Axioms Duality: If the symbols 0 and 1 and the operators • (AND) and + (OR) are interchanged, the statement will still be correct.
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages100 Page
-
File Size-