Professional Documents
Culture Documents
1. Design procedure.
2. Fundamental circuits.
1. Design procedure
2. Fundamental circuits
These blocks are useful for designing large digital system, for example:
o Code converters.
o Adders.
o Multiplexers.
o Decoders.
o Encoders and so on.
Code converters
Translate information from one binary code to another.
o BCD to Excess-3 converter.
o BCD to seven-segment code converter.
o BCD to Gray code converter.
Input
Output
BCD code
Excess-3
A B C D W X Y Z
0 0 0 0 0 0 1 1
0 0 0 1 0 1 0 0
0 0 1 0 0 1 0 1
0 0 1 1 0 1 1 0
0 1 0 0 0 1 1 1
0 1 0 1 1 0 0 0
0 1 1 0 1 0 0 1
0 1 1 1 1 0 1 0
1 0 0 0 1 0 1 1
1 0 0 1 1 1
First Code
Combinational
Circuits
Second Code
MSD
A
BCD
Code
10
11
12
13
14
15
1
1
1
1
1
1
0
0
1
1
1
1
1
1
0
0
1
1
0
1
0
1
0
1
X
X
X
X
X
X
X
X
X
X
X
X
0
X
X
X
X
X
X
0
X
X
X
X
X
X
B
C
BCD-toExcess-3
Convertor
W
X Excess-3
Y
Z
D
LSD
Code
Optimization:
K-map for the outputs (four outputs) are shown, they are plotted to obtain simplified
sum-of-products Boolean expressions for the outputs.
CD
AB
00
01
11
10
CD
AB
00
01
11
10
00
00
01
01
11
10
W A BC BD
AB
CD
00
11
10
X B D BC B C D
01
11
10
CD
00
01
11
00
01
11
10
10
Y C D CD
AB
00
01
11
10
Z D
We can reduce the input gate cost using multiple-level optimization as a second
optimization step.
o In this step, we consider the sharing sub expressions between the four
output expressions.
o Sharing expression:
L oEp
LmEnoEnpLmEn
%
%
%
%
%
$$$
LnoEnpEnopLn
En
$$$
LopE
Lp %
o The manipulation allows to reduce the gate input cost from 26 to 19.
Technology mapping:
The logic diagram is the following:
A B
B C D
X
Sharing
Component
Y
Z
Logic Diagram for BCD-to-Excess-3 Converter
Formulation:
The truth table for BCD-to-seven segment decoder is the following:
BCD
A B
0 0
0 0
0 0
0 0
0 1
0 1
0 1
0 1
Input
C D
0 0
0 1
1 0
1 1
0 0
0 1
1 0
1 1
Seven-Segment Outputs
a b c d e f g
1 1 1 1 1 1 0
0 1 1 0 0 0 0
1 1 0 1 1 0 1
1 1 1 1 0 0 1
0 1 1 0 0 1 1
1 0 1 1 0 1 1
1 0 1 1 1 1 1
1 1 1 0
a
f
c
d
1 0 0 0 1
1 0 0 1 1
All other inputs0
1
1
0
1
1
0
1
1
0
0
1
0
0
0
1
1
0
0
1
1
0
We must draw for each output Karnaugh map and minimize all maps.
The simplified outputs:
%
%
%%%
%%
LmoEmnpEnopEmno
Two-level implementation:
%
%
%
%
%
%
%
%
27AND gates and 7 OR gates
LmnEmopEmopEmno
%
%
%%%
%%
Multiple-level implementation:
LmnEmpEnopEmno
14AND gates
% % %%
%%%
%% % %
LmopEmnoEnopEmnoEmnop
% % %%%
LmopEnop
%%A
%%%and so on
no
Using sharing terms:
, nop
%
%
%
%
%
%
%
%
%
LmnoEmopEmnpEmno
% % %%
% %
LmopEmnoEmnoE
mno%%
Binary input
Gray outputs
B3 B2 B1 B0 G3 G2 G1 G0
0 0 0 0 0
0
0
0
0 0 0 1 0
0
0
1
0 0 1 0 0
0
1
1
0 0 1 1 0
0
1
0
0 1 0 0 0
1
1
0
0 1 0 1 0
1
1
1
0 1 1 0 0
1
0
1
0 1 1 1 0
1
0
0
1 0 0 0 1
1
0
0
1 0 0 1 1
1
0
10
11
12
13
14
15
1
1
1
1
1
1
0
0
1
1
1
1
1
1
0
0
1
1
0
1
0
1
0
1
1
1
1
1
1
1
1
1
0
0
0
0
1
1
1
1
0
0
1
1
0
0
1
1
0
2. K-maps:
B1 B 0
00
01
11
10
00
11
00
01
11
10
G0 B0 B1 B0 B1 B0 B1
01
10
B3B2
B3B2
B1 B 0
00
01
11
10
G1 B1 B2 B1 B2 B1 B2
B3B2
B1 B 0
00
01
11
10
00
01
11
10
G2 B2 B3 B2 B3 B2 B3
B3B2
B1 B 0
00
01
11
10
00
01
11
10
G3 B3
3. Logic Diagram:
B0
G0
B1
G1
B2
G2
B3
G3
Exclusive-OR-operator
(XOR Gate
).
%
%
rLEL
Truth Table
Inputs Output
rL
0
0
0
0
1
1
1
0
1
1
1
0
Y
F X Y
Exclusive-NOR-operator
(XNOR Gate
).
%% L $$$$$$$
rL E
Truth Table
Inputs Output
rL $$$$$$$
0
0
1
0
1
0
1
0
0
1
1
1
Y
F X Y