Module1
Module1
rofe
, P
iram
a
m iJ
a lax
G eet
h at
r.B
D
s sor
rofe
, P
iram
a
iJ
la xm
ta
t GDigital Design & Computer Organization
e e
ha
Dr
. B
(BCS302) (3:0:2)
Text Books:
1. Digital Logic and Computer Design, M. Morris
Mano, Pearson Edu. 2016
2. Computer Organization: C Hamacher, Z Vranesic,
S Zaky:, Tata McGraw Hill, 5th Edition, 2011.
s sor
rofe
, P
iram
a
m iJ
a lax
G eet
h at
r.B
D
Module-1
Combinational Circuits
SUM-of-PRODUCTS
es sor METHOD
rof
• The four possibleP
a m , ways to AND two input signals that are in
air
complemented
m i J and uncomplemented form.
lax
• These
eet outputs are called fundamental products.
a
G
h at
r.B
D
Y =A B C+ A B C+ AB C + ABC
0 1 3 2
4 5 7 6
sor
EXAMPLE 3-1:ProDraw fes
k-map for the following:
m ,
a
• F = x’yzi Ja+ir x’yz’ + xy’z’ + xy’z
la xm
Ans Ge
etareference =(3,2,4,5)
t
ha
D r. •
B
0 1 3 2
1 1
4 5 7 6
1 1
• Four-Variable Maps
s sor
e of
P r
,
iram
a
m iJ
a lax
G eet
h at
r.B
D
PAIRS, QUADS, AND
es soOCTETS
r
rof
, P
• Pairs a iram y= ABC
m iJ
a lax
G eet
h at
r.B
D
s sor
rofe
• Whenever P
a m , we see a pair of horizontally or
air
vertically x mi
J adjacent 1s, we can eliminate the
a la
variable
t G e et
that appears in both complemented
ha
Dr
. B and uncomplemented form.
Y= A C D Y= A C D
Y= A B’ C’
Y= AC’D’ +A’BD
The Quad s sor
rofe
P
,
a m
• A quad Jair is a group of four 1s that are
x mi
la
horizontally
e eta or vertically adjacent.
a tG
h
D r. B
• The 1s may be end-to-end or in the form of a
square.
• When you see a quad, always encircle it
because it leads to a simpler product.
• A quad eliminates two variables and their
complements.
s sor
rofe
, P
iram
a
m iJ
a lax
G eet
h at
r.B
D
Y= AB Y=AC
sor
The Octet P rofe
s
m ,
a
• The octet Jair is a group of eight 1 s
x mi
la
• An e e octet like this eliminates three variables
ta
a tG
. B and their complements.
h
D r
Y= A
KARNAUGH SIMPLFICATIONS
ofe
s sor
P r
m ,
ira
• As youmiknow,
Ja a pair eliminates one variable and its
lax
complement,
e eta a quad eliminates two variables and
tG
h their complements, and an octet eliminates three
a
r.B
D
variables and their complements.
Y= A + A’BC’D
Y= A + BC’D It is valid to encircle the 1’s as shown in
above figure but then the isolated 1
OPTIMAL results in a more complicated
equation:
Rolling the Map
ofe
s sor
P r
m ,
a ira
m iJ
a lax
G eet
h at
r.B
D
OPTIMAL
s sor
rofe
, P
iram
a
m iJ
a lax
G eet
h at
r.B
D
OPTIMAL
s sor
rofe
, P
iram
a
m iJ
ax
• Ans: e eta l
a tG
h
D r. B
s sor
• Simplify F=, rofe
P
iram
a
m iJ
a lax
G eet
h at
r.B
D
s sor
rofe
, P
iram
a
m iJ
a lax
eet
a tG
h
.B
D Ans:
r yz +xz’
s sor
rofe
, P
iram
a
m iJ
a lax
G eet
h at
r.B
D
sor
• EXAMPLE 3-5: P rofe Simplify the Boolean function;
s
,
am
F(w, x,y, i Ja z) = ∑(0, 1, 2, 4, 5, 6, 8, 9, 12, 13, 14)
ir
la xm
eta
t Ge
Bha
D r.
s sor
rofe
P ,
m
• EXAMPLE Jair 3-4: Simplify the Boolean
a function:
x mi
e etaF(x,y,
la z) = ∑(0, 2, 4, 5, 6)
a tG
r. B Ans:
h
D
Eliminating Redundant
s sor Groups
o fe
P r
m ,
• After you Ja irahave finished encircling groups, eliminate
m i
anytaredundant
lax group.
e e
tG
• haThis is a group whose 1s are already used by other
. B
Dr groups.
Eliminating an unnecessary s sor group
rofe
• Ans: Y= A’BC’ m , P +A’CD+AC’D +ABC
a
air
• xm
i J
ta la
G ee
h at
r.B
D
Conclusion s sor
rofe
P
Here is a summary a m , of the Karnaugh-map method for simplifying
a ir
Boolean equations:
mi
J
la x
ta
ee
1. aEnter
tG a 1 on the Karnaugh map for each fundamental product
r Bh produces a I output in the truth table. Enter 0s elsewhere.
. that
D
Y=AB+AC+AD+BCD
No redundant group
o r
Simplify the following ofe
s s Boolean function using K-map.
P r
,
iram
i Ja
la xm
eta
t Ge
a
. Bh
Dr
DON'T-CARE CONDITIONS
es sor
rof
P ,
m
• In someJairdigital systems, certain input conditions
a
mi
never ta la occur during normal operation; therefore, the
x
e e
h acorresponding
tG output never appears.
D r. B
• Since the output never appears, it is indicated by an
X in the truth table.
Boolean equation is
Y = AD
s sor
e
ofideas
Remember these , P r about don't-care conditions:
iram
i Ja
la xm
1. Given
e eta the truth table, draw a Karnaugh map with
tG
h 0s, 1s, and don't-cares.
a
D r. B
Y=A’B’C’D’
• Give the simplest s sor logic circuit for following logic
rofe
equation where am
, P d represents don't-care condition for
ir
following i Ja locations.
la xm
a
Ge
et F(A, B, C, D) = m(7) + d(10, 11, 12, 13, 14, 15)
t
Bha
.
Dr
Boolean equation is:
Y=BCD
s sor
rofe
P
Simplify the air
a m , following Boolean function using
J
ala
x mi K-map
e et
t G
Bha
.
Dr
Y=f(a,b,c,d)=m(6,7,9,10,13)+d(1,4,5,11,15)
Combinational Logic
or
rofe
s s Adders
• Digital computers
P
m , perform a variety of information-
ira
processing i J tasks.
a
a xm
• This et l
a simple addition consists of four possible elementary
e
Goperations,
h a t namely, 0 + 0 = 0, 0 + 1 = 1, 1 + 0 = 1, -Gives
r.B sum and 1 + 1 = 10- This gives carry and sum.
D
• A combinational circuit that performs the addition of two
bits is called a half-adder.
• One that performs the addition of three bits (two significant
bits and a previous carry) is a full-adder.
s r
oHalf-Adder
s
rofe
• This circuitm, needs two binary inputs and two binary
P
ira
outputs.
iJ
a
m
a lax
G eet
h at
r.B
D
0 1 0 1 (5)
- 1 0 1 0 (10)
1
-------------------
1 1 0 1 1 (-5 in 2’s complement)
borrow
Subtractors
sor
Full-Subtractor rofes
, P
• The three iram inputs, x, y, and z, denote the minuend,
i Ja
subtrahend,
a xm and previous borrow, respectively. The two
ta l
G
outputs,
e e D and B, represent the difference and output
h at borrow, respectively. The truth table for the circuit is as
r.B
D follows:
Subtractors
sor
Full-Subtractor rofes
P ,
iram
a
m iJ
a lax
G eet
h at
r.B
D
Ai Bi Ci Ci+1 Si
0
0 1
1 0
1 1 1
0
Binary
so r Parallel Adder
• Figure 5-1 showsrofethe s
interconnection of four full-adder (FA)
P
, a 4-bit binary parallel adder.
circuits to provide a m
Jair
• The augend x mi bits of A and the addend bits of B are designated by
ta la
subscript
G e e numbers from right to left, with subscript 1 denoting the
h at
low-order bit.
r.B
D
• The carries are connected in a chain through the full-adders. The
input carry to the adder is C1 and the output carry is C5.
• The S outputs generate the required sum bits.
• When the 4-bit full-adder circuit is enclosed within an IC
package, it has four terminals for the augend bits, four terminals
for the addend bits, four terminals for the sum bits, and two
terminals for the input and output carries.
Binary
or
Parallel Adder
es s
• BCD to Excess-3 code ro converter using logic gates
f
P
• Binary CodedraDecimal m, (BCD) Code - Digital numbers are represented,
i
i Ja
stored and transmitted as group of binary bits. This group is also called as
m
lax decimals. Weighted binary codes are those binary codes which
binarytacode
e e
obey
t G the positional weight principle. Each position of the number represents a
h a
r. B specific weight. Several systems of the codes are used to express the decimal
D digits 0 through 9. In these codes each decimal digit is represented by a group
of four bits.
• In this code each decimal digit is represented by a 4-bit binary number. BCD is
a way to express each of the decimal digits with a binary code. In the BCD,
with four bits we can represent sixteen numbers (0000 to 1111). But in BCD
code only first ten of these are used (0000 to 1001). The remaining six code
combinations i.e. 1010 to 1111 are invalid in BCD.
Binary
so r Parallel Adder
• BCD to Excess-3rcode es
o f converter using logic gates
, P
• Excess-3 Code m
a ir - The Excess-3 code is also called as XS-3 code.
a
i J
It is non-weighted
a xm code used to express decimal numbers. The
ta l
Excess-3
G e e code words are derived from the 8421 BCD code words
h at
adding (0011)2 or (3)10 to each code word in 8421. The excess-3
r.B
D codes are obtained as follows -
Binary
so r Parallel Adder
• BCD to Excess-3 code es
P ro converter using logic gates
f
m ,
• BCD to Excess-3 ira Code Converter - Excess-3 binary code is an
Ja
unweighted i
la xm self-complementary BCD code. Self-Complementary
property
eta means that the 1’s complement of an excess-3 number is
t Ge
a excess-3 code of the 9’s complement of the corresponding
hthe
. B
Dr decimal number. This property is useful since a decimal number
can be nines’ complemented (for subtraction) as easily as a binary
number can be ones’ complemented; just by inverting all bits.
• BCD digit can be converted to it’s corresponding Excess-3 code
by simply adding 3 to it.
Binary
so r Parallel Adder
fes
P ro
m ,
a ira
m iJ
a lax
G eet
h at
r.B
D
Binary
so r Parallel Adder
fes
• BCD to Excess-3 ro
,P
iram
a
m iJ
a lax
G eet
h at
r.B
D
Binary
so r Parallel Adder
• The application of thisofMSI es function to the design of a combinational circuit is
r
Pfollowing
demonstrated in the m , example.
a
ir a 4-bit full-adders is the TTL type 74283 IC.
• *An example Jaof
x mi
ta la
e e
a tG
h
D r. B
Binary
so r Parallel Adder
• The application of thisofMSI es function to the design of a combinational circuit is
r
Pfollowing
demonstrated in the m , example.
a
Jair
x mi
ta la
e e A4A3A2A1 0101=(5) BCD input
a tG B4B3B2B 1 + 0011= add factor
Bh
D r. Ex-3 code= 1000
Ci=0
Binary
so r Parallel Adder
fes
• BCD to Excess-3 ro
,P
iram
a
m iJ
a lax
G eet
h at
r.B
D
B3B2B1B 0 0101=(5)
s sor add factor + 0011= (3)
e
• Lab experiment rof
, P - BCD to Excess-3 Ex-3 code= 1000
iram
a
m iJ
a lax
G eet
h at
r.B
D
s sor
ro fe
• Lab experiment- , P BCD to Excess-3
iram
i Ja
la xm
eta
t Ge
Bha
D r.
B3B2B1B 0 0101=(5)
s sor add factor + 0011= (3)
e
• Lab experiment rof
, P -BCD to Excess-3 Ex-3 code= 1000
iram
a
m iJ
a lax
G eet
h at
r.B
D
Carry
so r Propagation
fes
• ro
As in any combinational P circuit, the signal must propagate through the
m ,
gates beforeJathe ira correct output sum is available in the output terminals.
i
mpropagation
• The total la x time is equal to the propagation delay of a typical
a
ettimes the number of gate levels in the circuit. The longest
gate e
a tG
h
r. B propagation delay time in a parallel adder is the time it takes the
D carry to propagate through the full-adders
• Since each bit of the sum output depends on the value of the input carry,
the value of Si in any given stage in the adder will be in its steady-state
final value only after the input carry to that stage has been propagated.
• Consider output S4 in Fig. 5-1. Inputs A4 and B4 reach a steady
value as soon as input signals are applied to the adder. But input
carry C4 does not settle to its final steady-state value until C3 is
available in its steady-state value.
• Similarly C3 has to wait for C2, and so on down to C1. Thus only
after the carry propagates through all stages will the last output S4
and carry C5 settle to their final steady-state value.
Carry
r Propagation
s so
rofe
, P
iram
a
m iJ
a lax
G eet
h at
r.B
D
• The number of gate levels for the carry propagation can be found
from the circuit of the full-adder.
Carry
or
Propagation
es s
• The signals at Pi and ro Gi settle to their steady-state value after the
f
, P
propagation ithrough
ra m their respective gates.
i Ja
• These two xm signals are common to all full-adders and depend only
la
a input augend and addend bits.
onGthe
e et
a t
•r. BhThe signal from the input carry, Ci, to the output carry, Ci+1,
D
propagates through an AND gate and an OR gate, which
constitute two gate levels.
• If there are four full-adders in the parallel adder, the output
carry C5 would have 2 × 4 = 8 gate levels from C1 to C5.
• The total propagation time in the adder would be the propagation
time in one half-adder plus eight gate levels.
• For an n-bit parallel adder, there are 2n gate levels for the carry to
propagate through.
Carry
r Propagation
s so
• There are several techniques
ofe for reducing the carry propagation time in a
r
P widely used technique employs the principle of look-
parallel adder. Them,most
a
ahead carry. Jair
x mi
ta la
e e
a tG
h
D r. B
Carry
r Propagation
s so
• write the Boolean function ofe for the carry output of each stage and substitute for
r
P the previous equations:
each Ci its value from ,
iram
i Ja Note: C1 is initial carry
m
a lax
e et
a tG
h
D r. B
• Note -that C4 does not have to wait for C3 and C2 to propagate; in fact,
C4 is propagated at the same time as C2 and C3.
• A typical look-ahead carry generator is the IC type 74182. It is implemented
with AND-OR-INVERT gates. It also has two outputs, G and P, to generate C5
= G + PC1.
Carry
r Propagation
s so
rofe
, P
iram
a
m iJ
a lax
G eet
h at
r.B
D
Carry
r Propagation
s so
e
The construction of a 4-bitPparallel rof adder
,
with a look-ahead carry iramscheme is shown
iin Fig. 5-5. i Ja
la xm
eta
t Ge
Bha
.
Dr
Carry r Propagation
s so
• The output of the rfirsto fe exclusive-ORgate generate the Pi variable,
P
and the ANDiragalem, generates the Gi variable.
i Ja
• All thexP’s m and G’s are generated in two gate levels. The carries
la
eta
areGepropagated through the look-ahead carry generator (similar to
h at in Fig. 5-4) and applied as inputs to the second exclusive-OR
that
r.B
D gate. After the P and G signals settle into their steady-state values,
all output carries are generated after a delay of two levels of
gates.
• Thus, outputs S2 through S4 have equal propagation delay times.
(as c2 ,c3 and c4 not depends on each other, only on c1)