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

From: Brad Pierce <Brad.Pierce_at_.....>
Date: Thu Aug 13 2009 - 07:51:46 PDT
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.
Received on Thu Aug 13 07:52:41 2009

This archive was generated by hypermail 2.1.8 : Thu Aug 13 2009 - 07:53:33 PDT