Lab Assignment 03: Simulating and Verifying Digital Circuits in ModelSim, Exercises of Verilog and VHDL

A lab assignment for students to design, simulate, and verify digital circuits using modelsim. The assignment includes tasks to create projects for an 8-bit adder/subtractor, accumulator, and clock divider, write verilog code, and display waveforms. Students are expected to compile and run simulations, and use $monitor for input and output display.

Typology: Exercises

2011/2012

Uploaded on 07/13/2012

solution
solution 🇮🇳

4.4

(22)

81 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Lab Assignment #03
Task# 01
Create a new project in ModelSim, add the files containing adder/subtactor module and
Stimulus module to the project
Compile and run the simulation of 8-bit adder/subtractor in ModelSim
Display inputs and outputs of 8-bit adder/subtractor using $monitor. Also show timing
waveforms to Lab Instructor
Task# 02
Write Verilog code in behavioral modeling for 8-bit accumulator
Write Stimulus module to verify your accumulator design. Stimulus module should give
inputs to design module and display corresponding outputs using $monitor.
Compile and run the simulation in ModelSim and display output waveforms as well
Task# 03
Write behavioral verilog module for generalized Clock Divider. Also write its Stimulus
in Verilog. Stimulus will instantiate 3 different instances of Clock Divider
Create a ModelSim project, add Clock divider module and its stimulus to project
Compile and run the simulation of Clock Divider in ModelSim and display/verify
outputs
docsity.com

Partial preview of the text

Download Lab Assignment 03: Simulating and Verifying Digital Circuits in ModelSim 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 adder/subtactor module and Stimulus module to the project  Compile and run the simulation of 8-bit adder/subtractor in ModelSim  Display inputs and outputs of 8-bit adder/subtractor using $monitor. Also show timing waveforms to Lab Instructor

Task# 02

 Write Verilog code in behavioral modeling for 8-bit accumulator  Write Stimulus module to verify your accumulator design. Stimulus module should give inputs to design module and display corresponding outputs using $ monitor.  Compile and run the simulation in ModelSim and display output waveforms as well

Task# 03

 Write behavioral verilog module for generalized Clock Divider. Also write its Stimulus in Verilog. Stimulus will instantiate 3 different instances of Clock Divider  Create a ModelSim project, add Clock divider module and its stimulus to project  Compile and run the simulation of Clock Divider in ModelSim and display/verify outputs

docsity.com