ECE 211 Digital Electronics Unit 2
ECE 211 Digital Electronics Unit 2
UNIT - II
Combinational Circuits
𝑆=𝑥 𝑦 + 𝑥 𝑦
𝐶=𝑥𝑦
03/11/2023 Fall 2020 - ECE 211 Digital Electronics 6
Full-Adder
Truth Table
x y z Carry Sum
0 0 0 0 0
0 0 1 0 1
0 1 0 0 1
0 1 1 1 0 𝐶 =𝑥𝑦 +𝑥𝑧+𝑦𝑧
1 0 0 0 1
1 0 1 1 0
1 1 0 1 0
1 1 1 1 1
𝑆=𝑥 ⊕ 𝑦 ⊕ 𝑧
03/11/2023
𝐶 =𝑧 ( 𝑥 ⊕ 𝑦 )+ 𝑥𝑦
Fall 2020 - ECE 211 Digital Electronics 9
Subtractor
1.A half subtractor is a combinational circuit that subtracts two
binary bits and produces the difference.
2.The half subtractor has two outputs. One output generates
difference and second output borrow.
3.A full subtractor is a combinational circuit that performs a
subtraction between two bits and one bit may be borrowed
by a lower significant stage.
4.A full subtractor has three inputs and two outputs.
x y B D
0 0 0 0
0 1 1 1
1 0 0 1
1 1 0 0
The simplified Boolean expressions for sum and carry expressions are
D =𝑥 𝑦 + 𝑥 𝑦
B=𝑥 𝑦
03/11/2023 Fall 2020 - ECE 211 Digital Electronics 11
Full-Subtractor
Truth Table
x y z B D
0 0 0 0 0
0 0 1 1 1
0 1 0 1 1
0 1 1 1 0 B xy xz yz
1 0 0 0 1
1 0 1 0 0
1 1 0 0 0
1 1 1 1 1
𝑃 𝑖= 𝐴𝑖 ⊕ 𝐵𝑖
𝐺𝑖= 𝐴 𝑖 𝐵𝑖
𝑆 𝑖= 𝑃 𝑖 ⊕ 𝐶 𝑖
𝐶 𝑖 +1= 𝐺𝑖 + 𝑃 𝑖 𝐶 𝑖
Full Adder Circuit
𝑃𝑖 is Carry Propagate
𝐺𝑖 is Carry Generate
03/11/2023 Fall 2020 - ECE 211 Digital Electronics 16
Carry Look Ahead Generator
𝐶 2=𝐺1 + 𝑃 1 𝐶 1
𝐶 3 =𝐺2 + 𝑃 2 𝐶 2=𝐺2 + 𝑃 2 𝐺1 + 𝑃 2 𝑃1 𝐶 1
03/11/2023𝐶 4 =𝐺 3 + 𝑃 3 𝐶 3 =𝐺 3 +Fall𝑃 3 -𝐺
2020 𝑃 Electronics
2+Digital
ECE 211 3 𝑃 2 𝐺1 + 𝑃 3 𝑃 2 𝑃 1 𝐶 1 17
4-bit Full Adders with Carry Look-Ahead
6
1
2 C3 = G2 + P2C2 = G2 + P2G1 + P2P1G0 + P2P1P0C0
5
4
2
3 3
C2 = G1 + P1C1 = G1 + P1G0 + P1P0C0
2
3
4
1
C1 = G0 + P0C0
4
C0
03/11/2023 Fall 2020 - ECE 211 Digital Electronics 19
BCD Adder
1. If we apply two BCD
digits to a 4-bit binary
adder, Then adder will
form the sum in binary
and produce a result that
range from 0 to 19.
2. These numbers are
labelled by symbols
K, , 𝑍 1𝑍 𝑍, 8.
, 2
2. The addition of binary 6(0110) to the binary sum converts it to the correct BCD
representation and produces an output carry.
3. The condition for a correction and output carry can be expressed
by the Boolean function
4. When C=1, it is necessary to add 0110 to the binary sum and pass a output
carry for the next stage.
5. A BCD adder is a circuit that adds two BCD digits in parallel and produces a
sum digit in BCD.
6. A decimal parallel adder adds n decimal digits needs n BCD adder stages. The
output carry from one stage must be connected to the input carry of the next
higher order stage
03/11/2023 Fall 2020 - ECE 211 Digital Electronics 21
BCD Adder
Logical Expressions
𝒛= 𝑫𝟏 + 𝑫 𝟑 + 𝑫 𝟓+ 𝑫𝟕
𝒚 = 𝑫 𝟐 + 𝑫𝟑 + 𝑫 𝟔 + 𝑫 𝟕
𝒙 = 𝑫 𝟒 + 𝑫𝟓 + 𝑫 𝟔 + 𝑫 𝟕
Logical Expressions
𝑥= 𝐷 2+ 𝐷3
′
𝑦= 𝐷 3 + 𝐷1 𝐷 2
𝑉 = 𝐷 0 + 𝐷1 + 𝐷 2 + 𝐷3
Truth Table
Logic Expressions
Block Diagram
Now adding 0011 to the groups which produces a carry and subtracting
zero from the groups which did not produced carry we get the result as
1100 0110 1000 is the result of the addition in excess 3 code and the BCD
answer is 1001 0011 0101.