You are on page 1of 4

Universidad del norte. Coronado Jonas, Iván Torres, Juan Gonzales. Laboratorio # 2.

Lab #2, Design of logic circuits with multiplexers.


Coronado, Jonas, Torres, Iván y Gonzales, Juan.
{jonasc,, idtorres, jcguevara}@uninorte.edu.co
Universidad del Norte

 elements consists in a group of four traffic lights,


Abstract — This report explains the solution of a which will mark the passage or non-passage of
problem by applying the multiplexers in the logical vehicles in an intercept (Figure 1.2) following the
combinational circuits, we will see the application of following conditions:
the truth tables for this type of circuits. It also shows
the processes to be followed to carry out the 1. 1. The N-S track will have green light as long
assembly and physical use of the multiplexers, as as ALL the sensors in A and B are occupied.
well as the programming of an FPGA in VHDL. 2. The N-S track will have a green light as long
as ALL the sensors are empty.
3. The N-S track will have a green light as long
I. INTRODUCTION as the number of active sensors in A and B is
greater than or equal to the number of active
In this document we will see the different sensors in C and D.
guidelines and processes used in the design and
implementation of multiplexer circuits. Multiplexers
are combined circuits that have several data inputs
that represent a single output, which depends on the
values taken by the control inputs of the multiplexer.
The number of controls of a multiplexer will depend
on the total of inputs guided by the following
relation:

# 𝑖𝑛𝑝𝑢𝑡𝑠 = 2𝑛

Where n is the number of controls that govern the


multiplexer.

Figure 1.2 Interception, of the model.

II. PROCEDURE

A. Application of the circuit in Logisim.

Using the Logisim program, we can perform and


simulate the behavior of our logic circuit. For this
Figure 1.1 Multiplexer with 4 inputs. problem we make 2 equal circuits, one for the N - S
The circuit used to expose the use of these and another to the E - O, so we can make the

Lógica Digital Uninorte


Universidad del norte. Coronado Jonas, Iván Torres, Juan Gonzales. Laboratorio # 2. 2

comparison between the number of vehicles that are highs, one due to each of the mux, in figure 2.2 we
present in the tracks to determine the traffic light can see the truth table that models the previously
status based on the conditions posed. described.

Figure 2.2 Circuit truth table


Figure 2.1 Circuit that counts the number of
Later these entries of logical highs and lows will
vehicles per way.
enter a decoder which was built by logisim when
introducing the supposed truth table to obtain the
This circuit consists of four inputs of sensors, these
logical highs to light the corresponding number in the
will enter in an And, and two 8x1 multiplexers,
seven segment.
taking only one of the sensors as input data
configuring it along the eight pin inputs of the mux
and the other vehicular sensors will be the control
data.

This circuit takes the maximum possible value of


vehicles that can be on a track, so the And will only
pass a logical high if the four sensors are active,
when the And mark a logical high both mux will
mark logical lows, the rest of cases (When there are
1, 2 and 3 vehicles on the road) they will only be
modeled by the mux, for the case of a single vehicle
on the road only one vehicle is present, the only Figure 2.3 Truth table of the decoder.
logical high present will be due to the first mux,
likewise for 2 sensors the second mux will be the
only logical high present and the last possible case
that is for 3 vehicles which will have two logical

Lógica Digital Uninorte


Universidad del norte. Coronado Jonas, Iván Torres, Juan Gonzales. Laboratorio # 2. 3

B. Assembly of the circuit.

For the assembly process, the gates required in the


simulation including the BCD or 7-segment decoder
were required, it should be noted that the display was
connected by putting 220 ohm resistors beforehand
to avoid damage to it. In addition to the use of
pushbuttons as sensors. The circuit is energized with
5 volts.

Figure 2.4 Decoder circuit.


This same process is done with the two ways, then
they are passed through a comparator, on the side A
< B so that a stop is shown when the B side is the
number of active east-west sensors is greater and thus
turn on the respective LED's, in this case green for
said side and red for north-south, in addition to the
output of the comparator not gates were connected
for the case in which A is greater than or equal to B
and the comparator shows a low can be ignited with
Figure 2.6 Protoboard circuit assembly
high the LED's, green for north-south and red for
east-west. III. CONCLUSIONS

It can be concluded that multiplexers are very


useful logical devices when optimizing logic circuits.
Taking into account, as with the other gates, their
respective parameters such as the fan in and the fan
out, when assembling and thus avoid operating
errors.

IV. REFERENCES

[1] Martin, Ken. (2000). Digital Integrated Circuit


Figure 2.5 Complete circuit in logisim Design. (pp. 398,399). Oxford University Press.

Lógica Digital Uninorte


Universidad del norte. Coronado Jonas, Iván Torres, Juan Gonzales. Laboratorio # 2. 4

Retrieved from
https://app.knovel.com/hotlink/toc/id:kpDICD0
003/digital-integrated-circuit/digital-integrated-
circuit

Lógica Digital Uninorte

You might also like