RE: [sv-bc] Array query functions on interface port and instance array

From: Rich, Dave <Dave_Rich_at_.....>
Date: Thu Aug 13 2009 - 09:31:48 PDT
I agree with Brad, design units (as they are now defined in 3.2) are not
data types. Furthermore, arrays of design unit instances are not
unpacked arrays;t share some common syntax.

I know that some tools treat arrays of instances like a traditional
array, but implementation is spotty. (i.e. dynamic access to individual
instance works in some cases, fails in others)

Dave




> -----Original Message-----
> From: owner-sv-bc@server.eda.org [mailto:owner-sv-bc@server.eda.org]
On
> Behalf Of Brad Pierce
> Sent: Thursday, August 13, 2009 7:52 AM
> To: Bresticker, Shalom; Surya Pratik Saha
> Cc: sv-bc@eda.org; Sourasis Das
> Subject: RE: [sv-bc] Array query functions on interface port and
instance
> array
> 
> Shalom,
> 
>    "Unpacked arrays are formed from any data type"
> 
> I agree that interfaces are much like types, and I often say
"interface-type
> port", but except maybe for virtual interfaces, the LRM never says
that
> interfaces are types.
> 
> Are gates types, too?
> 
> module test#(N=8)(input in[N], output out[N], output test_bit);
>   buf buf_array[N](out, in);
>   assign test_bit = (N == $size(buf_array));
> endmodule
> 
> Is there a conceptual difference between that and the following?
> 
> interface IFC(input in, output out);
>   assign out = in;
> endinterface
> 
> module test#(N=8)(input in[N], output out[N], output test_bit);
>   IFC IFC_array[N](out, in);
>   assign test_bit = (N == $size(IFC_array));
> endmodule
> 
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
> 


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Thu Aug 13 09:33:25 2009

This archive was generated by hypermail 2.1.8 : Thu Aug 13 2009 - 09:34:17 PDT