Falcon Invoice Discounting: The best investment platform in india for investors
Tutorial 1
1. • Click to editgMasterstext u s i n g V H D L
D i i t a l D e i g n styles
– Second level Tutorial [1]
• Third level
– Fourth level
» Fifth level
Introduced by
Using ModelSim SE
[1]
Cairo-Egypt
Version 03 – June 2012 1
2. about Start Group
• Click to edit Master text styles
Mahmoud Abdellatif
– Second level
Alaa Salah Shehata
• Third Salah
Mohamed level
Mohamed Talaat
– Fourth level
» Fifth level
start.courses@gmail.com www.slideshare.net/StartGroup
www.facebook.com/groups/start.group
www.startgroup.weebly.com
+ 02 0122-4504158 M.A www.youtube.com/StartGroup2011
+ 02 0128-0090250 A.S
Tutorial [1] 2
3. ModelSim Tutorial
• Click to edit Master text styles and Toolbars
Menus
– Second level
WorkSpace
• Third level
Projects, Files, Libraries
– Fourth level
used is shown here
» Fifth level
Transcript Area
All ModelSim ordered is
written here in TCL script Double Click on
ModelSim Icon on your
Desktop
Tutorial [1] 3
4. ModelSim Tutorial
Create Project window
• Click to edit Master text styles is opened
Write Project name
– Second level Press OK
• Third level
– Fourth level
» Fifth level
To create new Project
File > New > Project
Tutorial [1] 4
5. ModelSim Tutorial
• Click to edit Master text styles
– Second level
• Third level
– Fourth level
» Fifth level
ModelSim asks to add items to Write File name and_gate
Project, now we will add a new Add File as Type VHDL
file Press OK
Click on Create New File Press Close
Tutorial [1] 5
6. ModelSim Tutorial
• Click to edit Master text styles
WorkSpace now has new
and_gate of type VHDL
file
– Second level Note that status still unkonwn as
file not used
• Third level
– Fourth level
Double Click on the File
» Fifth level Text editor appears on the right
You are now ready to write your vhdl code
Tutorial [1] 6
7. ModelSim Tutorial
• Click to edit Master text styles
– Second level
• Third level
– Fourth level
» Fifth level
Tutorial [1] 7
8. ModelSim Tutorial
Press Compile (on the Left)
• Click to edit Master text styles
– Second level
• Third level
– Fourth level
If file is compiled » Fifth level
correct a green message will
appear at the transcript of successful compile
operation
Also Status of Sile changed to be compiled
Tutorial [1] 8
9. ModelSim Tutorial
Instead of Compile Icon you can use menu
• Click to edit Master text styles
File > Compile > Compile all
Or simply write in Transcript
– Second level
vcom and_gate.vhdl
• Third level
Where and_gate.vhd is the file name
– Fourth level
» Fifth level
Tutorial [1] 9
10. ModelSim Tutorial
To simulate
Simulation > Start Simulation
• Click to edit Master text styles
Then open WORK ? And_gate ? Behave ? OK
Or simply write in transcript
– Second levelvsim work.and_gate
Where and_gate here is the name of yopur entity compiled
• Third level
– Fourth level
» Fifth level
Tutorial [1] 10
11. ModelSim Tutorial
Now on workspace you have new window SIM
Right Click > Add > to wave > All Items In region and below
• Click to edit Master text styles
– Second level
• Third level
– Fourth level
» Fifth level
Tutorial [1] 11
12. ModelSim Tutorial
Wave window appears
Now you are ready to simulate your code and show results
• Click to edit Master text styles
Write click on signal a > Force > write value on a to test it
Press Ok then repeat with b
– Second level
• Third level
– Fourth level
» Fifth level
Tutorial [1] 12
13. ModelSim Tutorial
Press Run to show results
• Click to edit Master text styles
Use cursor to run over results
– Second level
• Third level
– Fourth level
» Fifth level
To end simulation
Simulate > End Simulation
Tutorial [1] 13
14. ModelSim Tutorial
Now try to use transcript only as shown write his to show how your
• Click to edit Master text styles
orders are translated
His
You can rerun your code if its entity is the same by writing the same lines
– Second level
Try it now
• Third level
– Fourth level
» Fifth level
Tutorial [1] 14
15. Take Your Notes
Print the slides and take your notes here
--------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------
• Click to edit Master text styles
--------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------
– Second level
--------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------
• Third level
--------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------
– Fourth level
--------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------
» Fifth level
--------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------
Tutorial [1] 15
16. You are The Best
• Click to edit Master text styles
– Second level
• Third level
– Fourth level
» Fifth level
Tutorial [1] 16