- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear all,
I have problem here; i want to make a testbench using ModelSim but i cant. I write the testbench code in Quartus ii, then i follow the steps of one of the Altera Guru from this forum for export the file to ModelSim. But, it does not work. My question is how can i make the testbench in ModelSim after i write the testbench code in Quartus ii? Anyone can help me please.ThanksLink Copied
8 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How have you written the testbench? if you write it in VHDL or Verilog you can run it direct from modelsim.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Tricky,
Yes, i already write the testbench in VHDL..How to run the testbench with ModelSim? Can you give the steps? Thanks for reply- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
in modelsim console window:
cd /directory where the VHDL is/ vlib work vcom my_vhdl_file.vhd (do this for every VHDL file) vsim my_testbench run Xns- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Tricky,
Sorry i am very new with ModelSim..i don't understand about your steps. Can you give a detail step? Thanks for reply- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
1. Load modelsim
2. highlight the transcript window, you can type in here 3. type all the commands I just gave you- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Tricky,
Did you mean i need to write the code that you give above in ModelSim? Then, what about my testbench VHDL code in Quartus ii? How they connected? i not clear about that. Thanks for reply- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
the VHDL code is just a text file. You just need to navigate to the directroy where you created it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Tricky,
I still don't understand your steps.I really lost. Btw, thanks for reply
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page