Jump to content

How can I pass definition in command line into sc_main


Recommended Posts

I have got an error when I was running a test.

My bench has been constructed by system C on cadence incisive 14.20.


The run command is like this:

irun -sysc -uvmtop "SC:top" -top dut -f list.f -DTV_PATH=\\\"/home/test0/\\\"


In sc_main.cpp, there is a line like this:

cout << "TV_PATH: " << TV_PATH <<endl;


But when I was running, there is a compile error like this:

line 12: error:

expected an expression

cout << "TV_PATH: " << TV_PATH <<endl;


extra text after expected end of number

cout << "TV_PATH: " << TV_PATH <<endl;



Hi nice guys, How can I solve this problem?




Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...