trured
Newbie
Does not $system() work in windows os?
modelsim documentation gives an example using unix command but does not mention that this will not work in windows.
This is what is in the documentation -
$system("command"); This system function takes a literal string argument, executes the specified operating system command, and displays the status of the underlying OS process. Double quotes are required for the OS command. For example, to list the contents of the working directory on Unix: $system("ls -l"); Return value of the $system function is a 32-bit integer that is set to the exit status code of the underlying OS process.
This is what I am trying to do in my testbench.
I expect this to be printed in the transcript - value of s is 10. but I get - value of s is %s%
I have been at it for so long and not able to figure it out.
please let me know what am i doing wrong here.
modelsim documentation gives an example using unix command but does not mention that this will not work in windows.
This is what is in the documentation -
$system("command"); This system function takes a literal string argument, executes the specified operating system command, and displays the status of the underlying OS process. Double quotes are required for the OS command. For example, to list the contents of the working directory on Unix: $system("ls -l"); Return value of the $system function is a 32-bit integer that is set to the exit status code of the underlying OS process.
This is what I am trying to do in my testbench.
Code:
initial
begin
$system("set s=10");
$system("echo value of s is %s%");
end
I expect this to be printed in the transcript - value of s is 10. but I get - value of s is %s%
I have been at it for so long and not able to figure it out.
please let me know what am i doing wrong here.