Subject: [sv-ec] tasks and function default values
From: Francoise Martinolle (fm@cadence.com)
Date: Tue Feb 25 2003 - 09:03:48 PST
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 - 09:04:43 PST