Docsity

DataFlow Modeling-Verilog HDL-Assignment, Exercises of Verilog and VHDL

Toggle sidebar
bg1
Lab Assignments In DataFlow Modeling
Task# 01
Create a new project in ModelSim, add the files containing 1-bit full adder module and
Stimulus module to the project
Compile and run the simulation of 1-bit adder in ModelSim
Create a new project in ModelSim, add the files containing 4 to 1 MUX module and
Stimulus module to the project
Compile and run the simulation of 4 to 1 MUX in ModelSim
Display inputs and outputs of 1-bit full adder and 4 to 1 MUX and show results to Lab
Instructor
Task# 02
Write Verilog code in data flow modeling for 4-bit Full Adder Circuit. 4-bit adder
module will instantiate multiple instances of 1-bit Full adder designed in Task 1
Write Stimulus module to verify your 4-bit full adder design. Stimulus module should
give 8 different inputs to 4-bit adder and display corresponding outputs using $monitor.
Also display output waveform
Task#03
Write Verilog Module for an 8 to 1 MUX in data flow modeling. 8 to 1 MUX module will
instantiate multiple instances of 4 to 1 MUX already implement in Task 1. Also add any
other required logic for 8 to 1 MUX
Write Stimulus for 8 to 1 MUX in Verilog. Stimulus should check output for different
combinations of input & select lines to 8 to 1 MUX
Below is circuit diagrams of 4 to 1 MUX and 8 to 1 MUX
Figure 1. 4 to 1 MUX Circuit
docsity.com
pf2
Discount

On special offer

Partial preview of the text

Download DataFlow Modeling-Verilog HDL-Assignment and more Exercises Verilog and VHDL in PDF only on Docsity!

Lab Assignments In DataFlow Modeling

Task# 01

 Create a new project in ModelSim, add the files containing 1-bit full adder module and Stimulus module to the project  Compile and run the simulation of 1-bit adder in ModelSim  Create a new project in ModelSim, add the files containing 4 to 1 MUX module and Stimulus module to the project  Compile and run the simulation of 4 to 1 MUX in ModelSim  Display inputs and outputs of 1-bit full adder and 4 to 1 MUX and show results to Lab Instructor

Task# 02

 Write Verilog code in data flow modeling for 4-bit Full Adder Circuit. 4-bit adder module will instantiate multiple instances of 1-bit Full adder designed in Task 1  Write Stimulus module to verify your 4-bit full adder design. Stimulus module should give 8 different inputs to 4-bit adder and display corresponding outputs using $ monitor. Also display output waveform

Task#

 Write Verilog Module for an 8 to 1 MUX in data flow modeling. 8 to 1 MUX module will instantiate multiple instances of 4 to 1 MUX already implement in Task 1. Also add any other required logic for 8 to 1 MUX  Write Stimulus for 8 to 1 MUX in Verilog. Stimulus should check output for different combinations of input & select lines to 8 to 1 MUX Below is circuit diagrams of 4 to 1 MUX and 8 to 1 MUX

Figure 1. 4 to 1 MUX Circuit

docsity.com

Figure 2. 8 to 1 MUX using 4 to 1 MUX's

docsity.com