Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to compile C++ program inside Modelsim

Status
Not open for further replies.

rezwanh

Newbie level 3
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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top