Professional Documents
Culture Documents
Lesson 6 - 7
a) Block diagram of HA, b) truth table of HA, c) map representation and simplified Boolean function of
each output
Logic diagram of half adder (HA) circuit
• A full adder circuit is an
arithmetic circuit block that can
be used to add three bits to
produce a SUM (S) and a
CARRY (Co) output
• FA circuit overcomes the limitation
of the half-adder, which can be
used to add two bits only
• Can be constructed by cascading
tow half adder circuits (FA = HA +
HA) a) Block diagram of FA, b) truth table of FA, c)
map representation and simplified Boolean
function of each output
• An n-bit parallel adder circuit is an adder circuit that can add two n-bit
binary numbers and it can be constructed by connecting nth full adders in
series.
• Each full adder represents a bit position i (from 0 to n-1).
• Each carry output (Co) from a full adder at position i is connected to the carry in (Cin)
of the full adder at higher position i +1.
• The output of a full adder at position i is given by the general algorithm:
• Example 2-1. Design a 4-bit parallel adder circuit.
a) Block diagram of HS, b) truth table of HS, c) map representation and simplified Boolean function of
each output
Logic diagram of half-subtractor circuit
• A full-subtractor performs subtraction operation on two bits, a minuend and a
subtrahend, and also takes into consideration whether a ‘1’ has already been borrowed by
the previous adjacent lower minuend bit or not.
• Like in full-adder circuit, a full-subtractor circuit can also be constructed by cascading two half-
subtractor circuits (FS = HS + HS)
• A full-subtractor performs subtraction operation on two bits, a minuend and a
subtrahend, and also takes into consideration whether a ‘1’ has already been borrowed by
the previous adjacent lower minuend bit or not.
• Like in full-adder circuit, a full-subtractor circuit can also be constructed by cascading two half-
subtractor circuits (FS = HS + HS)
Logic diagram of 2-bit parallel adder or subtractor circuit using 7483, XOR, and AND gates.
• Example 2-7. Design 4-bit adder or subtractor circuit using 7483, 7486,
and 7408.
Logic diagram of 4-bit parallel adder or subtractor circuit using 7483, XOR, and AND gates.
Results in binary and the expected results in BCD using a
• A BCD adder is used to perform the four-bit binary adder to perform the addition of two BCD
digits.
addition of BCD numbers. A BCD
digit can have any of the ten
possible four-bit binary
representations, that is, 0000, 0001,
…, 1001, the equivalent of decimal
numbers 0, 1, …, 9 respectively
(Maini, A. (2007).
• Table presented lists the possible
results in binary and the expected
results in BCD when we use a four-
bit binary adder to perform the
addition of two BCD digits.
• Using map method, the resulting the Boolean expression, we can apply the necessary
correction as: Co = K + Z3Z2 + Z3Z1
a) Map representation and simplified Boolean expression of C b) logic diagram of BCD corrector circuit
• Important notes in the design of single digit BCD adder
circuit:
• 1st 7483 connections:
o A’s inputs (A4 to A1) should be connected to BCD inputs (a4 to a1) respectively,
o B’s inputs (B4 to B1) should be connected to BCD inputs (b4 to b1) respectively,
o CI/C0 (carry-in) must be connected to carry input (cIN),
o CO/C4 (K) must be part of the BCD corrector circuits, and
o Binary sums (S4 to S1) outputs are inputs of the second 7483 A’s (A4 to A1) inputs.
o In addition, the output of BCD corrector circuit is also used as carry input for the
succeeding digit of BCD adder circuits.
• Important notes in the design of single digit BCD adder circuit:
(cont.)
• 2nd 7483 connections:
o A’s (A4 to A1) should be connected to the sum outputs of the 1st 7483 (S4 to S1), since the sum
of binary adder and BCD adder are the same as long as the sum is not greater than 10012 (9).
o B4 and B1 must be connected to Ground (0), and B3 and B2 are connected to BCD corrector
circuit output (C). In that case, if binary sum is greater than 9, B3 and B2 are set to 1. Thus, B’s
inputs will have an input value of 01102 (6), which will be added to the current binary sum.
o C0/CI (carry-in) is also connected to Ground (0),
o CO/C4 (Carry-out) is no connection, and
o The sum outputs (S4 to S1) outputs are the BCD sums (S4 to S1) outputs connected to the
output devices like LEDs or inputs of seven-segment decoder ICs (7447 or 7448).
• The design of a
single digit BCD
adder circuit. This
circuit uses two
7483 IC, 2-inputs
AND gates, and
2-inputs OR
gates.
Circuit design of a single digit BCD adder circuit
• Example 2-8.
Design a two-digit
BCD adder circuit
Circuit
design of a
two-digit
BCD adder
circuit
• Example 2-8.
Design a two-digit
BCD adder circuit
Circuit
design of a
two-digit
BCD adder
circuit
PART 3
• The arithmetic logic unit (ALU) is a digital building block
capable of performing both arithmetic as well as logic
operations.
• Arithmetic logic units that can perform a variety of
arithmetic operations such as addition, subtraction, etc., and
logic functions such as ANDing, ORing, EX-ORing, etc., on
two four-bit numbers are usually available in IC form (Maini,
A., 2007).
• Multiplication of binary numbers is usually implemented in
microprocessors and microcomputers by using repeated
addition and shift operations. Below are components of
typical multiplier circuit:
• shift registers - for the multiplicand and multiplier bits.
• accumulator register - for storing partial products.
• binary parallel adder – for finding sum of two binary
• clock pulse generator - for time various operations
• Example 2-9. Design a 2-bit multiplier circuit using logic
gates.
• The output is in the form of three binary variables representing the conditions a = b (EQ), a > b (GT)
and a < b (LT), if a and b are the two numbers being compared
a) Truth table, b) map representation and simplified Boolean functions, and c) logic diagram of 1 bit magnitude comparator
• Comparing two n-bit numbers has 22n entries in the truth table
and become too unwieldy if the n greater that two or more bits.
For example, if n = 4, this requires 22(4) = 128 possible
combinations of inputs.
• A magnitude comparator is another combinational circuit that
possesses a certain amount of regularity (repeated processes).
If a digital function possesses an inherent well-defined regularity,
it can usually be designed by means of an algorithmic procedure
if one found to exist, rather than using k-map method or other
simplification methods (Maini, A., 2007).
• Boolean expression
representing these
conditions are
given by the
general algorithm
equations:
• Example 2-10. Design a 4-bit magnitude comparator circuit
Circuit design of 4-bit magnitude comparator circuit using 4063B (CMOS 4-bit
magnitude comparator IC)
Functional table of 7485/4063B IC
• In cascade arrangement, the A = B, A > B and A < B outputs of
a stage handling less significant bits are connected to
corresponding inputs of the next adjacent stage handling more
significant bits.
• The stage handling least significant bits must have a HIGH (1)
level at the A = B input.
• The other two cascading inputs (A > B and A < B) may be
connected to a LOW (0) level.
• Example 2-12. Design an 8-bit magnitude comparator circuit
using 7485 IC.
Circuit design of 8-bit magnitude comparator circuit using 7485 (TTL 4-bit
magnitude comparator IC)
• Table below lists Commonly used IC type numbers used for arithmetic operations
commonly used IC
type numbers used for
arithmetic operations.
Application relevant
information such as
pin connection
diagrams, truth tables,
or entire data sheet
can be found internet.