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

From: Surya Pratik Saha <spsaha_at_.....>
Date: Tue Aug 11 2009 - 23:51:12 PDT
Hi,
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.

-- 
Regards
Surya




-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Tue Aug 11 23:52:49 2009

This archive was generated by hypermail 2.1.8 : Tue Aug 11 2009 - 23:53:45 PDT