Professional Documents
Culture Documents
Adder Subtractor
Adder Subtractor
Arithmetic:
● Adders
● Subtractors
● Multipliers
● Comparators
2. Data Handling:
● Multiplexers
● DeMultiplexers
● Encoders and Decoders
3. Code Converters:
● BCD to Excess-3 code and vice versa
● BCD to Gray code and vice versa
●Seven Segment
Design of Half Adders and Full Adders:
● A combinational logic circuit that performs the addition of two
single bits is called Half Adder.
● A combinational logic circuit that performs the addition of three
single bits is called Full Adder.
1. Half Adder:
0+0=0
0+1=1
1+0=1
1+1=10
Since 1+1=10, the result must be two bit output. So, Above can be rewritten
as,
0+0=00
0+1=01
1+0=01
1+1=10
The result of 1+1 is 10, where ‘1’ is carry-output (Cout) and ‘0’ is Sum-output
(Normal Output).
Truth Table of Half Adder:
Next Step is to draw the Logic Diagram. To draw Logic Diagram, We need
Boolean Expression, which can be obtained using K-map (karnaugh map).
Since there are two output variables ‘S’ and ‘C’, we need to define K-map for
each output variable.
K-map for output variable Sum ‘S’:
With this logic circuit, two bits can be added together, taking a carry from the
next lower order of magnitude, and sending a carry to the next higher order
of magnitude.
Implementation of Full Adder using NAND gates:
In the logic expression above, one would recognize the logic expressions of a
1-bit half-adder. A 1-bit full adder can be accomplished by cascading two
1-bit half adders.
1. Simplicity: The half adder and half subtractor circuits are simple
and easy to design, implement, and debug compared to other binary
arithmetic circuits.
2. Building blocks: The half adder and half subtractor are basic
building blocks that can be used to construct more complex
arithmetic circuits, such as full adders and subtractors, multiple-bit
adders and subtractors, and carry look-ahead adders.
3. Low cost: The half adder and half subtractor circuits use only a few
gates, which reduces the cost and power consumption compared to
more complex circuits.
4. Easy integration: The half adder and half subtractor can be easily
integrated with other digital circuits and systems.
1. Limited functionality: The half adder and half subtractor can only
perform binary addition and subtraction of two single-bit numbers,
respectively, and are not suitable for more complex arithmetic
operations.
2. Inefficient for multi-bit numbers: For multi-bit numbers, multiple
half adders or half subtractors need to be cascaded, which increases
the complexity and decreases the efficiency of the circuit.
3. High propagation delay: The propagation delay of the half adder
and half subtractor is higher compared to other arithmetic circuits,
which can affect the overall performance of the system.
Application of Half Subtractor in Digital Logic:
1.Calculators: Most mini-computers utilize advanced rationale circuits to
perform numerical tasks. A Half Subtractor can be utilized in a number
cruncher to deduct two parallel digits from one another.
2.Alarm Frameworks: Many caution frameworks utilize computerized
rationale circuits to identify and answer interlopers. A Half Subtractor can be
utilized in these frameworks to look at the upsides of two parallel pieces and
trigger a caution in the event that they are unique.
3.Automotive Frameworks: Numerous advanced vehicles utilize
computerized rationale circuits to control different capabilities, like the motor
administration framework, stopping mechanism, and theater setup. A Half
Subtractor can be utilized in these frameworks to perform computations and
examinations.
4.Security Frameworks: Advanced rationale circuits are usually utilized in
security frameworks to identify and answer dangers. A Half Subtractor can
be utilized in these frameworks to look at two double qualities and trigger a
caution in the event that they are unique.
5.Computer Frameworks: Advanced rationale circuits are utilized broadly in
PC frameworks to perform estimations and examinations. A Half Subtractor
can be utilized in a PC framework to deduct two paired values from one
another.
“borrow”.
OR
Bout = A’B’Bin + A’BBin’ + A’BBin + ABBin
= Bin(AB + A’B’) + A’B(Bin + Bin’)
= Bin( A XNOR B) + A’B
= Bin (A XOR B)’ + A’B
Logic Circuit for Full Subtractor –
Applications:
1. For performing arithmetic calculations in electronic calculators and
other digital devices.
2. In Timers and Program Counters.
3. Useful in Digital Signal Processing.
Parallel Adder –
A single full adder performs the addition of two one bit numbers and an
input carry. But a Parallel Adder is a digital circuit capable of finding the
arithmetic sum of two binary numbers that is greater than one bit in length
by operating on corresponding pairs of bits in parallel. It consists of full
adders connected in a chain where the output carry from each full adder is
connected to the carry input of the next higher order full adder in the chain. A
n bit parallel adder requires n full adders to perform the operation. So for
the two-bit number, two adders are needed while for four bit number, four
adders are needed and so on. Parallel adders normally incorporate carry
lookahead logic to ensure that carry propagation between subsequent stages
of addition does not limit addition speed.
1. As shown in the figure, firstly the full adder FA1 adds A1 and B1
along with the carry C1 to generate the sum S1 (the first bit of the
output sum) and the carry C2 which is connected to the next adder
in chain.
2. Next, the full adder FA2 uses this carry bit C2 to add with the input
bits A2 and B2 to generate the sum S2(the second bit of the output
sum) and the carry C3 which is again further connected to the next
adder in chain and so on.
3. The process continues till the last full adder FAn uses the carry bit
Cn to add with its input An and Bn to generate the last bit of the
output along last carry bit Cout.
Parallel Subtractor –
A Parallel Subtractor is a digital circuit capable of finding the arithmetic
difference of two binary numbers that is greater than one bit in length by
operating on corresponding pairs of bits in parallel. The parallel subtractor
can be designed in several ways including combination of half and full
subtractors, all full subtractors or all full adders with subtrahend
complement input.