3-to-8 Decoder and Adder-Subtractor Design
3-to-8 Decoder and Adder-Subtractor Design
WEEK 5
For this, there are three digital switches that generate the equivalent combinations from 0 to
7 (in decimal):
000 0
001 1
010 2
011 3
100 4
101 5
110 6
111 7
Using MSI components, identify which type of decoder can fulfill the function of receiving.
these 3 input bits and activate the equivalent output in decimal.
Response:
to perform the digital decoding of the three input bits and activate the equivalent output in decimal,
a 3 to 8 line decoder can be used.
A 3 to 8 line decoder is a type of integrated circuit that has three inputs (A, B, C)
corresponding to the three input bits, and eight outputs (Y0-Y7) that represent the decimal values
from 0 to 7.
Using MSI components, you can use the integrated circuit 74LS138, which is a 3 to 8 decoder.
8 lines. This integrated circuit has three active low inputs (A, B, C) and eight active high outputs.
(Y0-Y7).
Conecta los tres bits de entrada (A, B, C) a las tres entradas del decodificador.
Connect the eight outputs of the decoder (Y0-Y7) to the outputs that activate the components.
corresponding to radiocommunications.
The truth table for the 3 to 8 line decoder would be the following:
A B C Y0 Y1 Y2 Y3 Y4 Y5 Y6 Y7
0 0 0 1 0 0 0 0 0 0 0
0 0 1 0 1 0 0 0 0 0 0
0 1 0 0 0 1 0 0 0 0 0
0 1 1 0 0 0 1 0 0 0 0
1 0 0 0 0 0 0 1 0 0 0
1 0 1 0 0 0 0 0 1 0 0
1 1 0 0 0 0 0 0 0 1 0
1 1 1 0 0 0 0 0 0 0 1
In this way, the 3 to 8 line decoder (like the 74LS138) is the appropriate MSI component for
fulfill the function of receiving the three input bits and activating the equivalent output in decimal.
The design procedure for the circuit using the 74LS138 decoder would be as follows:
Define the requirements: Understand the specific requirements of the circuit, such as the number of inputs.
and outputs, the input combinations and the corresponding outputs that are desired to be activated.
Determine the decoder type: Evaluate the number of required inputs and outputs to select the
appropriate type of decoder. In this case, the 74LS138 decoder, which is a 3 to 8 decoder
lines, it is appropriate, since it has three inputs and eight outputs.
Assign the input and output combinations: Define a truth table that shows all the
input combinations and the corresponding outputs. This will help you determine how they should be
connect the inputs and outputs of the decoder.
Connect the three inputs A0, A1, and A2 of the decoder to the three input bits of your circuit.
Connect the active enable input low ((1,(2A,(2B) of the decoder according to your needs
of enabling/disabling.
Connect the outputs Y0-Y7 of the decoder to the outputs of the circuit or to the corresponding components.
according to your requirements.
Check the connections: Make sure that all connections are made correctly according to the table.
Really, and the specifications of the decoder 74LS138. Check the datasheet of the integrated circuit.
to obtain accurate information about the pins and connections.
Verify the functionality: Check the operation of the circuit through simulations or tests.
practices. Make sure that the outputs of the decoder are activated correctly according to the
input combinations.
Another functionality that the company requires is for you to research and propose a design for a
adder-subtractor circuit, where you use the integrated circuit 74LS83 or 74LS283, in addition, you use a display.
7 segments and the 47LS47 decoder. The logic of the subtractor should incorporate them at your discretion.
considering that subtraction is equivalent to an addition of a binary number and the complement of the number
negative, this is in order to recognize the mode of operation of the selected integrated circuits.
Response:
To design an adder-subtractor circuit using the integrated circuit 74LS83 or 74LS283, along with
using the 7-segment display and the 74LS47 decoder, we can follow these steps:
Use the integrated circuit 74LS83 or 74LS283 as a 4-bit adder-subtractor. These integrated circuits
they have four data inputs (A0-A3 and B0-B3), a carry/borrow input (Cn), and four outputs of
sum/subtraction (S0-S3).
Connect the A0-A3 and B0-B3 inputs of the adder-subtractor to the corresponding input bits for the
addition or subtraction operations.
Connect the carry/borrow input (Cn) to a switch or a control input to select the
mode of operation (addition or subtraction).
Connect the sum/subtraction outputs (S0-S3) to the inputs of the 74LS47 decoder to convert the
binary result in a decimal representation to display it on the 7-segment display.
Use the 74LS47 decoder to convert the binary outputs of the adder/subtractor into signals.
suitable for the 7-segment display.
Connect the outputs S0-S3 of the adder/subtractor to the inputs A, B, C, and D of the 74LS47 decoder.
Connect the outputs of the 74LS47 decoder to the corresponding inputs of the 7-segment display.
to show the decimal result.
For subtraction, you can use the property that subtraction is equivalent to the addition of a
binary number and the complement of the negative number.
To subtract a binary number using the adder-subtractor, the two's complement of the
number to be subtracted and then perform the addition with the input number.
Make sure to correctly adjust the operating mode of the adder-subtractor circuit according to the
addition or subtraction operation selected by carry/borrow input (Cn).
Remember to check the datasheets of the integrated circuits 74LS83, 74LS283, 74LS47 and
the 7-segment display to know the specific connections and the characteristics of the pins of each
component.
It is important to note that the exact design of the adder-subtractor circuit will depend on the
specific requirements and the overall design of the system in which it will be integrated. Therefore, this
it is only a general approach and you may need to adapt it according to your needs and constraints
particulars.
BIBLIOGRAPHIC REFERENCES
IAAC Tares week 5 combinational logic