ENG2410 Digital Design “Cont .. Combinational Logic Circuits”

Slides:



Advertisements
Similar presentations
CT455: Computer Organization Logic gate
Advertisements

Digital Logic Design Gate-Level Minimization
Chapter 2 Logic Circuits.
Boolean Algebra and Combinational Logic
Combinational Circuits
1 COMP541 Combinational Logic and Design Montek Singh Jan 25, 2007.
Chapter 4 Gates and Circuits.
1 COMP541 Combinational Logic - 2 Montek Singh Jan 18, 2007.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 3 – Combinational Logic Design Part 1 –
Lecture 3. Boolean Algebra, Logic Gates
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 3 – Combinational Logic Design Part 1 –
Overview Part 1 – Design Procedure 3-1 Design Procedure
Lecture 3. Boolean Algebra, Logic Gates Prof. Sin-Min Lee Department of Computer Science 2x.
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.
Module 3.  Binary logic consists of :  logic variables  designated by alphabet letters, e.g. A, B, C… x, y, z, etc.  have ONLY 2 possible values:
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.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Lecture 12 – Design Procedure.
Chapter 4 Gates and Circuits.
1 Logic Gates Digital Computer Logic Kashif Bashir WWW:
BOOLEAN ALGEBRA Saras M. Srivastava PGT (Computer Science)
Digital Electronics. Introduction to Number Systems & Codes Digital & Analog systems, Numerical representation, Digital number systems, Binary to Decimal.
Combinational Logic Design BIL- 223 Logic Circuit Design Ege University Department of Computer Engineering.
Digital Logic. 4 Why is 32-bit or 64-bit significant in terms of speed, efficiency? 4 Difference between OR and XOR 4 What is a mux for? PLA 4 Two kinds.
CHAPTER 4 Combinational Logic
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 3 – Combinational Logic Design Part 1 –
Sneha.  Gates Gates  Characteristics of gates Characteristics of gates  Basic Gates Basic Gates  AND Gate AND Gate  OR gate OR gate  NOT gate NOT.
EE 5900 Advanced Algorithms for Robust VLSI CAD, Spring 2009 Combinational Circuits.
1 CS 151: Digital Design Chapter 3: Combinational Logic Design 3-1Design Procedure CS 151: Digital Design.
CS151 Introduction to Digital Design Chapter 3: Combinational Logic Design 3-1 Design Procedure 1Created by: Ms.Amany AlSaleh.
Combinational Logic Design. 2 Combinational Circuits A combinational logic circuit has: ♦ A set of m Boolean inputs, ♦ A set of n Boolean outputs ♦ n.
Combinational Logic: Other Gate Types
Combinational Logic Design. 2 Combinational Circuits A combinational logic circuit has: ♦ A set of m Boolean inputs, ♦ A set of n Boolean outputs ♦ n.
Combinational Design, Part 2: Procedure. 2 Topics Positive vs. negative logic Design procedure.
Week 1: Introduction and Logic gates IT3002 – Computer Architecture
Boolean Algebra & Logic Gates
Basics of Logic gates - Part 1
Lecture 7 Multi-Level Gate Networks
Combinational Logic Design&Analysis.
EI205 Lecture 3 Dianguang Ma Fall, 2008.
Overview Part 1 – Logic Circuits and Boolean Functions
CS 105 Digital Logic Design
VLSI Testing Lecture 5: Logic Simulation
Introduction to Logic Gates
2-6 Exclusive-OR Operator and Gates
Overview Part 1 – Gate Circuits and Boolean Equations
PROPAGATION DELAY.
Boolean Algebra and Combinational Logic
FUNCTION OF COMBINATIONAL LOGIC CIRCUIT
ECE 434 Advanced Digital System L03
ENG2410 Digital Design “CMOS Technology”
CHAPTER 2 Boolean Algebra
Chapter 4 Gates and Circuits.
CMOS circuits and Logic families
CS105 Introduction to Computer Concepts GATES and CIRCUITS
Digital Logic Structures Logic gates & Boolean logic
Design Technologies Custom Std Cell Performance Gate Array FPGA Cost.
Digital Electronics Lab 2 Instructor:
King Fahd University of Petroleum and Minerals
Chapter 3 – Combinational Logic Design
COMBINATIONAL LOGIC DESIGN
Gate Level Minimization
EENG447 Digital IC Design Dr. Gürtaç Yemişcioğlu.
Overview Part 3 – Additional Gates and Circuits 2-8 Other Gate Types
Combinational Circuits
Combinational Circuits
Digital Circuits and Logic
Digital Logic Design Basics Combinational Circuits Sequential Circuits.
Chapter 3 – Describing Logic Circuits
Presentation transcript:

ENG2410 Digital Design “Cont .. Combinational Logic Circuits” Fall 2017 S. Areibi School of Engineering University of Guelph

Resources Chapter #2, Mano Sections 2.6 Multi-Level Circuit Optimization 2.7 Other Gate Types 2.8 Exclusive-OR Operator and Gates 2.9 High Impedance Outputs School of Engineering

Week #3 Topics NAND, NOR Universal Gates AND-OR to NAND Implementations XOR Gates, XNOR Gates Odd/Even Parity Logic Families Electrical Characteristics3 Multiple Level Circuits High Impedance Outputs School of Engineering

NAND Gates Very common for discrete logic

NAND is Universal Any digital circuit can be designed and realized using AND, OR, NOT gates If we can prove that NAND gate can emulate AND, OR, NOT, then we prove that it is Universal

NAND is Universal

NAND = AND-NOT = NOT-OR Also reverse inverter diagram for clarity

NOR Gates NOT OR Also common X Y Z 0 0 0 1 1 1 1

NOR also Universal Dual of NAND

NAND and NOR Implementations Digital circuits are frequently constructed with only NAND and NOR implementations: Both are universal gates they are easier to make (CMOS Technology) Because of their use, rules have been developed that allow us to convert Boolean functions using AND, OR and NOT into the equivalent NAND and NOR logic diagrams.

Multilevel NAND Circuits The general procedure for converting a multi-level AND-OR diagram into an all-NAND diagram is as follows: Convert all AND gates to NAND gates with AND-NOT graphic symbols Convert all OR gates to NAND gates with NOT-OR graphic symbols Check all the bubbles in the diagram Every bubble that is not compensated by another along the same line will require the insertion of an inverter or complement the input literal

Sum of Products with NAND Easy to think of bubbles as canceling

AND-OR Circuit Easy to Convert

Exclusive-OR Function Exclusive-OR (XOR) performs the following function x  y = xy’ + x’y This function is equal to one only if either x or y is equal to one but not both. Another name for the XOR is the ODD FUNCTION!!

Exclusive OR Exclusive OR Symbol is  Plus in a circle

Each Module uses XOR

XOR Implementations

Equivalent Expression XNOR Function Description  Output Y is FALSE if input A OR input B are TRUE Exclusively, else it is TRUE. Logic Symbol  A B Y XNOR The complement of an XOR function is an XNOR (even function) Truth Table  Y = Equivalent Expression A  B Boolean Expression 

Buffer No inversion No change, except in power or voltage Used to enable driving more inputs

Binary Signaling (Noise Margin) Zero volts FALSE or 0 5 volts TRUE or 1 Noise

Tri-State Output w/ 3 states: H, L, and Hi-Z High impedance Behaves like no output connection if in Hi-Z state Allows connecting multiple outputs

Multiplexed with Hi-Z Normal operation is blue area Smoke

Electrical Characteristics Fan in – max number of inputs to a gate Fan out – how many standard loads it can drive (load usually 1) Voltage – often 1.8v, 3.3v or 5v Noise margin – how much electrical noise it can tolerate Power dissipation – how much power chip needs TTL high Some CMOS low (but look at heat sink on a Pentium)

Propagation Delay Max of high-to-low and low-to-high Maximum and typical given

Week #3 Part (b) Cont .. Combinational Logic Design ENG241 Digital Design Week #3 Part (b) Cont .. Combinational Logic Design School of Engineering

Resources Chapter #3, Mano Sections 3.1 Design Concepts and Automation 3.2 The Design Space 3.3 Design Procedure School of Engineering

Week #3 Topics Combinational Circuits Analysis versus Design Design Hierarchy CAD Tools Design Procedure School of Engineering

Combinational Circuits A combinational logic circuit has: A set of m Boolean inputs, A set of n Boolean outputs, and The output depends only on the current input values No Feedback, no cycles A block diagram: m Boolean Inputs n Boolean Outputs Combinatorial Logic Circuit School of Engineering

Sequential Circuits A sequential circuit consists of combinational circuits to which storage elements are connected to form a feedback path. Storage elements store binary information. Outputs of a sequential circuit are a function of the inputs and the internal state of the storage elements. School of Engineering

Analysis vs. Design Design of a circuit starts with specification and ends up with a logic diagram. Analysis for a combinational circuit consists of determining the function that the circuit implements with: A set of Boolean functions or A truth table, together with a possible explanation of the operation of the circuit. We can perform the analysis by manually finding the Boolean equations or truth table. The first step in the analysis is to make sure that the given circuit is combinational and not sequential (i.e. no feedback or storage elements). School of Engineering

Derivation of Func. Or Table Label gate outputs of input variables Determine Boolean functions or values Label outputs of gates fed by previously labeled gates Determine Boolean function or values Repeat 2 until done

Let’s do this Example

Cont .. Analysis Example

Derivation of Truth Table Make table with 2n rows, where n is number of inputs Label some gate outputs Put those labels and the final outputs on columns of truth table Work your way across

Derivation of Truth Table C D T1 T2 T3 T4 F1 F2 1

Design Procedure Specification Write a specification for the circuit if one is not already available Formulation Derive a truth table or initial Boolean equations that define the required relationships between the inputs and outputs, if not in the specification Optimization Use K-Maps to simplify Boolean Expression. Draw a logic diagram or provide a netlist for the resulting circuit using ANDs, ORs, and inverters

Design Procedure HOW TO DEAL WITH A LARGE DESIGN? Technology Mapping Map the logic diagram or netlist to the implementation technology selected (FPGA, PCB) Verification Verify the correctness of the final design HOW TO DEAL WITH A LARGE DESIGN?

Design Hierarchy Just similar to large software development: To design a large chip we need hierarchy Divide and Conquer To create and also to understand Block is equivalent to object

Example – 4-bit Comparator Specifications: Input: 2 vectors A(3:0) and B(3:0) Output: One bit, E, which is 1 if A and B are bitwise equal, 0 otherwise Straight forward implementation??

Formulation Since the circuit has eight inputs, use of truth table for formulation is impractical! We need to create a truth table with 256 entries!! In order for A[3:0] and B[3:0] to be equal, the bit values in each of the respective positions, 3 down-to 0, of A and B must be equal. Use intuition to immediately develop a multiple level circuit. How?

Design Use Hierarchical Design: Decompose the problem into: Four 1-bit comparison circuits (i.e., One Module/bit) An additional circuit that combines the four comparison circuit outputs to obtain E (i.e., Final Module for E)

Design for MX module Logic function is Can implement as Define the output of the circuit to be: `0’ if both inputs are similar and `1’ if they are different? Ai Bi Ei 1 Logic function is Can implement as

4-bit comparison?? E

Design for ME module Final E is 1 only if all intermediate values are 0 So And a design is Design for MX module Ai Bi Ei 1

Overall Design

CMOS Technology

Semiconductor Materials Electronic materials generally can be divided into three categories: Insulators Semiconductors Conductors The primary parameter used to distinguish among these materials is the resistivity (rho) Insulator 105 < rho Semiconductors 10-3 < rho < 105 Conductors rho < 10-3 Silicon and germanium are the most important semiconductor materials

P-type and N-type The real advantage of semiconductors emerge when impurities are added to the material in minute amounts (Doping) Impurity doping enables us to change the resistivity over a very wide range and determine whether the electron or hole population controls the resistivity of the material. Donor Impurities: have five valence electrons in the outer shell (phosphorus and arsenic). Semiconductors doped with donor impurities are called n-type. Acceptor Impurities: have one less electron than silicon in the outer shell (boron). Semiconductors doped with acceptor impurities are known as p-type.

Field Effect Transistor MOSFET: Metal Oxide Semiconductor Field Effect Transistor A voltage controlled device Dissipates less power Achieves higher density on an IC Has full swing voltage 0  5V

The MOS Transistor Polysilicon Aluminum

nMOS Transistor |V GS | An nMOS Transistor Ids Vgs

Transistor as a Switch A Switch! |V GS | An MOS Transistor

Implementing Logic using: nMOS vs. pMOS Devices

CMOS:Complementary MOS Means we are using both N-channel and P-channel type enhancement mode Field Effect Transistors (FETs). Why?

Complementary MOS (CMOS) NMOS Transistors pass a ``strong” 0 but a ``weak” 1 PMOS Transistors pass a ``strong” 1 but a ``weak” 0 Combining both would lead to circuits that can pass strong 0’s and strong 1’s X Y C School of Engineering

Complementary MOS (CMOS) VDD PUN and PDN are dual logic networks In1 PMOS only In2 PUN … InN F(In1,In2,…InN) In1 In2 PDN … NMOS only InN VSS One and only one of the networks (PUN or PDN) is conducting in steady state At every point in time (except during the switching transients) each gate output is connected to either VDD or VSS via a low resistive path School of Engineering

CMOS Inverter Pull-up Network A Y 1 Pull-down Network

CMOS Inverter A Y 1

CMOS Inverter A Y 1

CMOS Tri-State Inverter Y X Z 1 E Y E

Example Gate: NAND School of Engineering

Example Gate: NOR School of Engineering

End Slides

XOR Postulates and Theorems Exclusive NOR (XNOR) can be generated by taking the complement of an XOR operation (x  y)’ = xy + x’y’ The following identities apply to XOR (IMP!) x  0 = x x  1 = x’ x  x = 0 x  x’ = 1 x  y’ = x’  y = (x  y)’ XOR is also commutative and associative

XOR = Odd Function The XOR operation with three or more variables can be converted into an ordinary Boolean function by replacing the  with its equivalent Boolean expression A  B  C = (AB’ + A’B)C’ + (AB + A’B’)C AB’C’ + A’BC’ + ABC + A’B’C ∑(1, 2, 4, 7) This function is equal to 1 only if one variable is equal to 1 or if all three variables are equal to 1. This implies that an odd number of variables must be one. This is defined as an odd function.

Error Detecting Codes Parity Good for checking single-bit errors 1 1 1 One bit added to a group of bits to make the total number of ‘1’s (including the parity bit) even or odd Even Odd Good for checking single-bit errors 4-bit Example 7-bit Example 1 1 1 1 1 1

Parity Generation and Checking XOR functions are very useful in systems requiring error-detection and correction codes. A circuit that generates a parity bit is called a parity generator. The circuit that checks the parity is called a parity checker.

Parity Generator Design even parity generator for 3-bit signal Perhaps make truth table and K-Map Draw with XOR, then sum-of-products w/ NAND gates How do you design a detector?

Parity Bit Implementation X Y Z P

Example 9-input odd function (parity for byte) Basically checks for even parity! Block for schematic is box with labels Without hierarchy how would you start your design?

Design Broken Into Modules Use 3-input odd functions

Use NAND to Implement XOR In case there’s no XOR, for example

Components in Design RHS shows what must be designed

Design Hierarchy

Design Example (continued) B C D A 1 3 2 4 5 7 6 12 13 15 14 8 9 11 10 X w z y x Optimization 2-level using K-maps W = A + BC + BD X = BC + BD + B C D Y = CD + C D Z = D

Logic Families RTL, DTL earliest TTL was used 70s, 80s CMOS Still available and used occasionally 7400 series logic, refined over generations CMOS Was low speed, low noise Now fast and is most common BiCMOS and GaAs Speed