Subject: Re: [sv-ec] tasks and function default values
From: Andy Tsay (andytsay@yahoo.com)
Date: Wed Feb 26 2003 - 08:16:46 PST
Hi,
In SV3.1 Draft 3, section 3.7 Handle data type:
Handles shall always be initialized to the value null,
which has a value of 0 on the C side, which ...
Does the above paragraph require the tool to set
default value null for all handles?
Thanks,
Andy
--- Francoise Martinolle <fm@cadence.com> wrote:
> section 10.5.3 states that you can have a default
> value for any singular
> data type.
> A singular type excludes handles.
> Why wouldn't we allow a default value of null for
> handle types?
>
> Are we allowing array and structure literals as
> argument default values if
> the array/struct or union is packed? The section on
> array and struct
> literals only shows unpacked arrays and literal
> examples.
>
> Example:
> typedef struct packed {
> logic [3:0] a;
> logic [5:0] b;
> } mystruct
>
> function void foo(mystruct s = {4'b1, 5});
>
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
This archive was generated by hypermail 2b28 : Wed Feb 26 2003 - 08:17:39 PST