Subject: RE: [sv-ec] tasks and function default values
From: David W. Smith (david.smith@synopsys.com)
Date: Tue Feb 25 2003 - 10:38:48 PST
Francoise,
One of the reasons that the C handle is not included in the singular type is
that singular types can be cast and C handles cannot.
In answer to your second question I believe the current LRM supports array
and structure literals for packed arrays and structs/unions. I do not know
of any verbiage that prohibits it. An example could be useful but, as we all
agree, LRM by example is "untidy". I believe that the SV-BC was having some
discussion on this topic.
Regards
David
-----Original Message-----
From: owner-sv-ec@eda.org [mailto:owner-sv-ec@eda.org] On Behalf Of
Francoise Martinolle
Sent: Tuesday, February 25, 2003 9:04 AM
To: sv-ec@eda.org
Subject: [sv-ec] tasks and function default values
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});
This archive was generated by hypermail 2b28 : Tue Feb 25 2003 - 10:40:21 PST