Verilog Designs: Introduction To Simulation of Using Modelsim-Altera
Verilog Designs: Introduction To Simulation of Using Modelsim-Altera
Verilog Designs
using ModelSim-Altera
Presenter: Phong Bui
Email: [email protected]
Digital Image Processing Group IC Design Lab Hanoi 29/01/2013
Contents
1. Introduction
2. Design Project
1. Introduction
ModelSim is a verification and simulation tool for
Contents
1.Introduction
2.Design Project
2. Design Project
Simple example : f(x1, x2, x3) = x1x2 + x2x3 + x3x1 Verilog code :
module majority(x1, x2 ,x3 ,f); input : x1, x2, x3; output: f;
assign f = (x1&x2)|(x2&x3)|(x3&x1);
endmodule;
5
2. Design Project
Open the ModelSim simulator. In the displayed window select File > New > Project
2. Design Project
A Create Project pop-up box will appear
1.Enter the name of the project
2. Design Project
Create new file
2 3
8
2. Design Project
Double click
Text Editor
2. Design Project
Or add existing file
10
2. Design Project
After completed coding, select Compile > Compile all
Contents
1.Introduction
2.Design Project
12
13
14
15
16
17
18
19
20
Contents
1.Introduction
2.Design Project
22
23
24
25
26
27
28
29
Demo
Question ?
30