DT MP
DT MP
Microproject
Topic: BCD Adder and Substractor
BCD ADDER
The BCD-Adder is used in the computers and the calculators that
perform arithmetic operation directly in the decimal number system. The
BCD-Adder accepts the binary-coded form of decimal numbers. The
Decimal-Adder requires a minimum of nine inputs and five outputs.
There is the following table used in designing of BCD-Adder.
In BCD concept the group of four of combination of high and low bits is
known as Nibble
From the above table, it is clear that if the produced sum is between 1 to
9, the Binary and the BCD code is the same. But for 10 to 19 decimal
numbers, both the codes are different. In the above table, the binary sum
combinations from 10 to 19 give invalid BCD. There are the following
points that help the circuit to identify the invalid BCD.
It is obvious from the table that a correction is needed when the ‘Binary
Sum’ has an output carry K=1.
The other six combinations from 10 to 15 need correction in which the
bit on the Z8 position is 1.
In the Binary sum of 8 and 9, the bit on the Z8 position is also 1. So, the
second step fails, and we need to modify it.
To distinguish these two numbers, we specify that the bit on the Z4 or
Z2 position also needs to be 1 with the bit of Z8
The condition for a correction and an output carry can be expressed by
the Boolean function:
C=K+Z8.Z4+Z8.Z2
Once the circuit found the invalid BCD, the circuit adds the binary
number of 6 into the invalid BCD code to make it valid.
• Full adder provides facility to add the carry from the previous stage.
• The power consumed by the full adder is relatively less as compared
to half adder.
• Full adder can be easily converted into a half subtractor just by
adding a NOT gate in the circuit.
• Full adder produces higher output that half adder.
• Full adder is one of the essential part of critic digital circuits like
multiplexers.
• Full adder performs operation at higher speed.
Truthtable
Applications of Half adder
1.Arithmetic circuits: Half adders are utilized in number-crunching
circuits to add double numbers. At the point when different half adders
are associated in a chain, they can add multi-bit double numbers.
4.Encoder and decoder circuits: Half adders are utilized in encoder and
decoder circuits for computerized correspondence frameworks.
5.Multiplexers and demultiplexers: Half adders are utilized in
multiplexers and demultiplexers to choose and course information.
Inputs:
A: minuend bit
B: subtrahend bit
Bin: borrow-in bit from the previous stage
Outputs:
Diff: difference bit
Bout: borrow-out bit for the next stage
Fig. Block Diagram of full Substractor
Truthtable:-
Applications of Full Subtractor:-
HALF SUBSTRACTOR
A half subtractor is a digital logic circuit that performs binary
subtraction of two single-bit binary numbers. It has two inputs, A
and B, and two outputs, DIFFERENCE and BORROW. The
DIFFERENCE output is the difference between the two input bits,
while the BORROW output indicates whether borrowing was
necessary during the subtraction.
3. Only gives a difference and a borrow output, not the sum and
carry.