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

From: Bresticker, Shalom <shalom.bresticker_at_.....>
Date: Thu Aug 13 2009 - 02:50:44 PDT
Your failures seem to be tool limitations, not language restrictions.

Shalom 


> SV 2009 draft 7a LRM has described array query functions in 
> "20.7 Array 
> querying functions" which uses reference of clause 7 where 
> the unpacked 
> array is defined. The clause 7 defines unpacked arrays of 
> different data 
> types. But it is not clear what will be the expected behavior 
> of array 
> query functions if they are applied on instance array of 
> interface port 
> array. For the following case what will be the expected behavior?
> 
> interface a;
> endinterface
> module test(in1,in2,out);
> input [7:0] in1,in2;
> output reg [7:0]out;
> 
> a a[3:0]();
> assign out = $size(a);
> bottom inst(a);
> endmodule
> 
> module bottom(a a[4]);
> byte out;
> assign out = $size(a);
> endmodule
> 
> Some simulators fail and some pass for the above case.
---------------------------------------------------------------------
Intel Israel (74) Limited

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.


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

This archive was generated by hypermail 2.1.8 : Thu Aug 13 2009 - 02:52:42 PDT