Chapter 3 Henry Hexmoor Types of Logic Circuits - PowerPoint PPT Presentation

About This Presentation
Title:

Chapter 3 Henry Hexmoor Types of Logic Circuits

Description:

Sequential logic circuits contain combinational logic in addition ... truth table or I/O mapping Optimization: draw logic diagrams ... Document presentation ... – PowerPoint PPT presentation

Number of Views:348
Avg rating:3.0/5.0
Slides: 41
Provided by: csSiuEdu6
Learn more at: https://www2.cs.siu.edu
Category:

less

Transcript and Presenter's Notes

Title: Chapter 3 Henry Hexmoor Types of Logic Circuits


1
Chapter 3Henry HexmoorTypes of Logic Circuits
  • Combinational logic circuits
  • Outputs depend only on its current inputs.
  • A combinational circuit may contain an arbitrary
    number of logic gates and inverters but no
    feedback loops.
  • A feedback loop is a connection from the output
    of one gate to propagate back into the input of
    that same gate
  • The function of a combinational circuit
    represented by a logic diagram is formally
    described using logic expressions and truth
    tables.
  • Sequential logic circuits
  • Outputs depend not only on the current inputs but
    also on the past sequences of inputs.
  • Sequential logic circuits contain combinational
    logic in addition to memory elements formed with
    feedback loops.
  • The behavior of sequential circuits is formally
    described with state transition tables and
    diagrams.

2
  • Combinational Circuit Analysis
  • Start with a logic diagram of the circuit.
  • Proceed to a formal description of the function
    of the circuit using truth tables or logic
    expressions.
  • Combinational Circuit Synthesis
  • May start with an informal (possibly verbal)
    description of the function performed.
  • A formal description of the circuit function in
    terms of a truth table or logic expression.
  • The logic expression is manipulated using Boolean
    (or switching) algebra and optimized to minimize
    the number of gates needed, or to use specific
    type of gates.
  • A logic diagram is generated based on the
    resulting logic expression.

3
Sequential Circuits
  • The general structure of a sequential Circuit
  • Combinational logic Memory Elements
  • Memory element a device that can remember value
    indefinitely,
  • or change value on command from its inputs.
  • Examples latches and flip-flops

4
Combinational Circuits
  • A combinational logic circuit has
  • A set of m Boolean inputs,
  • A set of n Boolean outputs, and
  • n switching functions, each mapping the 2m input
    combinations to an output such that the current
    output depends only on the current input values
  • A block diagram

5
Integrated Circuits (IC)
  • 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 10
    gates
  • MSI (medium-scale integrated) - 10 to 100 gates
  • LSI (large-scale integrated) - 100 to thousands
    of gates
  • VLSI (very large-scale integrated) - thousands to
    100s of millions of gates

6
Hierarchical Design
  • To control the complexity of the function mapping
    inputs to outputs
  • Decompose the function into smaller pieces called
    blocks
  • Decompose each blocks 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
  • 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

7
Hierarchy for Parity Tree Example
X
0
X
1
X
2
9-Input
X
3
odd
X
Z
4
O
X
function
5
X
A
X
6
0
3-Input
0
X
7
odd
A
X
B
X
1
8
O
1
function
A
X
(a) Symbol for circuit
2
2
X
A
A
3-Input
0
3-Input
0
3
odd
odd
A
B
A
X
B
Z
1
O
1
4
O
O
function
function
A
A
X
2
2
5
A
X
0
6
3-Input
odd
B
A
X
O
1
7
function
A
X
2
8
(b) Circuit as interconnected 3-input odd
function blocks
A
0
B
A
1
O
A
2
(c) 3-input odd function circuit as
interconnected exclusive-OR
blocks
(d) Exclusive-OR block as interconnected
NANDs
8
Reusable Functions and CAD
  • 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 Computer-Aided Design Tools
  • Schematic Capture
  • Logic Simulators
  • Timing Verifiers
  • Hardware Description Languages
  • Verilog and VHDL
  • Logic Synthesizers
  • Integrated Circuit Layout

9
Top-Down versus Bottom-Up Design
  • 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
  • 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

10
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
  • Logic Levels the signal value ranges for 1 and
    0 on the inputs and 1 and 0 on the outputs (see
    Figure 1-1)
  • Noise Margin the maximum external noise voltage
    superimposed on a normal input value that will
    not cause an undesirable change in the circuit
    output
  • Cost for a gate - a measure of the contribution
    by the gate to the cost of the integrated circuit
  • Propagation Delay The time required for a
    change in the value of a signal to propagate from
    an input to an output
  • Power Dissipation the amount of power drawn
    from the power supply and consumed by the gate

11
Propagation Delay
  • 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 (tPHL) and low-to-high (tPLH) 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.

12
Propagation Delay (continued)
  • Propagation delays measured at the midpoint
    between the L and H values
  • What is the expression for the tPHL delay for
  • a string of n identical buffers?
  • a string of n identical inverters?


13
Delay Models
  • Transport delay - a change in the output in
    response to a change on the inputs occurs after a
    fixed specified delay
  • rejection time is a specified value no larger
    than the propagation delay and it is often equal
    to it. (page 99)
  • Inertial delay - similar to transport delay,
    except that if the input changes such that the
    output is to change twice in a time interval less
    than the rejection time, the output changes do
    not occur. Models typical electronic circuit
    behavior, namely, rejects narrow pulses on the
    outputs

14
Cost
  • 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
  • Ignoring the wiring area, the gate area is
    roughly proportional to the gate input count
  • So gate input count is a rough measure of gate
    cost
  • If the actual chip layout area occupied by the
    gate is known, it is a far more accurate measure

15
Hardware Description Languages3-1
  • HDL Hardware Description Languages allow
    rigidly defined language to represent logic
    circuits.
  • AHDL Altera Hardware Description Language.
  • VHDL Very High Speed Integrated circuit
    Hardware Description Language.
  • Developed by DoD
  • Standardized by IEEE
  • Widely used to translate designs into bit
    patterns that program actual devices.

OR Gate
A
16
HDL Format and Syntax
  • Boolean Description Using VHDL
  • Example defines an AND gate.
  • The keyword ENTITY names the circuit block, in
    this case and_gate
  • The keyword PORT defines the inputs and outputs.
  • The keyword ARCHITECTURE describes the operation
    inside the block.
  • The BEGIN and END contain a description of the
    operation

17
Design Procedure3-3
  • Specification the circuit functions
  • Formulation truth table or I/O mapping
  • Optimization draw logic diagrams
  • Technology Mapping map logic components to
    available components
  • Verification correctness check
  • See Examples 3-2, 3-3, 3-4

18
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
  • Apply 2-level and multiple-level optimization
  • Draw a logic diagram or provide a netlist for the
    resulting circuit using ANDs, ORs, and inverters

19
Design Procedure
  • Technology Mapping
  • Map the logic diagram or netlist to the
    implementation technology selected
  • Verification
  • Verify the correctness of the final design

20
Intentionally left blank
21
Design Example 3-2
  • Specification
  • BCD to Excess-3 code converter
  • Transforms BCD code for the decimal digits to
    Excess-3 code for the decimal digits
  • BCD code words for digits 0 through 9 4-bit
    patterns 0000 to 1001, respectively
  • Excess-3 code words for digits 0 through 9 4-bit
    patterns consisting of 3 (binary 0011) added to
    each BCD code word
  • Implementation
  • multiple-level circuit
  • NAND gates (including inverters)

22
Design Example (continued)
  • Formulation
  • Conversion of 4-bit codes can be most easily
    formulated by a truth table
  • Variables- BCD A,B,C,D
  • Variables- Excess-3 W,X,Y,Z
  • Dont Cares- BCD 1010 to 1111

23
Design Example (continued)
  • Optimization
  • 2-level usingK-maps
  • W A BC BD
  • X C D B
  • Y CD
  • Z

24
Design Example (continued)
  • Optimization (continued)
  • Multiple-level using transformationsT1 C DW
    A BT1 X T1 BY CD Z
  • An additional extraction not shown in the text
    since it uses a Boolean transformation (
    C D )
  • W A BT1X T1 B Y CD Z

25
Design Example (continued)
  • Technology Mapping page 107 3rd ed.
  • Mapping with a library containing inverters and
    2-input NAND, 2-input NOR, and 2-2 AOI gates

26
Design Example BCD to BCD-to-Seven-Segment
Decoder
  • Specification
  • A BCD-to-seven-segment-decoder is a combinational
    circuit that accepts a decimal digit in BCD and
    generates the appropriate output for the
    selection of segments that display the decimal
    digit.
  • Each digit is formed from 7 segments, each
    consisting of 1 LED that can be illuminated by
    digital signals.

27
  • 2. Formulation (Truth table) To display the
    input BCD digit
  • Which segment(s) should illuminate (be turned
    on)?
  • Which segment(s) should not illuminate (be
    turned off)?

28
  • OptimizationBoolean Function for each output
  • a? b? c? d?
  • e? f? g?
  • Draw the logic diagram

29
Technology Mapping
  1. Custom design
  2. Cell design reuse
  3. Gate array VLSI fabrication

30
Chip Design 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 design 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
    - only the interconnections between gates are
    specific to a design
  • Lowest cost
  • Less density compared to full custom and standard
    cell

31
Cell Libraries
  • Cell - a pre-designed primitive block
  • Cell library - a collection of cells available
    for design using a particular implementation
    technology
  • Cell characterization - a detailed specification
    of a cell for use by a designer - often based on
    actual cell design and fabrication and measured
    values
  • Cells are used for gate array, standard cell, and
    in some cases, full custom chip design

32
Example Cell Library
33
Basic Verification Methods
  • Manual Logic Analysis
  • Find the truth table or Boolean equations for the
    final circuit
  • Compare the final circuit truth table with the
    specified truth table, or
  • Show that the Boolean equations for the final
    circuit are equal to the specified Boolean
    equations
  • Simulation
  • Simulate the final circuit (or its netlist,
    possibly written as an HDL) and the specified
    truth table, equations, or HDL 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

34
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) - complex enough
    to be called architectures - See VLSI
    Programmable Logic Devices reading supplement

PAL is a registered trademark of Lattice
Semiconductor Corp.
35
ROM, PAL and PLA Configurations
Fixed
Programmable
Programmable
Inputs
Outputs
AND array
Connections
OR array
(decoder)
(a) Programmable read-only memory (PROM)
Programmable
Programmable
Fixed
Inputs
Outputs
Connections
AND array
OR array
(b) Programmable array logic (PAL) device
Programmable
Programmable
Programmable
Programmable
Outputs
Inputs
OR array
Connections
Connections
AND array
(c) Programmable logic array (PLA) device
36
Read Only Memory
  • Read Only Memories (ROM) or Programmable Read
    Only Memories (PROM) have
  • N input lines,
  • M output lines, and
  • 2N decoded minterms.
  • Fixed AND array with 2N outputs implementing all
    N-literal minterms.
  • Programmable OR Array with M outputs lines to
    form up to M sum of minterm expressions.
  • A program for a ROM or PROM is simply a
    multiple-output truth table
  • If a 1 entry, a connection is made to the
    corresponding minterm for the corresponding
    output
  • If a 0, no connection is made
  • Can be viewed as a memory with the inputs as
    addresses of data (output values), hence ROM or
    PROM names!

37
Read Only Memory Example
  • Example A 8 X 4 ROM (N 3 input lines, M 4
    output lines)
  • The fixed "AND" array is adecoder with 3
    inputs and 8outputs implementing minterms.
  • The programmable "ORarray uses a single line
    torepresent all inputs to anOR gate. An X in
    thearray corresponds to attaching theminterm to
    the OR
  • Read Example For input (A2,A1,A0) 011, output
    is (F3,F2,F1,F0 ) 0011.
  • What are functions F3, F2 , F1 and F0 in terms of
    (A2, A1, A0)?

38
Programmable Array Logic (PAL)
  • The PAL is the opposite of the ROM, having a
    programmable set of ANDs combined with fixed ORs.
  • Disadvantage
  • ROM guaranteed to implement any M functions of
    Ninputs. PAL may have too few inputs to the OR
    gates.
  • Advantages
  • For given internal complexity, a PAL can have
    larger N and M
  • Some PALs have outputs that can be complemented,
    adding POS functions
  • No multilevel circuit implementations in ROM
    (without external connections from output to
    input). PAL hasoutputs from OR terms as
    internal inputs to all ANDterms, making
    implementation of multi-level circuits easier.

39
Programmable Logic Array (PLA)
  • Compared to a ROM and a PAL, a PLA is the most
    flexible having a programmable set of ANDs
    combined with a programmable set of ORs.
  • Advantages
  • A PLA can have large N and M permitting
    implementation of equations that are impractical
    for a ROM (because of the number of inputs, N,
    required 
  • A PLA has all of its product terms connectable
    to all outputs, overcoming the problem of the
    limited inputs to the PAL Ors
  • Some PLAs have outputs that can be complemented,
    adding POS functions
  • Disadvantage
  • Often, the product term count limits the
    application of a PLA. Two-level multiple-output
    optimization reduces the number of product terms
    in an implementation, helping to fit it into a
    PLA.

40
HW 3
  • 1. A majority function has an output value of 1
    if there are more 1s than 0s on its inputs. The
    output is 0 otherwise. Design a three-input
    majority function. 3-10
  • 2. design a circuit with a 4-bit BCD input A, B,
    C, D that produces an output W, X, Y, Z that is
    equal to the input 6 in binary. For example
    9(1001) 6 (0110) 15 (1111). 3-17
Write a Comment
User Comments (0)
About PowerShow.com