Skip to content

Commit 35a26f2

Browse files
committed
Visualize modules using ModelSim
1 parent 1e0f0c6 commit 35a26f2

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

Projects/ModelSim/README.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Visualize Modules Using ModelSim
2+
3+
This guide explains how to visualize modules using ModelSim, a popular simulation tool for hardware description languages (HDL) such as VHDL and Verilog.
4+
5+
### 1. Create a Project in ModelSim
6+
7+
- Create a directory for the project.
8+
- Open ModelSim.
9+
- Navigate to: **File > New > Project**.
10+
- Set **Project Name** and **Project Location**, then click **OK**.
11+
12+
### 2. Add Source Files
13+
14+
- Click **Create New File** or **Add Existing File**:
15+
- **For 'Create New File'**:
16+
- Add a file name.
17+
- Select the target language (VHDL or Verilog).
18+
- Click **OK**.
19+
- Click **Close**.
20+
- Double-click on the file to edit its content.
21+
- **For 'Add Existing File'**:
22+
- Browse for the target file.
23+
- Click **OK**.
24+
- Click **Close**.
25+
26+
### 3. Compile the Target File
27+
28+
- Select the target file and click the **Compile** icon.
29+
- OR right-click on the target file > **Compile > ...**
30+
31+
### 4. Run the Simulation
32+
33+
- Click **Simulation > Start Simulation**.
34+
- Expand the **work** library.
35+
- Select your module name.
36+
- Click **OK**.
37+
38+
### 5. Visualize Signals in the Wave Window
39+
40+
- Select the target signal and press **Ctrl + W**.
41+
- OR right-click on the target signal > **Add Wave**.
42+
43+
### 6. Run the Simulation
44+
45+
- Click the **Run** icon to execute the simulation.
46+
- If you make changes to the program, restart the simulation using the **Restart** icon.
47+
48+
### 7. Analyze the Results
49+
50+
- Observe signal behavior in the **Wave** window.
51+
52+
Happy designing!

0 commit comments

Comments
 (0)