pli access function and testplusargs

A

Ash

Guest
Hello Folks,

I am trying to execute my pli access function based upon a valid
testplusargs switch. It appears that Verlilog try to find all the
pli access function at the begining of the simulation regardless
the oder of execution.

I have following Verilog code:

initial
#1.0 if ($test$plusargs("foo"))
begin
$display(" Foo argument present\n");
$display(" Foo argument present\n");

#1.0 $ddr_II_access();
end
else
begin
$display(" Foo argument is not present\n");
$display(" Foo argument is not present\n");
end

When invoking verilog with or without +foo switch it always
complain that $ddr_II_access() function is not defined and display
command never get executed as it errors out right away when
$ddr_II_access() function was not found.
Any input will be appreciated.


Thanks,

Mohammad Ashraf
 

Welcome to EDABoard.com

Sponsor

Back
Top