Professional Documents
Culture Documents
MSI Design Examples: Designing A Circuit That Adds Three 4-Bit Numbers
MSI Design Examples: Designing A Circuit That Adds Three 4-Bit Numbers
In this
are:
lesson, you will see some design examples using MSI devices. These examples
Designing a circuit that adds three 4-bit numbers.
Design of a 4-to-16 Decoder using five 2-to-4 Decoders with enable inputs.
Design of a circuit that takes 2 unsigned 4-bit numbers and outputs the larger of
both.
Designing a 16-bit adder using four 4-bit adders.
Designing a 3-bit excess-3 code converter using a Decoder and an Encoder.
where F3F2F1F0 represents the final sum of the three inputs X, Y, and Z. Again, in this
step, the input carry to this second adder will also be zero.
Notice that in Step 1, a carry C4 was generated in bit position 4, while in Step 2, another
carry D4 was generated also in bit position 4. These two carries must be added together
to generate the final Sum bits of positions 4 and 5 (F4 and F5).
Adding C4 and D4 requires a half adder. Thus, the output from this circuit will be six bits,
namely F5 F4 F3F2F1F0 (See Figure 1)
Given two 4-bit unsigned numbers A and B, design a circuit which outputs
the larger of the 2 numbers.
Here we will use Quad 2-1 Mux, and a 4-bit magnitude comparator. Both of these
devices have been discussed earlier. The circuit is given in the figure
Since we are to select one of the two 4-bit numbers A (A3A2A1A0) and B (B3B2B1B0), it
is obvious that we will need a quad 2-1 Mux.
The inputs to this Mux are the two 4-bit numbers A and B.
The select input of the Mux must be a signal which indicates the relative magnitude of
the two numbers A and B. This signal may be True if A<B or if A>B.
Such signal is easily obtained from a 4-bit magnitude comparator.
Each adder takes four bits of each input (X and Y) and generates a 4-bit sum and a carry
that is fed into the next 4-bit adder as shown in Figure 5.
output is connected to input 6 of encoder. Thus the encoder will generate the
corresponding bit combination, which is 0110.