lab 3

.docx

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

Report
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.
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:
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