RE: [sv-bc] Task and Function inout port with default argument

From: Bresticker, Shalom <shalom.bresticker_at_.....>
Date: Thu Dec 21 2006 - 04:07:50 PST
It is interesting to note that you can omit the inout seed argument to
$random, but you cannot give it a constant.

Shalom

> During those discussions, I expressed the opinion that copying to
> some default storage location was weird.  However, since then I
> have noticed an analogous situation where we do exactly that in
> Verilog.
> 
> It occurs when the $random system function is called without a
> so-called "seed" argument (actually the full state of the random
> number generation stream, which is an inout).  The simulator uses
> a hidden default storage location for the "seed" (actually state)
> of the global random number generation stream.  It does both the
> input and output side of the argument passing.
> 
> This is not actually a precedent for what we are talking about,
> since this is a system function, not a Verilog function.  However,
> it does illustrate a situation where an inout argument with a
> default actual that copies in and out was useful.
Received on Thu Dec 21 04:08:03 2006

This archive was generated by hypermail 2.1.8 : Thu Dec 21 2006 - 04:08:38 PST