Docsity

Creating Project-Verilog HDL-Assignment, Exercises of Verilog and VHDL

Toggle sidebar
bg1
Lab Assignment #02
Task# 01
Create a new project in ModelSim, add the files containing 8 to 1 MUX module and
Stimulus module to the project
Compile and run the simulation of 8 to 1 MUX in ModelSim
Display inputs and outputs of 8 to 1 MUX using $monitor. Also show timing waveforms
to Lab Instructor
Task# 02
Write Verilog code in behavioral modeling for 4-bit counter.
Write Stimulus module to verify your counter design. Stimulus module should give
clock input and reset input to counter and display corresponding outputs using
$monitor.
Compile and run the simulation in ModelSim and display counter output waveform
Task# 03
Below is Circuit diagram of an Arithmetic Logic Unit (ALU) that operates on 16-bit input data
Figure 1. Arithmetic Logic Unit (ALU)
Write behavioral verilog module for the ALU. Also write its Stimulus in Verilog.
Create a ModelSim project, add 16-bit ALU module and its stimulus to project
Compile and run the simulation of ALU in ModelSim and display/verify outputs
docsity.com

Partial preview of the text

Download Creating Project-Verilog HDL-Assignment and more Exercises Verilog and VHDL in PDF only on Docsity!

Lab Assignment

Task# 01

 Create a new project in ModelSim, add the files containing 8 to 1 MUX module and Stimulus module to the project  Compile and run the simulation of 8 to 1 MUX in ModelSim  Display inputs and outputs of 8 to 1 MUX using $monitor. Also show timing waveforms to Lab Instructor

Task# 02

 Write Verilog code in behavioral modeling for 4-bit counter.  Write Stimulus module to verify your counter design. Stimulus module should give clock input and reset input to counter and display corresponding outputs using $ monitor.  Compile and run the simulation in ModelSim and display counter output waveform

Task# 03

Below is Circuit diagram of an Arithmetic Logic Unit (ALU) that operates on 16-bit input data

Figure 1. Arithmetic Logic Unit (ALU)

 Write behavioral verilog module for the ALU. Also write its Stimulus in Verilog.  Create a ModelSim project, add 16-bit ALU module and its stimulus to project  Compile and run the simulation of ALU in ModelSim and display/verify outputs

docsity.com