lab 3
docx
keyboard_arrow_up
School
Valencia College *
*We aren’t endorsed by this school
Course
2112C
Subject
Electrical Engineering
Date
Dec 6, 2023
Type
docx
Pages
10
Uploaded by MajorElectron12680
03/03/2019
Experiment #4
Multiplexers in
Combinational Logic Design
03/03/2019
EEE 3342
Objective:
03/03/2019
The goal of this experiment is to introduce multiplexers in the implementation of
combinational
logic design. In addition, procedural programming in VERILOG will be introduced to the
student.
Apparatus List:
1.
BASYS 3 Board
2. Xilinx
3.
Vivado Tools
4.
Given Function:
F(w,x,y,z)=y'z'w'+y'z+yz'x
Pre-Lab Questions:
1.
Given the Function F (w, x, y, z) generate this function’s truth table. Next, determine
the min-terms (the combination of w, x, y, and z for which
the
output
function
F
is
one).
These combinations determine the input locations of the multiplexer which are
set to one.
The combinations, for which the output is zero, form the input locations of
the multiplexer which are set to zero.
F(w,x,y,z)=y'z'w'+y'z+yz'x
W
X
Y
Z
F(W,X,Y,
Z)
0
0
0
0
1
0
0
0
1
1
0
0
1
0
0
0
0
1
1
0
0
1
0
0
0
0
1
0
1
1
0
1
1
0
1
0
1
1
1
0
1
0
0
0
1
1
0
0
1
1
1
0
1
0
0
1
0
1
1
0
1
1
0
0
0
1
1
0
1
1
1
1
1
0
1
1
1
1
1
0
2.
Draw the logic schematic in your notebook using two 8:1 multiplexers. Consider the
enable input
as
active
high
(Xilinx
has
the
Enable
input
as
active
high
–
E).
03/03/2019
Three
of
the
input variables in the given function F(w,x,y,z) are used as control
inputs to the selection/control 4-2 inputs of each of the 8:1 multiplexers and the fourth
input variable is used to select between the two 8:1 multiplexers using the E input. An
OR gate is used to OR the two 8:1 multiplexer outputs.
3.
Read the rest of this experiment carefully
to
become
familiar
with
it
and
write
down
the Verilog code for the Multiplexer depending on the inputs and outputs.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
03/03/2019
Procedures:
1.
Using Xilinx’s Vivado Design Tool and the VERILOG programming language,
design a 16:1 multiplexer.
2.
2. Create VERILOG source file which consists of the code for the multiplexer and
then run the synthesis. Expand the Open Elaborated Design entry under the RTL
Analysis tasks of the Flow Navigator pane and click on Schematic to create the
schematic circuit.
3.
3. After
studying
the
above
VERILOG
programming
examples,
try
to
compile
a
VERILOG programming
module
that
implements
a
16:1
multiplexer
using
procedural
programming. Assign
a
4-bit
bus
S
for
the
select
lines
of
the
multiplexer
and
a
signal
O
for
the
output
(O needs to be
reg type).
4.
4. See Experiment #1&2 on how to design, set the test bench end time and the
simulation end time. Once the simulation is completed, verify if the outputs are in
sync with code.
5.
5. Define a four-bit input BUS S and a single output O. This four-bit bus, S[0],
S[1], S[2] and S[3] should be connected to SW0 (V17), SW1 (V16), SW2(W17),
and SW3(W15) and the O output should be linked to LED0 (LD0) on the BASYS
board by choosing “Package” under schematic. The value of the I/O Std of these
switches should be set to “LVCMOS33”.
6.
6. Generate a .BIT file as explained in Experiment 1 and Implement the design on
the BASYS Board.
By
clicking
on
the
hardware
manager,
and
programming
the
board
with
the implemented design, verify the output on the Board.
-
Figures:
03/03/2019
Figure 1: VERILOG source file for Multiplexer
03/03/2019
Figure 2: RTL Schematic
Figure 3: Scalar Ports
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
03/03/2019
Figure 5: Simulation Source Code
Figure 6: Waveform Diagram
03/03/2019
Design Specification Plan:
For the experiment, we needed to use four given inputs; W, X, Y, and Z, which resulted
in output F. This output was based on the function: F(w,x,y,z)=y'z'w'+y'z+yz'x For the four
given inputs based off the function they equaled 1, and whatever wasn’t listed was 0 based off a
truth table generated for the function. Knowing where the function needed to equal 1, I used if
statements to generate this. For example, at w’y’z’ I made the statement if (W==0 & Y==0 &
Z==0), F = 1. I repeated these statements with the rest of the function, then finally made an else
statement making F=0 for everything else. I then linked each switch for the initial inputs then
linked LED 0 for F. Finally I synthesized my design and uploaded it onto the board to test it.
Test Plan:
Load the program onto the BASYS 3 Board then begin testing positions for the variables
W, X, Y, and Z corresponding to the truth table. LED Light ON is 1; LED Light off is 0. Switch
OFF is 0; Switch ON is 1.
1.
For the switches the OFF positions represent the primes of the inputs, while the ON
positions represent the normal inputs.
2.
Begin by testing w’x’y’z’, for this part of the function all the switches should be in the
OFF position. This should result in a lit LED.
4.
Test w’x’y’z, then record LED status. If done correctly this should have resulted in a
lit LED.
5.
Test w’xy’z, then record LED status. If done correctly this should have resulted in a lit
LED.
6.
Test w’xyz’, then record LED status. If done correctly this should have resulted in a lit
LED.
7.
Test wx’y’z’, then record LED status. If done correctly this should have resulted in a
lit LED.
8.
Test wx’y’z, then record LED status. If done correctly this should have resulted in a lit
LED.
9.
Test wxy’z, then record LED status. If done correctly this should have resulted in a lit
LED.
10.
Test wxyz’, then record LED status. If done correctly this should have resulted in a lit
LED.
11.
Test other combinations. One should find that the LED is off for any other
combination that is not represented in the function.
Results:
03/03/2019
Since the design was successful, we can use the initial truth table in the Pre-Lab Assignment to
represent our findings.
W
X
Y
Z
F(W,X,Y,
Z)
0
0
0
0
1
0
0
0
1
1
0
0
1
0
0
0
0
1
1
0
0
1
0
0
0
0
1
0
1
1
0
1
1
0
1
0
1
1
1
0
1
0
0
0
1
1
0
0
1
1
1
0
1
0
0
1
0
1
1
0
1
1
0
0
0
1
1
0
1
1
1
1
1
0
1
1
1
1
1
0
Conclusion:
The results proved successful according to the Pre-Lab truth table. There were multiple
ways to do the Verilog source code; however, the easiest in my opinion was to use IF
statements. By using this, all we needed to have was the conditions were the function was 1 and
create an ELSE statement which made any other combination result in 0.
1.
Investigate the function of a lookup table and describe how one works.
The function of a lookup table is that it checks if there is data present before
loading more data into another table, which decreases the runtime of a program.
It then replaces runtime computation with a simpler array indexing operation.
2.
Consider a 16 word by 1 bit lookup table. Give the values stored in each location
0000 binary (word zero) to 1111 binary (word fifteen) for the function F(w, x, y, z).
The truth table that was generated in the pre-laboratory will help here.
W
X
Y
Z
F(W,X,Y,
Decimal
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
03/03/2019
Z)
Values
0
0
0
0
1
0
0
0
0
1
1
1
0
0
1
0
0
2
0
0
1
1
0
3
0
1
0
0
0
4
0
1
0
1
1
5
0
1
1
0
1
6
0
1
1
1
0
7
1
0
0
0
1
8
1
0
0
1
1
9
1
0
1
0
0
10
1
0
1
1
0
11
1
1
0
0
0
12
1
1
0
1
1
13
1
1
1
0
1
14
1
1
1
1
0
15
Related Documents
Related Questions
H.W: Reduce the combinational logic circuit in Figure below to a
minimum form.
arrow_forward
SUBJECT: DIGITAL DESIGN AND LOGIC CIRCUITS FOR COMPUTER ENGINEERS
TOPIC: LOGIC DESIGN USING DECODER AND MUTLIPLEXER
NOTE: I need full complete solution and correct. Thanks you so much. Please help me!!
1. Implement the logic function
F(A, B, C) = AB' + BC + A'C' using 3x8 Decoder.
2. Implement the logic function
F(A, B, C) = AB' + BC + A'C' using multiplexer.
3. Design a combinational circuit with three inputs, x, y, and z, and three outputs, A,
B, and C. When the binary input is 0, 1, 2, or 3, the binary output is one greater than
the input. When the binary input is 4, 5, 6, or 7, the binary output is two less than the
input. Implement your design using multiplexer.
arrow_forward
I was able to fill out the truth table for part A. I ONLY need help for PART B.
B) Implement the logic function (z) using the multiplexer 74HC151 shows in the picture.
arrow_forward
Design the following combinational logic circuit with a
four-bit input and a three-bit output. The input
represents two unsigned 2-bit numbers: A1 A0 and B1
B0. The output C2 C1.C0 is the result of the integer
binary division A1 A0/B1 B0 rounded down to three
bits. The 3-bit output has a 2-bit unsigned whole part
C2 C1 and a fraction part CO. The weight of the fraction
bit CO is 21. Note the quotient should be rounded
down, i.e. the division 01/11 should give the outputs
00.0 (1/3 rounded down to 0) not 00.1 (1/3 rounded up
to 0.5). A result of infinity should be represented as
11.1. A minimal logic implementation is not required.
(Hint: start by producing a truth table of your design).
arrow_forward
Hello I am having trouble with a practice problem for my digital circuits class. I would appreciate if you can help me out. Thanks.
arrow_forward
Design a logic circuit for decoder that accepts 3-bit input and displays alphabet “048” at the seven-
segment as illustrated at Figure 1 (a). The input-output mapping shown in Table 1 (a). Refer Figure
1(b) and Figure 1(c) for seven-segment display format showing arrangements of segments using
common anode connection. Show each steps clearly to produce the expressions and required
design.
[Rekabentuk litar logik untuk penyahkod yang menerima input 3-bit dan paparkan abjad "048" di tujuh-segmen
seperti digambarkan pada Rajah 1(a). Pemetaan masukan-keluaran ditunjukkan dalam Jadual 1(a). Rujuk Rajah
1(b) and Rajah 1(c) untuk format paparan tujuh-segmen yang menunjukkan susunan segmen menngunakan
sambungan 'common anode'. Tunjukkan setiap langkah dengan jelas untuk menghasilkan ungkapan dan reka bentuk
yang dikehendaki.]
Xs
X6
X7
DECODER
Figure 1(a)
[Rajah 1(a)]
a
b
с
d
e
f
g
a
80123456789
Figure 1(c)
[Rajah 1(c)]
g
Figure 1 (b)
[Rajah 1(b)]
b
с
DP
arrow_forward
Write a VHDL code for the following simple logic circuit.
D-
X1
X2
f
X3
arrow_forward
Needs Complete solution with 100 % accuracy.
arrow_forward
Hello I am having trouble with a practice problem for my digital circuits class. I would appreciate if you can help me out. Thanks.
arrow_forward
Design a combinational circuit with four input lines that represent a decimal digit in BCD and four output lines that generate the 9's complement of the input digit. Provide a fifth output that detects an error in the input BCD number. This output should be equal to logic 1 when the four inputs have one of the unused combinations of the BCD code. Provide a schematic logic diagram of it. It will surely help me in my review. Thank you so much!
arrow_forward
Please help me, solve this question.
arrow_forward
For the input waveforms in Figure , what logic circuit will generate the output
waveform shown? Explain in detail for each.
Inputs B
Output X
Inputs B
Output X
arrow_forward
From the BCD code whose block diagram is given in the figure below, you can find the 7-segment LED display (with common anode) code. Solving combinational logic circuit will be designed. This type of commercially produced decoder is integrated State the features you consider important by researching the circuits. BCD input at the output of the decoder For the 0-9 values of the information information, the following display figures will be seen and the values other than these it will be considered arbitrary. Since the 7-segment LED display has a common anode, Logic "0" will be applied in response to the burned parts. The accuracy of the logic circuit you will design Create the table and find the output expressions by shrinking the table with the Karnaugh diagram method.
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you

Delmar's Standard Textbook Of Electricity
Electrical Engineering
ISBN:9781337900348
Author:Stephen L. Herman
Publisher:Cengage Learning

Related Questions
- H.W: Reduce the combinational logic circuit in Figure below to a minimum form.arrow_forwardSUBJECT: DIGITAL DESIGN AND LOGIC CIRCUITS FOR COMPUTER ENGINEERS TOPIC: LOGIC DESIGN USING DECODER AND MUTLIPLEXER NOTE: I need full complete solution and correct. Thanks you so much. Please help me!! 1. Implement the logic function F(A, B, C) = AB' + BC + A'C' using 3x8 Decoder. 2. Implement the logic function F(A, B, C) = AB' + BC + A'C' using multiplexer. 3. Design a combinational circuit with three inputs, x, y, and z, and three outputs, A, B, and C. When the binary input is 0, 1, 2, or 3, the binary output is one greater than the input. When the binary input is 4, 5, 6, or 7, the binary output is two less than the input. Implement your design using multiplexer.arrow_forwardI was able to fill out the truth table for part A. I ONLY need help for PART B. B) Implement the logic function (z) using the multiplexer 74HC151 shows in the picture.arrow_forward
- Design the following combinational logic circuit with a four-bit input and a three-bit output. The input represents two unsigned 2-bit numbers: A1 A0 and B1 B0. The output C2 C1.C0 is the result of the integer binary division A1 A0/B1 B0 rounded down to three bits. The 3-bit output has a 2-bit unsigned whole part C2 C1 and a fraction part CO. The weight of the fraction bit CO is 21. Note the quotient should be rounded down, i.e. the division 01/11 should give the outputs 00.0 (1/3 rounded down to 0) not 00.1 (1/3 rounded up to 0.5). A result of infinity should be represented as 11.1. A minimal logic implementation is not required. (Hint: start by producing a truth table of your design).arrow_forwardHello I am having trouble with a practice problem for my digital circuits class. I would appreciate if you can help me out. Thanks.arrow_forwardDesign a logic circuit for decoder that accepts 3-bit input and displays alphabet “048” at the seven- segment as illustrated at Figure 1 (a). The input-output mapping shown in Table 1 (a). Refer Figure 1(b) and Figure 1(c) for seven-segment display format showing arrangements of segments using common anode connection. Show each steps clearly to produce the expressions and required design. [Rekabentuk litar logik untuk penyahkod yang menerima input 3-bit dan paparkan abjad "048" di tujuh-segmen seperti digambarkan pada Rajah 1(a). Pemetaan masukan-keluaran ditunjukkan dalam Jadual 1(a). Rujuk Rajah 1(b) and Rajah 1(c) untuk format paparan tujuh-segmen yang menunjukkan susunan segmen menngunakan sambungan 'common anode'. Tunjukkan setiap langkah dengan jelas untuk menghasilkan ungkapan dan reka bentuk yang dikehendaki.] Xs X6 X7 DECODER Figure 1(a) [Rajah 1(a)] a b с d e f g a 80123456789 Figure 1(c) [Rajah 1(c)] g Figure 1 (b) [Rajah 1(b)] b с DParrow_forward
- Design a combinational circuit with four input lines that represent a decimal digit in BCD and four output lines that generate the 9's complement of the input digit. Provide a fifth output that detects an error in the input BCD number. This output should be equal to logic 1 when the four inputs have one of the unused combinations of the BCD code. Provide a schematic logic diagram of it. It will surely help me in my review. Thank you so much!arrow_forwardPlease help me, solve this question.arrow_forwardFor the input waveforms in Figure , what logic circuit will generate the output waveform shown? Explain in detail for each. Inputs B Output X Inputs B Output Xarrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Delmar's Standard Textbook Of ElectricityElectrical EngineeringISBN:9781337900348Author:Stephen L. HermanPublisher:Cengage Learning

Delmar's Standard Textbook Of Electricity
Electrical Engineering
ISBN:9781337900348
Author:Stephen L. Herman
Publisher:Cengage Learning
