Chapter 0 ComBinaTionaL loGic deSign ComBinaTionaL loGic deSign EKT 221 / 4 DIGITAL ELECTRONICS II.

Slides:



Advertisements
Similar presentations
Digital Design: Combinational Logic Blocks
Advertisements

COE 202: Digital Logic Design Combinational Circuits Part 1
Programmable Logic PAL, PLA.
CPEN Digital System Design
CMPT150, Ch 3, Tariq Nuruddin, Fall 06, SFU 1 Ch3. Combinatorial Logic Design Modern digital design involves a number of techniques and tools essential.
Chapter 6 – Selected Design Topics Part 4 – Programmable Implementation Technologies Logic and Computer Design Fundamentals.
Combinational Circuits
Combinatorial Logic Circuit Diagrams - Programmable Implementation Devices Design Hierarchy reduces the complexity required to represent the schematic.
CPEN Digital System Design
Henry Hexmoor1 Chapter 3 Henry Hexmoor Types of Logic Circuits Combinational logic circuits: –Outputs depend only on its current inputs. –A combinational.
Digital Design: Chapters Chapter 1. Introduction Digital Design - Logic Design? Analog versus Digital Once-analog now goes digital –Still pictures.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Chapter 3 – Combinational.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 6 – Selected Design Topics Part 4 – Programmable.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Chapter 3 – Combinational.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 3 – Combinational Logic Design Part 1 –
EET 1131 Unit 4 Programmable Logic Devices  Read Kleitz, Chapter 4.  Homework #4 and Lab #4 due next week.  Quiz next week.
COE 202: Digital Logic Design Combinational Circuits Part 1
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 3 – Combinational Logic Design Part 1 –
Combinational Logic Design
Overview Part 1 – Design Procedure 3-1 Design Procedure
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Lecture 13 – Programmable.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
Figure to-1 Multiplexer and Switch Analog
Chapter 4 Programmable Logic Devices: CPLDs with VHDL Design Copyright ©2006 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights.
Combinational Circuit
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.
Combinational Logic Design CS341 Digital Logic and Computer Organization F2003.
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.
Chap 3. Chap 3. Combinational Logic Design. Chap Combinational Circuits l logic circuits for digital systems: combinational vs sequential l Combinational.
Combinational Logic Design BIL- 223 Logic Circuit Design Ege University Department of Computer Engineering.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 6 – Selected Design Topics Part 4 – Programmable.
1 Combinational Logic Design Digital Computer Logic Kashif Bashir
Chapter 4 Programmable Logic Devices: CPLDs with VHDL Design Copyright ©2006 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 3 – Combinational Logic Design Part 1 –
Chapter 0 deSiGn conCepTs EKT 221 / 4 DIGITAL ELECTRONICS II.
Chapter 0 - reVieW Combinational Logic Circuit, Combinational Logic Circuit, Propagation Delay, Propagation Delay, Programmable Logic. Programmable Logic.
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.
IC design options PLD (programmable logic device)
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Binary Numbers For digital systems, the.
1 Multiplexers (Data Selectors) A multiplexer (MUX) is a device that allows several low-speed signals to be sent over one high-speed output line. “Select.
Combinational Logic Design. 2 Combinational Circuits A combinational logic circuit has: ♦ A set of m Boolean inputs, ♦ A set of n Boolean outputs ♦ n.
Chapter 0 – Week 2 Combinational Logic Design. What have been discussed Design hierarchy –Top – down –Bottom – up CAD HDL Logic synthesis.
1 CS151: Digital Design Chapter 3: Combinational Logic Design 3-2 Beginning Hierarchical Design 3-3 Technology Mapping.
Combinational Logic Design. 2 Combinational Circuits A combinational logic circuit has: ♦ A set of m Boolean inputs, ♦ A set of n Boolean outputs ♦ n.
2016/7/21 Haifeng Liu 2014 Fall College of Computer Science and Technology, Zhejiang University Chapter 3 Combinational Logic Design.
EECE 320 L8: Combinational Logic design Principles 1Chehab, AUB, 2003 EECE 320 Digital Systems Design Lecture 8: Combinational Logic Design Principles.
EET 1131 Unit 4 Programmable Logic Devices
CHAPTER 16 SEQUENTIAL CIRCUIT DESIGN
Overview Part 1 – Design Procedure Part 2 – Combinational Logic
Chap 3. Combinational Logic Design
Overview Part 1 - Implementation Technology and Logic Design
Design and Documentation
Combinational Logic Design
Combinational Logic Design
Combinational Logic Design&Analysis.
EEE2135 Digital Logic Design Chapter 1. Introduction
EE2174: Digital Logic and Lab
Combinational Logic Design
Overview The Design Space Programmable Implementation Technologies
Logic and Computer Design Fundamentals
Overview Part 1 – Design Procedure Beginning Hierarchical Design
This chapter in the book includes: Objectives Study Guide
ECE 434 Advanced Digital System L03
Programmable Logic Devices: CPLDs and FPGAs with VHDL Design
ECE434a Advanced Digital Systems L02
Chapter 3 – Combinational Logic Design
Combinational Circuits
Combinational Circuits
Presentation transcript:

Chapter 0 ComBinaTionaL loGic deSign ComBinaTionaL loGic deSign EKT 221 / 4 DIGITAL ELECTRONICS II

deSiGn conCepTs –Design Procedure –CAD Tools –Propagation Delay –Programmable Logic

Block Diagram of Combinational Circuit

Design Topics Modern digital design –Techniques & tools for complex circuits & systems design Some important concepts –CAD tools, HDL, logic synthesis, design hierarchy, top-down design

Design Hierarchy Approach to design complex digital system –e.g. VLSI circuits “Divide & Conquer” approach –Break up circuit into smaller pieces / blocks –Interconnect the blocks to form complete circuit

Hierarchical Design To control the complexity of the function mapping inputs to outputs: ◦ Decompose the function into smaller pieces called blocks ◦ Decompose each block’s function into smaller blocks, repeating as necessary until all blocks are small enough ◦ Any block not decomposed is called a primitive block ◦ The collection of all blocks including the decomposed ones is a hierarchy

Hierarchical Design Example: 9-input parity tree (see next slide) ◦ Top Level: 9 inputs, one output ◦ 2nd Level: Four 3-bit odd parity trees in two levels ◦ 3rd Level: Two 2-bit exclusive-OR functions ◦ Primitives: Four 2-input NAND gates ◦ Design requires 4 X 2 X 4 = 32 2-input NAND gates

Example : 9 – input odd function

Design Hierarchy Concepts 1. Reduces complexity of schematic diagram 2. Reuse of blocks –One block is used multiple times –Cascaded –“Functional blocks”

Diagrams Representing Hierarchy

Top – Down Design Describe circuit function by text, including constraints on cost, performance & reliability Divide circuit into hierarchy levels

Bottom – Up Design Used to design certain portions of big design Starts with design of functional blocks –So that functional blocks can be reused multiple times

Top-Down versus Bottom-Up A top-down design proceeds from an abstract, high-level specification to a more and more detailed design by decomposition and successive refinement A bottom-up design starts with detailed primitive blocks and combines them into larger and more complex functional blocks

Top-Down versus Bottom-Up Designs usually proceed from both directions simultaneously ◦ Top-down design answers: What are we building? ◦ Bottom-up design answers: How do we build it? Top-down controls complexity while bottom-up focuses on the details.

Computer Aided Design (CAD) Schematic capture tools –D–D–D–Drawing of blocks & interconnections at all hierarchy levels Libraries of graphic symbols –R–R–R–Ready – made primitives & functional blocks design

Libraries in Quartus II Prim –B–B–B–Basic Fbs Mf Mega_lpm Edif Own libs from self-created symbols

CAD Logic simulator –To verify behavior & timing of each hierarchy blocks / complete circuit –Apply a set of inputs to determine the outputs

Hardware Description Language Important to design complex circuits Similar to other programming languages Describe hardware structures & behavior

Power of HDL Used to represent –Schematic information –Boolean equations –Truth tables Can use hierarchical design approach –High – level description can be partitioned into lower – level descriptions

Logic synthesis –An HDL description written at an intermediate level called Register Transfer Language (RTL) Register Transfer Language (RTL) –It can be converted into interconnection of primitive components that forms the circuit HDLs are portable across CAD design tools Power of HDL

HDL Languages VHDL –Very High – Speed ICs –Developed by DoD, US –IEEE standard Verilog HDL –IEEE standard AHDL

What have been discussed Design hierarchy –Top – down –Bottom – up CAD (Computer Aided Design) HDL (Hardware Description Language) Logic synthesis

Analysis Procedure Analysis –To determine the function of a circuit Derive Boolean equation Derive Boolean equation Derive truth table Derive truth table

Analyze this logic diagram T1 T3 T2 T4 T5

Boolean Equation T1 = BC T2 = AB T3 = A + T1 = A + BC T4 = T2 + D = AB + D T5 = AB + D F1 = T3 + T4 = (A+BC) + (AB + D) F2 = T5 = AB + D

Analyze this Binary Adder R1 R2 R3 C

Truth Table XYZCCR1R2R3S

XYZ CCR1R2R3S

Logic Simulation A fast and accurate method of analyzing a combinational circuit Using simulator software Results : –Waveforms –A complete truth table –Part of a truth table

Logic Simulation How is the circuit described in the software ? –Schematics –HDL

Schematic for Binary Adder in Xilinx

Waveforms for Binary Adder

Truth Table XYZ CCR1R2R3S

Simulation in Max Plus II

Waveforms in MaxPlus II

Point to ponder…. Why do we compare the simulation results vs the theoretical results?

Design Procedure Given : Specifications of the problem 1. Determine input & output 2. Derive truth table 3. Obtain Boolean equation (K-map) 4. Draw schematics 5. Verify design

Design of BCD to Excess – 3 Code Converter Specifications : Input in decimal numbers, 0 – 9, in binary form Output is excess – 3 code e.g. –Input: Decimal = 5 (101) –Output: Excess – 3 code = = 8 (1000)

BCD  Excess – 3 Step 1: Determine input & output Input : 0 to 9, 4 – bit binary code  A, B, C, D Output : 3 to 12, 4 – bit binary code  W, X, Y, Z

BCD  Excess – 3 Step 2 : Derive Truth Table Dec ABCD WXYZ Dec

BCD  Excess – 3 Step 3 : Boolean Equation W = A + BC + BD W = A + BC + BD X = BC + BD + BCD X = BC + BD + BCD Y = CD + CD = Y = CD + CD = Z= D Z= D

BCD  Excess – 3 Step 4 : Schematic diagram

BCD  Excess – 3 Step 4 : Schematic diagram

BCD  Excess – 3 Step 5 : Verify that schematic diagram agrees with truth table

Design of BCD to 7 – segment decoder Specifications : Input in decimal numbers, 0 – 9, in binary form 7 Outputs – to display input number

7 – segment Display

BCD to 7 –segment decoder Step 1 : Determine input & output

BCD to 7 – segment decoder Step 2 : Derive Truth Table ABCD All other inputs abcdefg

Exercise A traffic light system has the following specifications for a part of its controller. There are 3 parallel lanes, each with its own red / green light. One of these lanes, the priority lane, is given priority for a green light over the other 2 lanes. On the other hand, an alternating scheme is used for the other 2 lanes, which are left and right lane. Design the circuit that determines which light is to be green at a particular time. The specifications for the controller are as follows :

Exercise Inputs : PS – Priority Lane Sensor ( car present = 1; car absent = 0 ) LS – Left Lane Sensor ( car present = 1; car absent = 0 ) RS – Right Lane Sensor ( car present = 1; car absent = 0 ) AS – Alternating Signal ( select left = 1; select right = 0 ) Outputs : PL – Priority Lane Light ( green = 1; red = 0 ) LL – Left Lane Light ( green = 1; red = 0 ) RL – Right Lane Light ( green = 1; red = 0 )

Exercise 1. If there is a car in the priority lane, PL = If there are no cars in the priority lane and the right lane, and there is a car in the left lane, LL = If there are no cars in the priority lane and in the left lane, and there is a car in the right lane, RL = If there is no car in the priority lane, there are cars in both the left and right lanes, and AS = 1, then LL = If there is no car in the priority lane, there are cars in both the left and right lanes, and AS = 0, then RL = If any PL, LL or RL is not specified to be 1 above, then it has value 0.

Propagation Delay

PROPAGATION DELAY Definition:  The delay time for the change in value of a signal to propagate from input to output. input output

delaY vs sPeeD “Operating Speed” is inversely proportional to the longest propagation delay.

Propagation Delay Parameters Propagation delay is the time for a change on an input of a gate to propagate to the output. Delay 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. An HL input transition causes: –an LH output transition if the gate inverts and –an HL output transition if the gate does not invert.

Propagation Delay Parameters … t PHL The high-to-low propagation time the delay measured from the reference voltage on the input voltage, IN, to the reference voltage on the output voltage, OUT, with the output voltage going from H to L. the delay measured from the reference voltage on the input voltage, IN, to the reference voltage on the output voltage, OUT, with the output voltage going from H to L.

Propagation Delay Measurements for an Inverter Propagation delays measured at the midpoint between the L and H values

Propagation Delay Parameters … t PLH The low-to-high propagation time the delay measured from the reference voltage on the input voltage, IN, to the reference voltage on the output voltage, OUT, with the output voltage going from L to H. the delay measured from the reference voltage on the input voltage, IN, to the reference voltage on the output voltage, OUT, with the output voltage going from L to H.

Propagation Delay Measurements for an Inverter Propagation delays measured at the midpoint between the L and H values

Propagation Delay Parameters … t PD The propagation delay time the maximum of the two delays; the maximum of the two delays; t PD = (t PLH and t PHL )

Propagation Delay Measurement Exercise Find t PHL, t PLH and t pd for the signals given IN (volts) OUT (volts) t (ns) 1.0 ns per division

ProGrammaBle loGic

Implementation Technology Programmable Implementation Technologies – Read-Only Memories, Programmable Logic Arrays, Programmable Array Logic Technology mapping to programmable logic devices Technology mapping to programmable logic devices

Why Programmable Logic? Facts: –It is most economical to produce an IC in large volumes –Many designs required only small volumes of ICs Need an IC that can be: –Produced in large volumes –Handle many designs required in small volumes A programmable logic part can be: – made in large volumes – programmed to implement large numbers of different low-volume designs

Programmable Logic - Additional Advantages Many programmable logic devices are field- programmable, i. e., can be programmed outside of the manufacturing environment Most programmable logic devices are erasable and reprogrammable. –Allows “updating” a device or correction of errors –Allows reuse the device for a different design - the ultimate in re-usability! –Ideal for course laboratories Programmable logic devices can be used to prototype design that will be implemented for sale in regular ICs. –Complete Intel Pentium designs were actually prototype with specialized systems based on large numbers of VLSI programmable devices!

Technology Characteristics Permanent - Cannot be erased and reprogrammed Mask programming FuseAntifuseReprogrammable –Volatile - Programming lost if chip power lost Single-bit storage element –Non-Volatile Erasable Electrically erasable Flash (as in Flash Memory) –Build lookup tables Storage elements (as in a memory) –Transistor Switching Control Stored charge on a floating transistor gate –Erasable –Electrically erasable –Flash (as in Flash Memory) Storage elements (as in a memory)

Programmable Configurations Read Only Memory (ROM) - a fixed array of AND gates and a programmable array of OR gates Programmable Array Logic (PAL)  - a programmable array of AND gates feeding a fixed array of OR gates. Programmable Logic Array (PLA) - a programmable array of AND gates feeding a programmable array of OR gates. Complex Programmable Logic Device (CPLD) / Field- Programmable Gate Array (FPGA)

The End