This lab guide explains using ModelSim for digital logic simulation in CPR E 281, covering VDI access, project setup, Verilog files, compilation…
This guide provides step-by-step instructions for students in the CPR E 281 course to simulate digital logic circuits using ModelSim software via the university's virtual desktop infrastructure (VDI). It covers connecting to the VDI, creating a new ModelSim project, adding Verilog HDL files, and converting Quartus block diagrams to Verilog.
The document then details compiling files, starting a simulation, adding waveforms, forcing input values for edge-case testing, and running simulations with the 'run 100' command. It concludes with a note to contact the lab teaching assistant for questions.
After starting ModelSim, click File > New > Project and select a directory for the project.
Right-click the desired input variable, choose Force, and set the value to test the circuit.
Type 'run 100' at the command prompt to simulate for 100 nanoseconds.