How to compile C++ program inside Modelsim

Status
Not open for further replies.

rezwanh

Newbie level 3
Joined
Jun 7, 2013
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
UK
Visit site
Activity points
1,313
Hi, I need to run some simple C++ programs in order to get some input stimulus for my verilog files. I want to run this inside Modelsim. I found a link on net: **broken link removed**

I tried something like this in modelsim:
cl -c -GX -I C:/foldername myprogram.cpp

And it gives me following error:
ambiguous command name "cl": clock close closelog

Can anyone tell me what's wrong with here? If anyone has experience of running C++(not SystemC) program in Modeslsim. I am using ModelSim PE 6.6a version. Thanks in advance!
 

I believe the commands from the link are for the Windows cmd prompt, not the Modelsim Tcl prompt

Thanks for the reply. Well, the main idea is to run C++ programs inside Modelsim. At the moment, I am using MS Studio to generate my stimulus and then open Modelsim and run my verilog files. I want to do this inside Modelsim without using any other programs like Studio.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…