|
From: Stephen W. <st...@ic...> - 2008-03-27 22:38:09
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Cary R. wrote: > --- 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? I think you are right. Just one of many strange consequences of $strobe/$monitor. - -- Steve Williams "The woods are lovely, dark and deep. steve at icarus.com But I have promises to keep, http://www.icarus.com and lines to code before I sleep, http://www.picturel.com And lines to code before I sleep." -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFH7CHNrPt1Sc2b3ikRAiZLAKDoqyfgCXx93nSlpPLa5WN4pDZ8AgCcCT+H EIYTXNnsoei4nH5Ujxq8OAA= =gBti -----END PGP SIGNATURE----- |