Combinational Logic Design

Similar documents
Chapter # 3: Multi-Level Combinational Logic

Digital Integrated Circuits A Design Perspective

Computer Organization I. Lecture 13: Design of Combinational Logic Circuits

Problem Set 4 Solutions

EC-121 Digital Logic Design

Combinational logic. Possible logic functions of two variables. Minimal set of functions. Cost of different logic functions

12/31/2010. Overview. 10-Combinational Circuit Design Text: Unit 8. Limited Fan-in. Limited Fan-in. Limited Fan-in. Limited Fan-in

Working with combinational logic

Chapter 2 Boolean Algebra and Logic Gates

Exclusive OR/ Exclusive NOR

Digital Fundamentals

Standard & Canonical Forms

Based on slides/material by. Topic 3-4. Combinational Logic. Outline. The CMOS Inverter: A First Glance

CMOS Digital Integrated Circuits Lec 10 Combinational CMOS Logic Circuits

COSC3330 Computer Architecture Lecture 2. Combinational Logic

Properties of CMOS Gates Snapshot

KINGS COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING QUESTION BANK

Prove that if not fat and not triangle necessarily means not green then green must be fat or triangle (or both).

Chapter 2. Introduction. Chapter 2 :: Topics. Circuits. Nodes. Circuit elements. Introduction

Combinational Logic (mostly review!)

Section 3: Combinational Logic Design. Department of Electrical Engineering, University of Waterloo. Combinational Logic

COMP2611: Computer Organization. Introduction to Digital Logic

EE115C Digital Electronic Circuits Homework #4

Chapter 3 Combinational Logic Design

COMP 103. Lecture 16. Dynamic Logic

Digital Logic. Lecture 5 - Chapter 2. Outline. Other Logic Gates and their uses. Other Logic Operations. CS 2420 Husain Gholoom - lecturer Page 1

Working with Combinational Logic. Design example: 2x2-bit multiplier

Digital- or Logic Circuits. Outline Logic Circuits. Logic Voltage Levels. Binary Representation

COE 202: Digital Logic Design Combinational Logic Part 2. Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:

COMBINATIONAL LOGIC. Combinational Logic

Digital Circuits. 1. Inputs & Outputs are quantized at two levels. 2. Binary arithmetic, only digits are 0 & 1. Position indicates power of 2.

Chapter 3 Combinational Logic Design

9/18/2008 GMU, ECE 680 Physical VLSI Design

Possible logic functions of two variables

Learning Objectives. Boolean Algebra. In this chapter you will learn about:

S.E. Sem. III [ETRX] Digital Circuit Design. t phl. Fig.: Input and output voltage waveforms to define propagation delay times.

Integrated Circuits & Systems

MM54HCT193 MM74HCT193 Synchronous Binary Up Down Counters

CMSC 313 Lecture 18 Midterm Exam returned Assign Homework 3 Circuits for Addition Digital Logic Components Programmable Logic Arrays

Class Website:

Switching Circuits & Logic Design

INTEGRATED CIRCUITS. For a complete data sheet, please also download:

S.Y. Diploma : Sem. III [CO/CM/IF/CD/CW] Digital Techniques s complement 2 s complement 1 s complement

MM74C150 MM82C19 16-Line to 1-Line Multiplexer 3-STATE 16-Line to 1-Line Multiplexer

Chap 2. Combinational Logic Circuits

BCD-TO-DECIMAL DECODER HIGH-VOLTAGE SILICON-GATE CMOS IW4028B TECHNICAL DATA

For smaller NRE cost For faster time to market For smaller high-volume manufacturing cost For higher performance

Digital Integrated Circuits A Design Perspective

Chapter 2 Combinational Logic Circuits

1-OF-8 DECODER/DEMULTIPLEXER High-Speed Silicon-Gate CMOS

CHAPTER * 6-2. a) 3-input NAND gate b) 4-input NOR gate * Pearson Education, Inc. a) F = (A + B) C D. b) G = (A + B) (C + D)

Chapter 2: Boolean Algebra and Logic Gates

Lecture 6: Time-Dependent Behaviour of Digital Circuits

NTE74HC165 Integrated Circuit TTL High Speed CMOS, 8 Bit Parallel In/Serial Out Shift Register

Logic Design Combinational Circuits. Digital Computer Design

ECE 407 Computer Aided Design for Electronic Systems. Simulation. Instructor: Maria K. Michael. Overview

Where are we? Data Path Design. Bit Slice Design. Bit Slice Design. Bit Slice Plan

CHAPTER 15 CMOS DIGITAL LOGIC CIRCUITS

1-OF-8 DECODER/DEMULTIPLEXER High-Speed Silicon-Gate CMOS

HCF4532B 8-BIT PRIORITY ENCODER

14:332:231 DIGITAL LOGIC DESIGN. Organizational Matters (1)

Ch 4. Combinational Logic Technologies. IV - Combinational Logic Technologies Contemporary Logic Design 1

Logic and Computer Design Fundamentals. Chapter 2 Combinational Logic Circuits. Part 2 Circuit Optimization

Digital Electronics. Delay Max. FF Rate Power/Gate High Low (ns) (MHz) (mw) (V) (V) Standard TTL (7400)

UNIT III Design of Combinational Logic Circuits. Department of Computer Science SRM UNIVERSITY

Homework #2 10/6/2016. C int = C g, where 1 t p = t p0 (1 + C ext / C g ) = t p0 (1 + f/ ) f = C ext /C g is the effective fanout

Where are we? Data Path Design

NTE74176 Integrated Circuit TTL 35Mhz Presettable Decade Counter/Latch

Logic. Basic Logic Functions. Switches in series (AND) Truth Tables. Switches in Parallel (OR) Alternative view for OR

Logic Gates and Boolean Algebra

Integrated Circuits & Systems

Spiral 2 7. Capacitance, Delay and Sizing. Mark Redekopp

Boolean Algebra. Boolean Variables, Functions. NOT operation. AND operation. AND operation (cont). OR operation

CMSC 313 Lecture 19 Homework 4 Questions Combinational Logic Components Programmable Logic Arrays Introduction to Circuit Simplification

2007 Fall: Electronic Circuits 2 CHAPTER 10. Deog-Kyoon Jeong School of Electrical Engineering

Computer organization

control in out in out Figure 1. Binary switch: (a) opened or off; (b) closed or on.

Z = F(X) Combinational circuit. A combinational circuit can be specified either by a truth table. Truth Table

Chapter # 4: Programmable and Steering Logic

Static CMOS Circuits

Features Y Wide supply voltage range 3 0V to 15V. Y High noise immunity 0 45 VDD (typ ) Y Low power TTL fan out of 2 driving 74L

Obsolete Product(s) - Obsolete Product(s)

Lecture Outline. ESE 570: Digital Integrated Circuits and VLSI Fundamentals. Restore Output. Pass Transistor Logic. How compare.

CD4070BM CD4070BC Quad 2-Input EXCLUSIVE-OR Gate CD4077BM CD4077BC Quad 2-Input EXCLUSIVE-NOR Gate

Chapter 8. Low-Power VLSI Design Methodology

TC74HC155AP, TC74HC155AF

NTE74HC173 Integrated Circuit TTL High Speed CMOS, 4 Bit D Type Flip Flop with 3 State Outputs

B.Supmonchai August 1st, q In-depth discussion of CMOS logic families. q Optimizing gate metrics. q High Performance circuit-design techniques

SRC Language Conventions. Class 6: Intro to SRC Simulator Register Transfers and Logic Circuits. SRC Simulator Demo. cond_br.asm.

ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN. Week 9 Dr. Srinivas Shakkottai Dept. of Electrical and Computer Engineering

Designing Information Devices and Systems II Fall 2017 Miki Lustig and Michel Maharbiz Homework 1. This homework is due September 5, 2017, at 11:59AM.

CPE/EE 427, CPE 527 VLSI Design I L06: CMOS Inverter, CMOS Logic Gates. Course Administration. CMOS Inverter: A First Look

MOSIS REPORT. Spring MOSIS Report 1. MOSIS Report 2. MOSIS Report 3

CMOS Inverter. Performance Scaling

M74HCT138TTR 3 TO 8 LINE DECODER (INVERTING)

Vidyalankar S.E. Sem. III [EXTC] Digital Electronics Prelim Question Paper Solution ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD = B

14:332:231 DIGITAL LOGIC DESIGN

MM74C85 4-Bit Magnitude Comparator

Digital electronic systems are designed to process voltage signals which change quickly between two levels. Low time.

NTE74LS181 Integrated Circuit TTL Arithmetic Logic Unit/Function Generator

Transcription:

PEN 35 - igital System esign ombinational Logic esign hapter 3 Logic and omputer esign Fundamentals, 4 rd Ed., Mano 2008 Pearson Prentice Hall esign oncepts and utomation top-down design proceeds from an abstract, highlevel specification to a more and more detailed design by decomposition and successive refinement bottom-up design starts with detailed primitive blocks and combines them into larger and more complex functional blocks esigns usually proceed from both directions simultaneously Top-down design answers: What are we building? ottom-up design answers: How do we build it? Top-down controls complexity while bottom-up focuses on the details

esign Example X 0 X X 2 X 3 X 4 X 5 X 6 X 7 X 8 9-Input odd function Z O (a) Symbol for circuit X 0 X X 2 0 3-Input odd function 2 O X 3 X 4 X 5 0 3-Input odd function 2 O 0 3-Input odd function 2 O Z O X 6 X 7 X 8 0 3-Input odd function 2 O (b) ircuit as interconnected 3-input odd function blocks 0 O 2 (c) 3-input odd function circuit as interconnected exclusive-or blocks (d) Exclusive-OR block as interconnected NNs Reusable Functions and Whenever possible, we try to decompose a complex design into common, reusable function blocks These blocks are verified and well-documented placed in libraries for future use Representative omputer-ided esign Tools: Schematic apture Logic Simulators Timing Verifiers Hardware escription Languages Verilog and VHL Logic Synthesizers Integrated ircuit Layout 2

Integrated ircuits Integrated circuit (informally, a chip ) is a semiconductor crystal (most often silicon) containing the electronic components for the digital gates and storage elements which are interconnected on the chip. Terminology - Levels of chip integration SSI (small-scale integrated) - fewer than 0 gates MSI (medium-scale integrated) - 0 to 00 gates LSI (large-scale integrated) - 00 to thousands of gates VLSI (very large-scale integrated) - thousands to 00s of millions of gates ULSI (Ultra large-scale integration) 00 million to billion(s) ombinational ircuits combinational logic circuit has: set of m oolean inputs, set of n oolean outputs, and n switching functions, each mapping the 2 m input combinations to an output such that the current output depends only on the current input values block diagram: ombinatorial Logic ircuit m oolean Inputs n oolean Outputs 3

Simplification with on t care conditions There are applications in which the function is not specified for certain input combinations: - Input combinations never occur - Input combinations are expected to occur but we simply don t care what the outputs are in response to the input combinations. These conditions can be used on a map to provide further simplification of the function. Simplification with on t care conditions (example) F(,,, ) = m(,3,7,,5 ) d(,,, ) = m(0,2,5) x x F (,,, ) = m(,3,7,,5 ) x x x x F = + '' F = + ' ' F = + ' 4

Multi-Level ircuit Optimization Multi-Level circuits can reduce the cost of ombinational Logic ircuits. G = + + E + F + F Gate-Input ost = 7 Multi-Level ircuit Optimization (continued) G = + + E + F + F G = ( + ) + E + ( + ) F Gate-Input ost = 3 5

Multi-Level ircuit Optimization (continued) G = + + E + F + G = ( + F)( + ) + E F Gate-Input ost = Multi-Level ircuit Optimization (continued) G = + + E + F + G = ( + F)( + ) + E G = ( + F)( + ) + E F Gate-Input ost = 9 6

High-Impedance Outputs Tri-State uffer Transmission Gate Transmission Gate Logic Technology Parameters Specific gate implementation technologies are characterized by the following parameters: Fan-in the number of inputs available on a gate Fan-out the number of standard loads driven by a gate output ost The cost of a gate is proportional to the chip area occupied by the gate Logic Levels the signal value ranges for and 0 on the inputs and and 0 on the outputs (see Figure -) Noise Margin the maximum external noise voltage superimposed on a normal input value that will not cause an undesirable change in the circuit output Propagation elay the time for a change on an input of a gate to propagate to the output. Power issipation the amount of power drawn from the power supply and consumed by the gate 7

Propagation elay in hapter 6 Propagation delay is the time for a change on an input of a gate to propagate to the output. elay is usually measured at the 50% point with respect to the H and L output voltage levels. High-to-low (t PHL ) and low-to-high (t PLH ) output signal changes may have different propagation delays. High-to-low (HL) and low-to-high (LH) transitions are defined with respect to the output, not the input. n HL input transition causes: an LH output transition if the gate inverts and an HL output transition if the gate does not invert. Propagation elay (continued) logic gate always takes some time to change states t PLH is the delay time before output changes from low to high t PHL is the delay time before output changes from high to low both t PLH & t PHL are measured between the 50% points on the input and output transitions INPUT 50% OUTPUT t PHL t pd = max (t PHL, t PLH ) t PLH 8

Propagation elay (continued) Find t PHL, t PLH and t pd for the signals given.5 ns IN (volts) OUT (volts).0 ns per division t (ns) Fan-out and elay The fan-out loading a gate s output affects the gate s propagation delay (input-to-output) Example: One realistic equation for t pd for a NN gate with 4 inputs is: t pd = 0.07 + 0.02 SL ns SL is the number of standard loads the gate is driving. ssume SL = 4.5, t pd = 0.65 ns 9

Fan-out and elay - example 4-input NN gate is attached to the inputs of the following gates with a given number of standard loads representing their inputs: 4-input NOR gate (0.8 standard load) 3-input NN gate (.00 standard load) t pd = 0.07 + 0.02 SL ns (4-input NN gate) What is the total t pd? 0. ns Note that in modern high-speed designs, the portion of gate delay due to wiring capacitance is often significant. Fan-in For high-speed technologies fan-in, the number of inputs to a gate is often restricted to no more than 4 or 5. Problem: Implement a 7-input NN gate using NN gates with 4 inputs. 0

ost In an integrated circuit: The cost of a gate is proportional to the chip area occupied by the gate The gate area is roughly proportional to the number and size of the transistors and the amount of wiring connecting them If the actual chip area occupied by the gate is known, it is a far more accurate measure. Speed-Power Product Speed (propagation delay) and power consumption are the two most important performance parameters of a digital I. simple means for measuring and comparing the overall performance of an I family is the speed-power product (the smaller, the better). For example, an I has an average propagation delay of 0 ns and an average power dissipation of 5 mw. What is the speed-power product? 50 pico joules

esign Procedure. Specification Write a specification for the circuit if one is not already available 2. Formulation erive a truth table or initial oolean equations that define the required relationships between the inputs and outputs, if not in the specification 3. Optimization pply 2-level and multiple-level optimization raw a logic diagram or provide a netlist for the resulting circuit using Ns, ORs, and inverters esign Procedure 4. Technology Mapping Map the logic diagram or netlist to the implementation technology selected 5. Verification Verify the correctness of the final design 2

esign Example. Specification to Excess-3 code converter Transforms code for the decimal digits to Excess-3 code for the decimal digits code words for digits 0 through 9: 4-bit patterns 0000 to 00, respectively Excess-3 code words for digits 0 through 9: 4-bit patterns consisting of 3 (binary 00) added to each code word Implementation: multiple-level circuit NN gates (including inverters) esign Example (continued) 2. Formulation onversion of 4-bit codes can be most easily formulated by a truth table Variables - :,,, Variables - Excess-3 W,X,Y,Z on t ares - 00 to Input Output Excess-3 WXYZ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3

esign Example (continued) 3. Optimizationz a. 2-level using K-maps W = + + X = + + Y = + Z = x 0 3 2 4 5 7 6 X X X X 2 3 5 4 X X 8 9 0 0 3 2 y w 0 3 2 4 5 7 6 X X X X 2 3 5 4 X X 8 9 0 0 3 2 4 5 7 6 X X X X 2 3 5 4 X X 8 9 0 4 5 7 6 X X X X 2 3 5 4 X X 8 9 0 esign Example (continued) 3. Optimization (continued) b. Multiple-level using transformations W = + + X = + + Y = + Z = G = 7 + 0 + 6 + 0 = 23 Perform extraction, finding factor: T = + W = + T X = T + Y = + Z = G = 2 + + 4 + 7 + 6 + 0 = 9 4

esign Example (continued) 3. Optimization (continued) b. Multiple-level using transformations T = + W = + T X = T + Y = + Z = G = 9 n additional extraction not shown in the text since it uses a oolean transformation: ( = + = T ): W = + T X = T + T Y = + T Z = G = 2 + + 4 + 6 + 4 + 0 = 6 esign Example (continued) 4. Technology Mapping Mapping with a library containing inverters and 2-input NN, 2-input NOR, and 2-2 OI gates W W X X Y Y Z Z 5

Technology Mapping hip design styles ells and cell libraries Mapping Techniques NN gates NOR gates Multiple gate types Programmable logic devices The subject of hapter 3 - Part 2 hip esign Styles Full custom - the entire design of the chip down to the smallest detail of the layout is performed Expensive Justifiable only for dense, fast chips with high sales volume Standard cell - blocks have been designed ahead of time or as part of previous designs Intermediate cost Less density and speed compared to full custom Gate array - regular patterns of gate transistors that can be used in many designs built into chip Lowest cost Less density compared to full custom and standard cell 6

ell Libraries ell - a pre-designed primitive block ell library - a collection of cells available for design using a particular implementation technology ell characterization - a detailed specification of a cell for use by a designer - often based on actual cell design and fabrication and measured values ells are used for gate array, standard cell, and in some cases, full custom chip design Example ell Library ell Name ell Schematic Normalized rea Typical Input Load Typical Input-to- Output elay asic Function Templates Inverter.00.00 2NN.25.00 0.04 + 0.02 x SL 0.05 + 0.04 x SL 2NOR.25.00 0.06 + 0.08 x SL 2-2 OI 2.25 0.95 0.07 + 0.09 x SL 7

Mapping to NN gates ssumptions: Gate loading and delay are ignored ell library contains an inverter and n-input NN gates, n = 2, 3, n N, OR, inverter schematic for the circuit is available The mapping is accomplished by: Replacing N and OR symbols, Pushing inverters through circuit fan-out points, and anceling inverter pairs NN Mapping lgorithm (Example) E (a) F E 7 8 Y 5 X 3 (b) 6 OI 2 4 9 F 5 7 Y X 5 6 F E (c) (d) 8

NOR Mapping Example F X 3 2 F E (a) E (b) F E (c) Verification Verification - show that the final circuit designed implements the original specification Simple specifications are: truth tables oolean equations HL code If the above result from formulation and are not the original specification, it is critical that the formulation process be flawless for the verification to be valid! 9

asic Verification Methods Manual Logic nalysis Find the truth table or oolean equations for the final circuit ompare the final circuit truth table with the specified truth table, or Show that the oolean equations for the final circuit are equal to the specified oolean equations Simulation Simulate the final circuit (or its netlist, possibly written as an HL) and the specified truth table, equations, or HL description using test input values that fully validate correctness. The obvious test for a combinational circuit is application of all possible care input combinations from the specification Verification Example: Simulation Enter -to-excess-3 ode onverter ircuit Schematic INV W NN2 NN2 NOR2 INV INV NN2 X INV NN3 NN2 INV N2 Y NOR2 N2 OI Z 20

Verification Example: Simulation Enter waveform that applies all possible input combinations: INPUTS 0 50 ns 00 ns 2