Modelsim wave editor
Note: Use detailed comments in your code – important for others reading your code, for yourself in the future, and for your grades. In this tutorial, as an example, an 8-Bit Simple up counter will be created as shown in Figure 5.įigure 5. The next step is to start writing Verilog code in the text editor. Left: The project tab shows the new file. This will open ModelSim’s text editor as shown in Figure 4-right.įigure 4. To start writing the Verilog code right-click on the file and select Edit as shown in Figure 4-left. Now you will notice that the file was added to the project, and its status is “ ?”. Create a new Verilog file 2.2 Write a Verilog file Fill in the file name, which should reflect the function of the module, and select the type of the file to be Verilog as shown in Figure 3-right.
By selecting “Create New File”, a new widow named “Create Project File” will open. Project Location = Browse to the working directory created in section 1.1Īfter clicking “OK”, a new window will open to add a new item to the project as shown in Figure 3-left. In the Create Project window set the fields as follows and as shown in Figure 2: This will open a “Create Project” window. 2.1 Create a new projectįrom the drop-down menus go to New –> Project…>.
#Modelsim wave editor how to
The objective of this section is to learn how to create a new project, deal with ModelSim’s text editor, and compile the created code. ModelSim initial screen 2 Create and compile Verilog modules ModelSim should open a window as in Figure 1.įigure 1. > source /CMC/scripts/mentor.modelsim.10.3.csh After sourcing the setup file, launch the tool. Sourcing this file will take care of all the needed environment variables/licensing. In the working directory that you just created, source the provided setup file. 1.2 Source the setup file and run ModelSim Note: You will need to do this step for only the first time using the tool. Create a new working directory for ModelSim and name it, then descend into that directory using the following command lines: > mkdir ModelSim_ StudentNumber In your home directory, open a new shell.
The objective of this section is to learn how to get the environment ready for the tool, take care of the licensing issues, and start the tool. 1 Environment Setup and starting ModelSim
#Modelsim wave editor software
ModelSim is an HDL simulation software from Mentor Graphics.