|
From: Cary R. <cy...@ya...> - 2008-03-27 22:06:31
|
--- Stephen Williams <st...@ic...> wrote:
> Look at all the various kinds of expression nodes are supported
> by the VPI:-(
And it's real nice that we can safely ignore them in Icarus :-).
> That's something like a vpi expression node that supports vpi_get_value
> by evaluating the expression. Perhaps the code generator can write
> out the vpi expression nodes and make them available to the system
> task?
OK I will think about this.
One complication so far is do we need to handle special the case when a
$strobe is called inside a loop that may be changing a variable the
expression depends on? Something like:
// $strobe the elements of an array.
for(idx = 0; idx < 8; idx = idx + 1) begin
$strobe(a[idx]);
end
#1;
In this case do we assume the index variable is different for each call
(is an argument) or is it just a normal expression? I believe the correct
interpretation is that you will end up with eight strobes all displaying
the value of a[8]. Thoughts?
Cary
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
|