RE: [sv-ec] restriction on typedef on net.

From: danielm <danielm_at_.....>
Date: Tue Jan 15 2008 - 07:44:07 PST
LRM defines integral type as:
"The term integral is used throughout this standard to refer to the data
types that can represent a single basic
integer data type, packed array, packed struct, packed union, enum, or
time."

In restriction for net types LRM uses that term:
"Certain restrictions apply to the data type of a net. A valid data type for
a net shall be one of the following:
a) A 4-state integral type, including a packed array or packed struct
b) An unpacked array or unpacked struct, where each element has a valid data
type for a net"

Reading both above it is unclear to me which types are allowed as net type
- why only packed array and packed struct are explicitly included while they
are in integral type definition same as union and enums. what about packed
union and enum.
Is packed union allowed or not: 

wire union packed {integer i, reg[31:0] r} wire_union;

 

DANiel


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Tue Jan 15 07:44:38 2008

This archive was generated by hypermail 2.1.8 : Tue Jan 15 2008 - 07:45:01 PST