This guide explains how to visualize modules using ModelSim, a popular simulation tool for hardware description languages (HDL) such as VHDL, Verilog, and SystemVerilog.
- Create a directory for the project.
- Open ModelSim.
- Navigate to: File > New > Project.
- Set Project Name and Project Location, then click OK.
- Click Create New File or Add Existing File:
- For 'Create New File':
- Add a file name.
- Select the target language (VHDL, Verilog, SystemVerilog).
- Click OK.
- Click Close.
- Double-click on the file to edit its content.
- For 'Add Existing File':
- Browse for the target file.
- Click OK.
- Click Close.
- For 'Create New File':
- Select the target file and click the Compile icon.
- OR right-click on the target file > Compile > ...
- Click Simulation > Start Simulation.
- Expand the work library.
- Select your module name.
- Click OK.
- Select the target signal and press Ctrl + W.
- OR right-click on the target signal > Add Wave.
- Click the Run icon to execute the simulation.
- If you make changes to the program, restart the simulation using the Restart icon.
- Observe signal behavior in the Wave window.
Happy designing!