[sv-bc] Re: What is the type of a slice?

From: Brad Pierce <Brad.Pierce@synopsys.com>
Date: Tue Sep 15 2015 - 14:06:06 PDT
Following up to http://www.eda.org/sv-bc/hm/11749.html , does the following display 1 or 0?


module test(output out);

  bit v[3:0];

  if (type(v[3:2]) == type(v[1:0]))

    assign out = 1'b1;

  else

    assign out = 1'b0;

initial begin

  #1 $display(out);

end

endmodule


-- Brad


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Tue Sep 15 14:06:21 2015

This archive was generated by hypermail 2.1.8 : Tue Sep 15 2015 - 14:07:03 PDT