Copyright: Shantanu Dutt ECE 465 Lecture Notes # 1 Introduction to Digital Design Shantanu Dutt ECE Dept. UIC.

Slides:



Advertisements
Similar presentations
Digital Integrated Circuits© Prentice Hall 1995 Combinational Logic COMBINATIONAL LOGIC.
Advertisements

Lecture #25 Timing issues
Digital CMOS Logic Circuits
Digital Integrated Circuits© Prentice Hall 1995 Combinational Logic COMBINATIONAL LOGIC.
MOS Transistors The gate material of Metal Oxide Semiconductor Field Effect Transistors was original made of metal hence the name. Present day devices’
Microelectronic Circuits, Sixth Edition Sedra/Smith Copyright © 2010 by Oxford University Press, Inc. C H A P T E R 14 Advanced MOS and Bipolar Logic Circuits.
Chapter 1 Combinational CMOS Logic Circuits Lecture # 4 Pass Transistors and Transmission Gates.
Chapter 3 Digital Logic Structures. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 3-2 Transistor: Building.
EE210 Digital Electronics Class Lecture 10 April 08, 2009
Lecture 08: Pass Transistor Logic
COMP541 Transistors and all that… a brief overview
CHAPTER 4: MOS AND CMOS IC DESIGN
Instructor:Po-Yu Kuo 教師:郭柏佑
Boolean Algebra & Logic Gates
EECS 465: Digital Systems Design Lecture Notes
CHAPTER 7 MULTI-LEVEL GATE CIRCUITS / NAND AND NOR GATES
Day 3: September 10, 2012 Gates from Transistors
Digital Integrated Circuits for Communication
COMP541 Transistors and all that… a brief overview
IV UNIT : GATE LEVEL DESIGN
ECE2030 Introduction to Computer Engineering Lecture 4: CMOS Network
VLSI System Design Lecture: 1.3 COMS LOGICs
VLSI Testing Lecture 5: Logic Simulation
Instructor:Po-Yu Kuo 教師:郭柏佑
EECS 465: Digital Systems Design Lecture Notes #3
PROPAGATION DELAY.
Montek Singh Oct 25, 2017 Lecture 9
ECE 331 – Digital System Design
Lecture 4 EGRE 254 1/26/09.
Reading: Hambley Ch. 7; Rabaey et al. Sec. 5.2
ECE 434 Advanced Digital System L03
ENG2410 Digital Design “CMOS Technology”
Basics Combinational Circuits Sequential Circuits Ahmad Jawdat
Chapter 12 : Field – Effect Transistors
Digital Logic Structures Logic gates & Boolean logic
Ratioed Logic.
Lecture 10: Circuit Families
COMBINATIONAL LOGIC.
Subject Name: Fundamentals Of CMOS VLSI Subject Code: 10EC56
EECS 465: Digital Systems Lecture Notes # 2
Design Technologies Custom Std Cell Performance Gate Array FPGA Cost.
Basic electrical properties
CMOS Combinational Gate
Design of Combinational Logic
CH7 Multilevel Gate Network
Prof. Hsien-Hsin Sean Lee
CSET 4650 Field Programmable Logic Devices
Instructor:Po-Yu Kuo 教師:郭柏佑
ECE 465 Lecture Notes # 1 Introduction to Digital Design
Chapter 7 Complementary MOS (CMOS) Logic Design
CMOS Combinational Gate
COMBINATIONAL LOGIC DESIGN
CSC 220: Computer Organization Logic Gates and Functions
EECS 465: Digital Systems Design Lecture Notes #3
Day 2: September 10, 2010 Transistor Introduction
Day 3: September 4, 2013 Gates from Transistors
EENG447 Digital IC Design Dr. Gürtaç Yemişcioğlu.
Ratioed Logic EE141.
CMOS Combinational Gate
COMP541 Combinational Logic - 3
Lecture 10: Circuit Families
Reading: Hambley Ch. 7; Rabaey et al. Secs. 5.2, 5.5, 6.2.1
COMP541 Transistors and all that… a brief overview
Copyright © Cengage Learning. All rights reserved.
COMBINATIONAL LOGIC - 2.
ECE 352 Digital System Fundamentals
PLA/PALs and PLA Design Optimization
Circuit Simplification and
Digital Electronics and Logic Design
Presentation transcript:

Copyright: Shantanu Dutt ECE 465 Lecture Notes # 1 Introduction to Digital Design Shantanu Dutt ECE Dept. UIC

Copyright: Shantanu Dutt

—the analog BW is proportional to n, the the # of distinct values or levels, while the corresponding digital BW is proportional to log n (or more exactly to V dd (log n))

Copyright: Shantanu Dutt i.e., 2’s complement number system, floating-point number system, etc.

Copyright: Shantanu Dutt

 Pure if-then-else type constructs can be implemented using combinational circuits  Loops and more generally a sequence of dependent actions need to be implemented using sequential circuits, since the circuit/system needs to at least “remember” where it is in the loop or sequence (plus possibly some iteration based loop state) in order to perform the combinational function at that position. Derived from direct logic inputs or encoded from sensor inputs Direct logic outputs or decoded to provide actuator inputs Derived from logic inputs (direct or encoded) and from current loop state.

Copyright: Shantanu Dutt

There are two switches S1 and S2 to control a light bulb (e.g., one switch near each door of a room w/ 2 doors). Design a logic circuit so that the bulb can be controlled (essentially, toggled) by either switch (i.e., by flicking/pushing either switch). S1S2Z np/0 0 p/11 np/01 p/1 0 1-switch flick transition arrows (verifying consistency of corresponding o/p transitions) S1S2Z np/0 1 p/10 np/00 p/1 1 Assume an initial condition Legend: np: not pushed (or, say, “up” posn) p: pushed (or, say, “down” posn) Design Steps (for small-size designs w/ up to around 6 vars; we will later learn about hierarchical or divide-and-conquer strategies for larger designs) 1a. If TT can be obtained directly (due to the nature of the problem statement), then get a “symbolic” TT, encode inputs and outputs, get the logic (0/1) TT, and go straight to the minimization step (Step 4). Otherwise go to Step 1b.

Copyright: Shantanu Dutt Alternate Statement Design Steps (for small-size designs w/ up to around 6 vars; we will later learn about hierarchical or divide-and-conquer strategies for larger designs) 1b. (symbolic)

Copyright: Shantanu Dutt

(Canonical SOP)

Copyright: Shantanu Dutt FPGAs—will do later)

Copyright: Shantanu Dutt

AB

Copyright: Shantanu Dutt

Drain Source

Copyright: Shantanu Dutt nMOS Transistor – Logic ‘1’ Transfer Ack: From V T,MP (or Vth) is the threshold voltage of the nMOS transistor. The gate-source voltage Vgs needs to be >= Vth for an nMOS transistor to conduct

Copyright: Shantanu Dutt nMOS Transistor – Logic ‘0’ Transfer Ack: From Thus, an nMOS transistor conducts a weak 1 and a strong 0 For a pMOS transistor to conduct, the gate-source voltage Vgs <= -Vth, and an analogous analysis shows that with the transistor conducting (Vg = 0): (a) the lowest output voltage can be Vth (any lower and the trans. switches off), and (b) the highest voltage can be Vdd. Thus, a pMOS transistor conducts a weak 0 and a strong 1

Copyright: Shantanu Dutt GATES IN SERIES Ack: From The output can thus be a very weak 1 Vdd Vdd -Vt Vdd -2Vt Vdd -3Vt Vdd -4Vt weak 1 very weak 1 Vdd

Copyright: Shantanu Dutt CMOS TRANSMISSION & LOGIC GATES  Thus an nMOS transistor passes a strong 0 and a weak 1.  A similar analysis (for pMOS, gate to source voltage has to be < the (negative) threhold voltage V T for transistor to conduct) shows that a pMOS transistor passes a strong 1 and a weak 0.  This is the basis of CMOS logic gates, where pMOS transistors are used in the “top” n/w connected to Vdd to conduct a strong or good 1, and nMOS transistors are used in the “bottom” or complementary n/w to conduct a strong 0.  Also, can Combine the two to make a CMOS pass gate, called a transmission gate, which will pass a strong 0 and a strong 1. Ack: Partly from

Copyright: Shantanu Dutt Even though pMOS conducts a good 1, a long series of pMOS transistors for a many- input gate can lead to excessive resistance R and thus a large output delay RC, where C is the load capacitance driven by the gate. Example: Consider an 8-variable NOR function f = (x7+x6+x5+x4+x3+x2+x1+x0)’. Its implementation using a single n/w is given below; we assume that a pMOS transistor has an on-resistance of Rp. Note that f = x7’x6’ ….. x1’x0’ x7x6x5x4 x3 x2 x1 x0 Corresponding compl. n/w (f’=x7+x6+….+x1+x0) V dd =3v GND f Output delay = 8RpC Problem w/ Large Switching Networks R = 8Rp

Copyright: Shantanu Dutt Problem with Large Switching Networks (contd) The solution for avoiding such excessive delay is using a number of smaller switching n/ws over “parallel” paths [otherwise, if all the smaller n/ws are on one sequential path, there will be no or little delay improvement]. Thus we need to break down a large function (function w/ many variables—generally > 6) into smaller ones that can each be implemented using smaller n/ws. This happens to a large extent when a function is represented as an SOP or POS expression (it is lready broken down into ANDs and ORs) but not always (e.g., an AND or OR term may have a large # of vars). E.g., the 8-i/p NOR function f can be decomposed as (and then impl as below): – f = [(x7+x6+x5+x4) + (x3+x2+x1+x0)]’ = [(x7’x6’x5’x4’)’ + (x3’x2’x1’x0’)’]’ = NOR(NAND(x7’,x6’,x5’,x4’), NAND(x3’,x2’,x1’,x0’)). – Alternatively, f = (x7+..+ x4)’ (x3+..+x0)’ = AND(NOR(x7,..,x4), NOR(x3,..x0)) = NOT(NAND(NOR(x7,..,x4), NOR(x3,..x0)))

Copyright: Shantanu Dutt Problem with Large Switching Networks (contd) The 8-i/p NOR function f can be decomposed as (and then impl as below): – f = [(x7+x6+x5+x4) + (x3+x2+x1+x0)]’ = [(x7’x6’x5’x4’)’ + (x3’x2’x1’x0’)’]’ = NOR(NAND(x7’,x6’,x5’,x4’), NAND(x3’,x2’,x1’,x0’)). g V dd =3V x7’ Rp x6’ x4’ x5’ GND Compl n/w for g GND V dd =3V x3’ Rp x2’ x0’ x1’ Compl n/w for h h delay = 4RpC V dd 2Rp x7’ x6’ x5’ x4’ x3’ x2’ x1’ x0’ f g h GND Compl n/w for NOR Note: Delay of a circuit = delay of its longest-delay path from input [i/p] to output [o/p] delay = 4RpC 4Rp Rp delay = 2RpC Total delay = ? Longest-delay paths (parallel w/ other paths) Parallel paths

Copyright: Shantanu Dutt Problem with Large Switching Networks (contd) These small switching networks are called gates Thus need to use small to medium-size (<= 4 inputs) gates to implement large logic functions 0 strong 1 Vdd 0 0 A cascade or series of NAND/NOR gates will produce strong 1’s as well as strong 0’s as well as smaller delay than a large switching n/w for the corresponding logic expression. strong 0 strong 1 X

Copyright: Shantanu Dutt Circuit Delay—Definition & Computation Assume R is the on-resistance of a single nMOS or pMOS transistor, and C its i/p or gate capacitance. Then the worst-case “top” network resistance R top of a gate gi is the k*R, where k = max. # of transistors in series in the top n/w of gi. Similarly, for the resistance R bot of the “bottom” or complementary n/w of gi. If C L is the capacitive load seen by a gate gi (generally = the sum of gate capacitances C of the transistors of the gate(s) that gi drives), then the delay in gi driving its output from 0  1 is R top * C L and the delay in gi driving its output from 1  0 is R bot * C L. In general, we define gate res. R g = max(R top, R bot ), and the delay of its output signal as R g * C L Example: For the 2 i/p NAND gate in Fig. 1, R top = R (note that in the worst-case only 1 pMOS transistor is on, so the res. then is R, and *not* R/2), R bot = 2R. Thus R g = 2R, and the gate’s output delay = R g *C L = 2R*C L. If the gate is driving a 2-input NAND/NOR/AND/OR gate, then = C L = 2C. The delay of a path =  (output delays of gates on the path). The delay of the path shown in Fig. 2 = [d(g1) + R g (g1)*C L (g2)] + [d(g2) + R g (g2)*C L (g3)] + [d(g3) + R g (g3)*C L (g4)] + [d(g4) + R g (g4)*C L (op)], where C L (op) is the load at the output of the path and d(gi) is the “intrinsic” delay of a gate gi to switch from off to on. Fig. 1: CMOS realization of a 2-i/p NAND gate Fig. 2: A path of a circuit and its delay g1 g2 g3 g4 R g (g1)*C L (g2) + R g (g2)*C L (g3) + R g (g3)*C L (g4) + R g (g4)*C L (op) A circuit path (g1  g2  g3  g4  output)

Copyright: Shantanu Dutt Circuit Delay (cont’d) The delay of a path =  (output delays of gates on the path). The delay of the path shown in Fig. 2 = [d(g1) + R g (g1)*C L (g2)] + [d(g2) + R g (g2)*C L (g3)] + [d(g3) + R g (g3)*C L (g4)] + [d(g4) + R g (g4)*C L (op)], where C L (op) is the load at the output of the path and d(gi) is the “intrinsic” delay of a gate gi to switch from off to on. Thus, assumimg that the d(gi) for all 2-i/p gates is the same and = d(g), the path delay = 4*d(g) + 2R*2C + 2R*2C + 2R*2C + 2R* C L (op) = 4*d(g) + 12RC + 2R* C L (op) = 4*d(g) + 16RC if C L (op) = 2C. If we ignore the d(gi)’s (which are typically small compared to the RC delays), the rest of the delay is the RC delay, which for this ex. = 16RC = 4*(2R*2C) The 2C part of the delay expression will remain unchanged (for nand/nor/and/or gates) irrespective if the gate sizes # of i/ps). However the 2R part in each term will change to kR where k = # of i/ps If the gates in Fig. 2 were all 3-i/p gates, the RC delay expression will be 4*(3R*2C) = 24RC = (3/2)*(16RC) (as the # of i/ps change from 2 to 3, delay increases proportionately by a factor of 3/2). Thus the delay is proportional to the sum of the # of each inputs along a path (8 for the path w/ 2-i/p gates and 12 if the gates are 3 i/ps). Thus a simple delay model we will use is that the delay of a gate w/ k i/ps = k, and add up this simplified gate delay units along a path to get the path’s delay. The delay of a circuit is the delay in the longest (max-delay) path of the circuit from primary inputs to an output Fig. 1: CMOS realization of a 2-i/p NAND gate Fig. 2: A path of a circuit and its delay g1 g2 g3 g4 R g (g1)*C L (g2) + R g (g2)*C L (g3) + R g (g3)*C L (g4) + R g (g4)*C L (op) A circuit path (g1  g2  g3  g4  output)

Copyright: Shantanu Dutt Determining Circuit Delay (intrinsic gate delay) + RC delay at gi’s o/p Assume that the intrinsic delay d(gi) of each gate except xor/xnor = 1.5 ns, that of xor/xnor gates is 3.5 ns, and each RC delay between a driving gate and driven i/p is 2.5 ns. Thus i/p -> o/p sink delay for each gate except xor/xnor = 4 ns, while that for xor/xnor is 6 ns