Download PPT - Electrical and Computer Engineering

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Microprocessor wikipedia , lookup

Index of electronics articles wikipedia , lookup

Opto-isolator wikipedia , lookup

TRIAC wikipedia , lookup

Flip-flop (electronics) wikipedia , lookup

Rectiverter wikipedia , lookup

Soft error wikipedia , lookup

Field-programmable gate array wikipedia , lookup

Hardware description language wikipedia , lookup

Integrated circuit wikipedia , lookup

Transistor–transistor logic wikipedia , lookup

CMOS wikipedia , lookup

Digital electronics wikipedia , lookup

Transcript
EE2174: Digital Logic and
Lab
Professor Shiyan Hu
Department of Electrical and Computer Engineering
Michigan Technological University
Combinational Circuit
Overview

Combinatorial Circuits



Definition
Divide and Conquer
Three Design Methodologies



23-May-17
Gate Library Based Design
Full Customer Design
Programmable Logic Array Based Design
Combinational Logic
PJF- 2
Combinational Circuits



A combinational circuit consists of logic
gates whose outputs, at any time, are
determined by combining the values of
the inputs.
For n input variables, there are 2n
possible binary input combinations.
For each binary combination of the
input variables, there is one possible
output.
23-May-17
Combinational Logic
PJF- 3
Combinational Circuits (cont.)
Hence, a combinational circuit can be
described by:

1.
2.
A truth table that lists the output values for
each combination of the input variables, or
m Boolean functions, one for each output
variable.
n-inputs
23-May-17
••
•
Combinational
Circuit
Combinational Logic
••
•
m-outputs
PJF- 4
Combinational vs. Sequential Circuits


Combinational circuits are memory-less.
Thus, the output value depends ONLY on the
current input values.
Sequential circuits consist of combinational
logic as well as memory elements (used to
store certain circuit states). Outputs
depend on BOTH current input values and
previous input values (kept in the storage
elements).
23-May-17
Combinational Logic
PJF- 5
Combinational vs. Sequential Circuits
n-inputs
Combinational
Circuit
m-outputs
(Depend only on inputs)
Combinational Circuit
n-inputs
Combinational
Circuit
m-outputs
Next
state
Storage
Elements
Present
state
Sequential Circuit
23-May-17
Combinational Logic
PJF- 6
Important Design Concepts


Modern digital design deals with various
methods and tools that are used to design and
verify complex circuits and systems.
Important concepts:





Design Hierarchy
Top-Down and Bottom-Up Design
Computer-Aided-Design (CAD) tools
Hardware Description Languages (HDLs)
Logic Synthesis
23-May-17
Combinational Logic
PJF- 7
Design Hierarchy



“Divide-and-Conquer” approach used to
cope with the challenges of designing
complex circuits and systems (many times
in the order of millions of gates).
Circuit is broken into blocks, repetitively.
Challenge: Verify that the block-based
circuit performs its intended function.
23-May-17
Combinational Logic
PJF- 8
Design Hierarchy
Example: 9-input odd function
23-May-17
Combinational Logic
PJF- 9
Why is Hierarchy useful?


Reduces the complexity required to
design and represent the overall
schematic of the circuit.
Reuse of blocks is possible. Identical
blocks can be used in various places in a
design, or in different designs.
23-May-17
Combinational Logic
PJF- 10
Top-Down Design
Gajski and Kuhn’s Y Chart
Behavioral
Top-Down
Architectural
Structural
Algorithmic
Functional Block
Processor
Systems
Hardware Modules
Logic
Algorithms
ALUs, Registers
Register Transfer
Circuit Gates, FFs
Logic
Transistors
Transfer Functions
Rectangles
Cell, Module Plans
Floor Plans
Bottom-Up
Clusters
Physical Partitions
Physical/Geometry
23-May-17
Combinational Logic
PJF- 11
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



23-May-17
Verilog and VHDL
Logic Synthesizers
Integrated Circuit Layout
Combinational Logic
PJF- 12
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
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
23-May-17
Combinational Logic
PJF- 13
Integrated Circuits


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




23-May-17
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
Combinational Logic
PJF- 14
Technology Parameters

Specific gate implementation technologies are characterized by
the following parameters:







23-May-17
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
Combinational Logic
PJF- 15
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.
23-May-17
Combinational Logic
PJF- 16
Propagation Delay Example
OUT (volts)
IN (volts)
 Find tPHL, tPLH and tpd for the signals given
23-May-17
1.0 ns per division
Combinational Logic
t (ns)
PJF- 17
Fan-out

Fan-out can be defined in terms of a standard
load



Example: 1 standard load equals the load
contributed by the input of 1 inverter.
Transition time -the time required for the gate
output to change from H to L, tHL, or from L to H,
tLH
The maximum fan-out that can be driven by a gate
is the number of standard loads the gate can drive
without exceeding its specified maximum
transition time
23-May-17
Combinational Logic
PJF- 18
Fan-out and Delay


The fan-out loading a gate’s output affects
the gate’s propagation delay
Example:



One realistic equation for tpd for a NAND gate
with 4 inputs is:
tpd = 0.07 + 0.021 SL ns
SL is the number of standard loads the gate is
driving, i. e., its fan-out in standard loads
For SL = 4.5, tpd = 0.165 ns
23-May-17
Combinational Logic
PJF- 19
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
23-May-17
Combinational Logic
PJF- 20
Chip Design Styles

Full custom - the entire design of the chip down to the smallest detail
of the layout is performed



Standard cell - blocks have been design ahead of time or as part of
previous designs



Expensive
Justifiable only for dense, fast chips with high sales volume
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
23-May-17
Combinational Logic
PJF- 21
Gate Library Based Design
Methodology
Specification
1.
Write a specification for the circuit if one is not already
available

Formulation
2.

Derive a truth table or initial Boolean equations that
define the required relationships between the inputs and
outputs, if not in the specification
Optimization
3.


23-May-17
Apply K-map and other optimizations
Draw a logic diagram or provide a netlist for the resulting
circuit using ANDs, ORs, and inverters
Combinational Logic
PJF- 22
Design Procedure
4.
Technology Mapping

5.
Map the logic diagram or netlist to the
implementation technology selected
Convert to CMOS

23-May-17
Replace each gate by its CMOS
implementations
Combinational Logic
PJF- 23
Design Example
1.
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:


23-May-17
multiple-level circuit
NAND gates (including inverters)
Combinational Logic
PJF- 24
Design Example (continued)
Formulation
2.




23-May-17
Conversion of 4-bit codes can be most easily
formulated by a truth table
Variables
- BCD:
Input BCD
Output Excess-3
A,B,C,D
ABCD
WXYZ
Variables
0000
0011
- Excess-3
W,X,Y,Z
0001
0100
0010
0101
Don’t Cares
- BCD 1010
0011
0110
to 1111
0100
0111
0101
0110
0111
1000
1001
Combinational Logic
1000
1001
1010
1011
110 0
PJF- 25
Design Example (continued)
3.
Optimization
a.
z
2-level using
K-maps
A
W = A + BC + BD
X = B C + B D + BC D
Y = CD + C D
x
Z= D
C
1
y
1
0
1
3
4
5
7
1
X
X
12
13
8
9
X
X
1
B
1
4
5
A
X
X
12
13
8
9
1
1
0
4
5
7
6
4
1
23-May-17
1
1
X
13
1
X
10
C
2
8
B
14
11
w
3
A
X
D
1
12
6
X
0
X
7
15
1
10
C
X
2
X
D
1
3
1
X
14
11
0
1
6
15
1
1
2
1
X
C
X
15
X
9
11
Combinational Logic
D
B
X
14
10
1
X
1
1
8
7
X
13
6
X
15
X
9
2
1
5
12
A
X
3
11
14
X
10
D PJF- 26
B
Design Example (continued)
3.
Optimization (continued)
b.
Multiple-level using transformations

D
Perform extraction, finding factor:
W = A + BC + BD
X = B C + BD + B CD
Y = CD + C D
Z=
T1 = C + D
W = A + BT1
X = B T1 + B C D
Y = CD + C D
Z= D
23-May-17
Combinational Logic
PJF- 27
Design Example (continued)
3.
Optimization (continued)
b.

Multiple-level using transformations
T1 = C + D
W = A + BT1
X = BT1 + B CD
Y = CD +
CD
Z =
D
An additional extraction not shown in the text since it uses
a Boolean transformation: (CD = C + D = T1 ):
W = A + BT1
X = B T1 + B T1
Y = CD + T
1
Z=
D
23-May-17
Combinational Logic
PJF- 28
Design Example (continued)
4.
Technology Mapping
•
Mapping with a library containing inverters and 2input NAND, 2-input NOR, and 2-2 AOI gates
A
A
W
B
W
X
B
X
C
Y
C
D
D
Y
Z
23-May-17
Combinational Logic
PJF- 29
Z
Design Example (continued)

5. Convert to CMOS through replacing
each gate to its CMOS implementation
23-May-17
Chapter 2-i: Combinational Logic Circuits (2.1-- 2.5)
PJF - 30
Technology Mapping

Mapping Techniques




NAND gates
NOR gates
MUX gates
Multiple gate types
23-May-17
Combinational Logic
PJF- 31
Mapping to NAND gates

Assumptions:




Gate loading and delay are ignored
Cell library contains an inverter and n-input NAND gates, n =
2, 3, …
An AND, OR, inverter schematic for the circuit is available
The mapping is accomplished by:



Replacing AND and OR symbols,
Pushing inverters through circuit fan-out points, and
Canceling inverter pairs
23-May-17
Combinational Logic
PJF- 32
NAND Mapping Algorithm
Replace ANDs and ORs:
1.
.
.
.
.
.
.
.
.
.
.
.
.
Repeat the following pair of actions until
there is at most one inverter between :
2.
a.
b.
A circuit input or driving NAND gate output, and
The attached NAND gate inputs.
.
.
.
23-May-17
Combinational Logic
.
.
.
PJF- 33
NAND Mapping Example
23-May-17
Combinational Logic
PJF- 34
Full Custom Design Methodology

Similar to the CMOS implementation for Combinational Gate
23-May-17
PJF - 35
Combinational
Logic
Programmable Logic Array


The set of functions to be implemented is first transformed to
product terms
Since output inversion is available, terms can implement either a
function or its complement
23-May-17
PJF - 36
Combinational
Logic
Programmable Logic Array
Example

To implement


F1= A’B’C+A’BC’+AB’C’=(AB+AC+BC+A’B’C’)’
F2=AB+AC+BC
23-May-17
PJF - 37
Combinational
Logic
Programmable Logic Array
Example
A
B
C
X
X
X
1
X
X
X
2
X
X
X Fuse intact
Fuse blown
X
X
X
3
X
X
4
X
X
X
X
C C B B A A
0
X
1
F1
F2
23-May-17
PJF - 38
Combinational
Logic
Summary

Three design styles
Full custom design
 Gate library based design
 PLA based design

2017/5/23
PJF- 39
Combinational
Logic