Digital Logic Design – Chapter 6
COMBINATIONAL CIRCUITS
Chapter 5 – COMBINATIONAL CIRCUITS
6-1. To check if a 4-bit binary value lies within the range 0110 to 1100, you may use one AND gate and a.
one 4-bit magnitude comparator b.
two 4-bit magnitude comparators c.
one 4 × 16 decoder with active-high outputs d.
one 8: 1 multiplier e.
one 4-to-2 encoder
6-2. If a 4-bit magnitude comparator has π΄ = 0111 and π΅ = 1001 on its inputs, the outputs are a.
“ π΄ > π΅ ” is 0, “ π΄ < π΅ ” is 0, “ π΄ = π΅ ” is 0 b.
“ π΄ > π΅ ” is 0, “ π΄ < π΅ ” is 0, “ π΄ = π΅ ” is 1 c.
“ π΄ > π΅ ” is 0, “ π΄ < π΅ ” is 1, “ π΄ = π΅ ” is 0 d.
“ π΄ > π΅ ” is 1, “ π΄ < π΅ ” is 0, “ π΄ = π΅ ” is 0 e.
“ π΄ > π΅ ” is 1, “ π΄ < π΅ ” is 1, “ π΄ = π΅ ” is 1
6-3. A 4-bit parallel adder can add a.
two 4-bit binary numbers b.
two 2-bit binary numbers c.
four 1-bit binary numbers d.
four bits at a time e.
four bits in sequence
6-4. The 74LS83A is a 4-bit adder IC chip. To expand this device to an 8-bit adder, you must a.
use four adders with no interconnections b.
use two adders and connect the sum outputs of one to the bit inputs for the other c.
use eight adders with no interconnections d.
use two adders with the carry output of one connected to the carry input of the other e.
All of the above
6-6. Design a logic circuit that converts a 4-bit signed number π΄π΅πΆπ· in a sign-and-magnitude format into the equivalent 4-bit number ππππ in two’s complement format. Express π, π, π and π in simplified
SOP and POS forms. Implement π and π using two-level AND-OR circuits, and π using a two-level
OR-AND circuit (use inverters to obtain primed literals).
6-9. Design a multiply-by-3 circuit that takes in a 2-bit unsigned binary number π
1
π
0
and produces a 4-bit binary number π
3
π
2
π
1
π
0
(three), then π
3
π
2
π
1
π
0
whose value is three times that of π
1
= 1001 (nine).]
π
0
. [For example, if π
1
π
0
= 11
Write out the truth table and the simplified SOP expressions for π
3
, π
2
, π
1
and π
0
.
You are to use a half-adder, an inverter, and an AND gate to implement π
3
, π
2
, π
1
and π
0
.
6-10. The 4221 code is a weighted code used to represent 10 decimal digits 0 to 9. Define a Boolean function π(π΄, π΅, πΆ, π·) that generate 1 if π΄π΅πΆπ· is a valid 4221 code, or 0 if it is an invalid 4221 code.
Using the fewest 4-bit magnitude comparators (whose block diagram is shown on the right), and at most one OR gate (no restriction on the fan-in), implement the function π .
1
Digital Logic Design – Chapter 6
COMBINATIONAL CIRCUITS
ANSWERS
6-1. (b)
6-2. (c)
6-3. (a)
6-4. (d)
6-6.
π΄ π΅ πΆ π· π π π π
0 0 0 0 0 0 0 0
0 0 0 1 0 0 0 1
0 0 1 0 0 0 1 0
0 0 1 1 0 0 1 1
0 1 0 0 0 1 0 0
0 1 0 1 0 1 0 1
0 1 1 0 0 1 1 0
0 1 1 1 0 1 1 1
π΄ π΅ πΆ π· π π π π
1 0 0 0 0 0 0 0
1 0 0 1 1 1 1 1
1 0 1 0 1 1 1 0
1 0 1 1 1 1 0 1
1 1 0 0 1 1 0 0
1 1 0 1 1 0 1 1
1 1 1 0 1 0 1 0
1 1 1 1 1 0 0 1
πΎ = π© + π¨ ⋅ πͺ + π¨ ⋅ π«
πΏ = π¨
′
⋅ π© + π© ⋅ πͺ
′
⋅ π«
′
+ π¨ ⋅ π©
′
π = π¨ ′ ⋅ πͺ + πͺ ⋅ π« ′ + π¨ ⋅ πͺ ′ ⋅ π«
⋅ πͺ + π¨ ⋅ π©
′
π = π«
; πΎ = (π¨ + π©) ⋅ (π© + πͺ + π«)
⋅ π« ; πΏ = (π¨ + π©) ⋅ (π© + πͺ + π«) ⋅ (π¨
′
; π = (π¨ + πͺ) ⋅ (πͺ + π«) ⋅ (π¨ ′ + πͺ ′
; π = π«
+ π©
′
+ πͺ
′
) ⋅ (π¨
′
+ π« ′ )
+ π©
′
+ π«
′
)
2
Digital Logic Design – Chapter 6
COMBINATIONAL CIRCUITS
6-9.
π
1
π
0
π
3
π
2
π
1
π
0
0 0 0 0 0 0
0 1 0 0 1 1
1 0 0 1 1 0
1 1 1 0 0 1
Half
π
Adder
πΆ
π π
π
π
π
π
3
2
1
0
= π
1
= π
= π
1
1
′
= π
0
6-10.
π¨ π© πͺ π« π½
0 0 0 0 1
0 0 0 1 1
0 0 1 0 1
0 0 1 1 1
0 1 0 0 0
0 1 0 1 0
0 1 1 0 1
0 1 1 1 0
1 0 0 0 0
1 0 0 1 1
1 0 1 0 0
1 0 1 1 0
1 1 0 0 1
1 1 0 1 1
1 1 1 0 1
1 1 1 1 1
π
3
π
2
π
0
π
3
π
1
π
0
π
3
π
2
π
1
π
0
π
3
π
2
π
1
π
0
π < π
π = π
π > π
π < π
π = π
π > π
⋅ π
⋅ π
0
0
′
⋅ π
0
+ π
1
⋅ π
0
′
3