Professional Documents
Culture Documents
Documentation Standards Documentation Standards: Documentation of A Digital System Basic Rules of Block Diagram
Documentation Standards Documentation Standards: Documentation of A Digital System Basic Rules of Block Diagram
___________________ ___________________
Advanced Logic Circuit Advanced Logic Circuit
Documentation Documentation
Standards Standards
___________________ ___________________
Documentation of a digital system
provides the necessary information for
___________________ Basic Rules of Block Diagram ___________________
___________________ ___________________
A block diagram must show the most
building, testing, operating , and important system elements and how
maintaining the system. they work together.
___________________ ___________________
block that has a whole system in it.
modules of the system and how they
are connected. Important control signals and buses in
A schematic diagram showing all the the block diagram should have names.
___________________ ___________________
components, their types, and all Flow of control and data should be
interconnections. clearly indicated.
A timing diagram showing the logic
___________________ ___________________
The schematic diagram inside the block
signals as a function of time. need not to be shown.
A structured logic device description
showing the operation of the structure
A Circuit description explaining of the
operation of the logic circuit. ___________________ ___________________
Combinational Logic Design Practices * Property of STI
Page 1 of 63
___________________ Combinational Logic Design Practices * Property of STI
Page 3 of 63
___________________
2 _________________ 4 __________________
___________________ ___________________
Advanced Logic Circuit Advanced Logic Circuit
Documentation Documentation
Standards Standards
___________________ ___________________
Block Diagram ___________________ Schematic Diagram ___________________
___________________ ___________________
shows all inputs and outputs, the Things to follow in doing schematic
building blocks, their function names, diagrams:
and the data flow paths or the logic
signals.
Related logic signals are combined
together and drawn with a double or
___________________ Details of component inputs, outputs,
and interconnections
Reference designators
___________________
heavy line, known as a bus
Example: Min/Max Circuit ___________________ Pin numbers
Gate symbols
Signal names and active levels
___________________
___________________ Bubble-to-Bubble Logic Design
Layouts
Logic diagram: An informal drawing
___________________
___________________ ___________________
without this level of details.
___________________ ___________________
___________________ ___________________
Combinational Logic Design Practices * Property of STI
Page 2 of 63
___________________ Combinational Logic Design Practices * Property of STI
Page 4 of 63
___________________
5 _________________ 7 __________________
___________________ ___________________
Advanced Logic Circuit Advanced Logic Circuit
Documentation Documentation
Standards Standards
___________________ ___________________
Example of Schematic Diagram ___________________ Active Levels ___________________
___________________ ___________________
Each signal name should have an
active-level associated with it, normally
it is a + or symbol that denotes high
___________________
or low.
A signal is active-high if it performs the
named action or denotes the named
___________________
___________________ condition when its HIGH or 1. A signal
is active-low if it performs the named
action or denotes the named condition
___________________
___________________
when its LOW or 0.
Different naming conventions for active
___________________
___________________ ___________________
levels are available.
___________________ ___________________
___________________ ___________________
Combinational Logic Design Practices * Property of STI
Page 5 of 63
___________________ Combinational Logic Design Practices * Property of STI
Page 7 of 63
___________________
6 _________________ 8 __________________
___________________ ___________________
Advanced Logic Circuit Advanced Logic Circuit
Documentation Documentation
Standards Standards
___________________ ___________________
Signal Names ___________________ Active Levels Naming Conventions ___________________
___________________ ___________________
Signal name is a descriptive
alphanumeric label for each
input/output signal.
In real system, well-chosen names
convey information to readers.
A signal name indicates
___________________ ___________________
___________________ ___________________
An action that is controlled like
ENABLE, REQUEST, GO, PAUSE
___________________ ___________________
A condition that it detects such as
READY_L, ERROR,
Data that it carries, such as
___________________ ___________________
INBUS[31..0], ADDR[150]
___________________ ___________________
part of the variable name.
Example:
___________________ ___________________
ERROR is an active high which
means there is an error when the
signal is HIGH ( logic 1).
READY_L is an active low which
___________________ ___________________
means the data is ready when the
signal is LOW ( logic 0).
Combinational Logic Design Practices * Property of STI Combinational Logic Design Practices * Property of STI
Page 6 of 63 Page 8 of 63
9 _________________ 11 _________________
___________________ ___________________
Advanced Logic Circuit Advanced Logic Circuit
Documentation Documentation
Standards Standards
___________________ ___________________
Example of Naming Conventions ___________________ Active Levels for Pins ___________________
___________________ ___________________
The outline of a logic symbol, means that the
given logic function is occurring inside that
outline.
___________________ ___________________
In logic gates and logic structures the inversion
bubble indicates the active level of the signal
Examples:
___________________ ___________________
- 2-to- 4 Decoder
10 ________________ 12 _________________
___________________ ___________________
Advanced Logic Circuit Advanced Logic Circuit
Documentation Documentation
Standards Standards
___________________ ___________________
Signal Name, Logic Expression, Logic
Equation
___________________ Bubble-to-Bubble Logic Design Rules ___________________
A signal name uses any variable name
in alphanumeric label.
___________________ ___________________
A logic expression combines signal
names using switching algebra
operators such as AND,OR, and NOT
___________________ ___________________
A logic equation is an assignment of a
logic expression to a signal name. It ___________________ ___________________
___________________ ___________________
describe one signals function in terms
of other signals.
For example: READY_L, READY are
signal names. READY is a logic
expression. ___________________ ___________________
___________________ ___________________
___________________ ___________________
Combinational Logic Design Practices * Property of STI
Page 10 of 63
___________________ Combinational Logic Design Practices * Property of STI
Page 12 of 63
___________________
13 ________________ 15 _________________
___________________ ___________________
Advanced Logic Circuit Advanced Logic Circuit
Documentation Documentation
Standards Standards
___________________ ___________________
Drawing Layouts ___________________ Hierarchical Schematic Structure ___________________
___________________ ___________________
Inputs to the left/top, outputs to the
right/bottom.
Signals flow from left to right (or top to
bottom).
Signal paths should be connected. ___________________ ___________________
___________________ ___________________
Broken signal paths should be flagged
to indicate the source or destination
and direction.
Crossing lines/Connected lines (T-type
connection)
Multiple pages schematics:
___________________ ___________________
___________________ ___________________
Flat Structure
Hierarchical Structure
___________________ ___________________
___________________ ___________________
Combinational Logic Design Practices * Property of STI
Page 13 of 63
___________________ Combinational Logic Design Practices * Property of STI
Page 15 of 63
___________________
14 ________________ 16 _________________
___________________ ___________________
Advanced Logic Circuit Advanced Logic Circuit
Documentation Documentation
Standards Standards
___________________ ___________________
Drawing Layout: Flat Schematic
Structure
___________________ Rules to avoid common errors in signal
convention:
___________________
___________________ Use exactly the same name for same
signal. Use different names for different
___________________
___________________
signals. (especially cross pages)
Use appropriate active levels for signal
names
___________________
___________________ Use T convention for connected lines.
___________________
___________________ ___________________
___________________ ___________________
___________________ ___________________
___________________ ___________________
Combinational Logic Design Practices * Property of STI
Page 14 of 63
___________________ Combinational Logic Design Practices * Property of STI
Page 16 of 63
___________________
17 ________________ 19 _________________
___________________ ___________________
Advanced Logic Circuit Advanced Logic Circuit
___________________ ___________________
denote a range
But:
Buses are drawn with thicker lines than
ordinary signals. Many situations require only small
volumes of ICs
___________________ ___________________
Individual signals are put into or pulled out
of the bus by connecting an ordinary signal Many situations require changes to be
line to the bus and writing the signal name. done in the field, e.g. Firmware of a
product under development
___________________ ___________________
(A special connection dot is often used.)
A signal extracted from a bus should be
named A programmable logic device can be:
___________________ ___________________
Inter-page signal/Bus Flags: Produced in large volumes
Uni-direction
Programmed to implement many
Bi-direction
different low-volume designs
___________________ ___________________
Example of buses:
___________________ ___________________
Combinational Logic Design Practices * Property of STI
Page 17 of 63
___________________ Combinational Logic Design Practices * Property of STI
Page 19 of 63
___________________
18 ________________ 20 _________________
___________________ ___________________
Advanced Logic Circuit Advanced Logic Circuit
___________________ ___________________
Field-Programmable Gate Array (FPGA) Reprogrammable (Erased &
A PLDs function is not fixed Programmed many times)
Can be programmed to perform Volatile - Programming lost if chip power
___________________ ___________________
lost
different functions
Single-bit storage element
Non-Volatile - Programming survives
Programmable Logic
Decoder
Devices
___________________ ___________________
Used symbol in PLD ___________________ Truth Table of 2-to-4 Decoder ___________________
___________________ ___________________
___________________ ___________________
___________________ ___________________
___________________ ___________________
Most PLD technologies have gates with
very high fan-in
___________________ ___________________
Fuse map: graphic representation of
the selected connections ___________________ ___________________
___________________ ___________________
Combinational Logic Design Practices * Property of STI
Page 21 of 63
___________________ Combinational Logic Design Practices * Property of STI
Page 23 of 63
___________________
22 ________________ 24 _________________
___________________ ___________________
Advanced Logic Circuit Advanced Logic Circuit
Decoder Decoder
___________________ ___________________
Accepts a value and decodes it ___________________ 2-to-4 Decoder ___________________
___________________ ___________________
Output corresponds to value of n
inputs
___________________ ___________________
___________________ ___________________
___________________ ___________________
Combinational Logic Design Practices * Property of STI
Page 22 of 63
___________________ Combinational Logic Design Practices * Property of STI
Page 24 of 63
___________________
25 ________________ 27 _________________
___________________ ___________________
Advanced Logic Circuit Advanced Logic Circuit
Decoder Decoder
___________________ ___________________
Truth Table of 3-to-8 Decoder ___________________ Combinational Circuit Design with
Decoders
___________________
A A A D D D D D D D D
2 1 0 0 1 2 3 4 5 6 7
___________________ A decoder provides an output of 2n
minterms (sum of products) with n
___________________
0 0 0 1 ___________________
input variables
Any Boolean function can be expressed
as a sum of minterms at the output
___________________
0 0 1 1
___________________ A decoder and external OR gates can be
used to implement any combinational ___________________
0 1 0 1
___________________ ___________________
function.
0 1 1 1
1 0 0 1 ___________________ ___________________
1 0 1
1 1 0
1
1
___________________ ___________________
1 1 1 1 ___________________ ___________________
Combinational Logic Design Practices * Property of STI
Page 25 of 63
___________________ Combinational Logic Design Practices * Property of STI
Page 27 of 63
___________________
26 ________________ 28 _________________
___________________ ___________________
Advanced Logic Circuit Advanced Logic Circuit
Decoder Encoders
___________________ ___________________
3-to-8 Decoder ___________________ Perform the inverse operation of a
decoder
___________________
___________________ 2n (or less) input lines and n output
lines
___________________
___________________ ___________________
___________________ ___________________
___________________ ___________________
___________________ ___________________
___________________ ___________________
___________________ ___________________
Combinational Logic Design Practices * Property of STI
Page 26 of 63
___________________ Combinational Logic Design Practices * Property of STI
Page 28 of 63
___________________
29 ________________ 31 _________________
___________________ ___________________
Advanced Logic Circuit Advanced Logic Circuit
Encoders Encoders
___________________ ___________________
___________________ Can be implemented with 3 OR gates ___________________
___________________ ___________________
A0 = D1 + D3 + D5 + D7;
A1 = D2 + D3 + D6 + D7;
A2 = D4 + D5 + D6 + D7;
___________________ ___________________
___________________ ___________________
___________________ ___________________
___________________ ___________________
Combinational Logic Design Practices * Property of STI
Page 29 of 63
___________________ Combinational Logic Design Practices * Property of STI
Page 31 of 63
___________________
30 ________________ 32 _________________
___________________ ___________________
Advanced Logic Circuit Advanced Logic Circuit
Encoders Encoders
___________________ ___________________
Encoders with OR Gates ___________________ Priority Encoder ___________________
___________________ ___________________
Accepts multiple input values instead
of just having one input that is high,
and encodes them
___________________ ___________________
when more than one input is
active, sets output to correspond to
highest input
___________________ ___________________
Selectors / Enable can still be active
high or active low
___________________ ___________________
___________________ ___________________
Combinational Logic Design Practices * Property of STI
Page 30 of 63
___________________ Combinational Logic Design Practices * Property of STI
Page 32 of 63
___________________
33 ________________ 35 _________________
___________________ ___________________
Advanced Logic Circuit Advanced Logic Circuit
Encoders Multiplexer
___________________ ___________________
Encoder vs. Decoders ___________________ Multiplexer: 2-to-1 ___________________
___________________ S = 0 selects I0
___________________
Decoder Encoder ___________________ ___________________
___________________ ___________________
___________________ ___________________
Binary decoders/encoders
___________________ ___________________
n-to-2^n
Input code : Binary
2^n-to-n encoder
Input code : 1-out-of-
___________________ ___________________
___________________ ___________________
Code 2^n.
Output code :1-out-of- Output code : Binary
2^n. Code
34 ________________ 36 _________________
___________________ ___________________
Advanced Logic Circuit Advanced Logic Circuit
Multiplexer Multiplexer
___________________ ___________________
A multiplexer switches (or routes) data
from 2N inputs to one output, where N
___________________ Multiplexer: 2-to-1 with Enable ___________________
is the number of select (or control)
inputs.
___________________ ___________________
A multiplexer (mux) is a digital switch
___________________ ___________________
with multiple inputs and one output. It
is also considered as a circuit that is
many to one. It selects what input
___________________ ___________________
signal goes sequentially to the output
link.
___________________ ___________________
___________________ ___________________
___________________ ___________________
___________________ ___________________
Combinational Logic Design Practices * Property of STI
Page 34 of 63
___________________ Combinational Logic Design Practices * Property of STI
Page 36 of 63
___________________
37 ________________ 39 _________________
___________________ ___________________
Advanced Logic Circuit Advanced Logic Circuit
Multiplexer Multiplexer
___________________ ___________________
Multiplexer: 4-to-1 ___________________ MUX: Designing Logic Circuits ___________________
___________________ ___________________
Each row in a Truth Table of a
multiplexer corresponds to a minterm
with N-inputs
___________________ ___________________
Two select signals
___________________ ___________________
___________________ ___________________
___________________ ___________________
Y = (I0.s1's0') + (I1.s1's0) + (I2.s1s0') + (I3.s1s0)
Combinational Logic Design Practices * Property of STI Combinational Logic Design Practices * Property of STI
Page 37 of 63 Page 39 of 63
38 ________________ 40 _________________
___________________ ___________________
Advanced Logic Circuit Advanced Logic Circuit
Multiplexer Multiplexer
___________________ ___________________
Multiplexer 4-to-1 ___________________ MUX: Designing Logic Circuits
Efficiently
___________________
___________________ ___________________
Select signal for
second level of decoders
Each row in a Truth Table corresponds
s to a minterm
___________________ ___________________
1
N-input Truth Table
s0
A product term of N-1 variables can be
mapped to each of the multiplexer
Select signal for
first level of decoders w
0 0
___________________ inputs
(N-1)-input Multiplexer
___________________
w
1 1
___________________ For the rows in the Truth Table,
Group N-1 highest order inputs into
pairs
___________________
___________________ ___________________
0
f Define the output of each pair using the
1 Nth input
w
2
3
0
1
___________________ ___________________
___________________ ___________________
___________________ ___________________
2-to-1 Muxes
Combinational Logic Design Practices * Property of STI Combinational Logic Design Practices * Property of STI
Page 38 of 63 Page 40 of 63
41 ________________ 43 _________________
___________________ ___________________
Advanced Logic Circuit Advanced Logic Circuit
Multiplexer Demultiplexer
___________________ ___________________
MUX: Designing a Logic Circuit ___________________ It is a circuit that switches (r routes
data from one input to 2N outputs,
___________________
___________________ where N is the number of select
inputs.
___________________
___________________ It performs the opposite function of a
___________________
___________________ multiplexer.
___________________
___________________ It is also considered as a circuit that
has many one to many outputs. ___________________
___________________ ___________________
___________________ ___________________
___________________ ___________________
Combinational Logic Design Practices * Property of STI
Page 41 of 63
___________________ Combinational Logic Design Practices * Property of STI
Page 43 of 63
___________________
42 ________________ 44 _________________
___________________ ___________________
Advanced Logic Circuit Advanced Logic Circuit
Multiplexer Demultiplexer
___________________ ___________________
MUX: Designing a Logic Circuit ___________________ Demultiplexer: 1-to-4 ___________________
___________________ 0
1
O0
O1
___________________
___________________ I
2 O2 ___________________
___________________ ___________________
3 O3
s1
___________________ s0 ___________________
___________________ S1 S0 O O O O
0 1 2 3
O0 = S1'.S0'.I ___________________
___________________ 0 0 I 0 0 0
0 1 0 I 0 0
O1 = S1.S0'.I
___________________
___________________ ___________________
O2 = S1'.S0.I
1 0 0 0 I 0 O3 = S1.S0.I
Combinational Logic Design Practices * Property of STI Combinational Logic Design Practices * Property of STI
Page 45 of 63 Page 47 of 63
46 ________________ 48 _________________
___________________ ___________________
Advanced Logic Circuit Advanced Logic Circuit
Exclusive OR and
Equality Comparator
Exclusive NOR Gates
___________________ ___________________
XOR and XNOR Symbols ___________________ XNOR
___________________
___________________ ___________________
Equivalent Symbols of XOR Gate X Y Z
0 0 1
___________________ ___________________
X 0 1 0
1 0 0
Z 1 1 1
___________________ ___________________
Y
A2
B1 A_EQ_B
___________________ B[3..0]
A_GT_B
___________________
A3
B2 C2 ___________________ ___________________
B3 C3 ___________________ ___________________
FIELD A = [A0..3];
___________________ ___________________
___________________ ___________________
FIELD B = [B0..3];
FIELD C = [C0..3];
50 ________________ 52 _________________
___________________ ___________________
Advanced Logic Circuit Advanced Logic Circuit
___________________ ___________________
B3 Vcc P0 P=Q
A[3..0] Equality 2 15 3 18
Detector A<Bin A3 Q0 Q7
___________________ ___________________
A_EQ_B 3
A=Bin B2 14 4
P1 P7
17
B[3..0]
4 13 5 16
___________________ ___________________
A>Bin A2 Q1 Q6
5 12 6 15
A>Bout A1 P2 P6
___________________ ___________________
6 11 7 14
A=Bout B1 Q2 Q5
7 10 8 13
___________________ ___________________
A<Bout A0 P3 P5
8 9 9 12
GND B0 Q3 Q4
___________________ ___________________
10 11
74LS85 GND P4
54 ________________ 56 _________________
___________________ ___________________
Advanced Logic Circuit Advanced Logic Circuit
Adders, Subtractors,
Equality Comparator
and ALU
___________________ ___________________
1-Bit Magnitude Comparator ___________________ Half Adder: Adds two 1-bit operand ___________________
___________________ ___________________
Truth Table
x y
Gout
___________________ ___________________
___________________ ___________________
1-bit Gin
Eout comparator
___________________ ___________________
Lout Lin
___________________ ___________________
Combinational Logic Design Practices * Property of STI
Page 57 of 63
___________________ Combinational Logic Design Practices * Property of STI
Page 59 of 63
___________________
58 ________________ 60 _________________
___________________ ___________________
Advanced Logic Circuit Advanced Logic Circuit
___________________
complement plus 1.
Therefore, X Y = X + Y + 1 ,
subtraction can be performed by using
___________________
___________________ adder circuits.
___________________
___________________ ___________________
___________________ ___________________
___________________ ___________________
___________________ ___________________
Combinational Logic Design Practices * Property of STI
Page 58 of 63
___________________ Combinational Logic Design Practices * Property of STI
Page 60 of 63
___________________
61 ________________ 63 _________________
___________________ ___________________
Advanced Logic Circuit Advanced Logic Circuit
___________________ of a processor
___________________
___________________ ___________________
X,Y are n-bit unsigned binary numbers
___________________ ___________________
Addition : S=X+Y
Subtraction : D = X - Y = X + (-Y) =
___________________ ___________________
___________________ ___________________
= X+ (Twos Complement of Y)
= X+ (Ones Complement of Y) + 1
= X+ Y+ 1
___________________ ___________________
Combinational Logic Design Practices * Property of STI
Page 61 of 63
___________________ Combinational Logic Design Practices * Property of STI
Page 63 of 63
___________________
62 ________________
___________________
Advanced Logic Circuit
Adders, Subtractors,
and ALU
___________________
Using Adder as a Subtractor ___________________
___________________
Ripple Adder can be used as a
Subtractor by inverting Y and setting
the initial carry ( CIN ) to 1
___________________
___________________
___________________
___________________
___________________
___________________
Combinational Logic Design Practices * Property of STI
Page 62 of 63
___________________