[sv-bc] Value propagation in Parameter with Type

From: Datta, Kausik <Kausik_Datta@mentor.com>
Date: Wed Mar 19 2014 - 07:46:00 PDT
Hi,
For the following testcase what should be the value of p2?

Will it be 8'b00000011 or 8'b11111111?

Thanks
Kausik


module bot #(parameter type p1 = logic, parameter p1 p2 = 7)
                  (input in1, output integer out1);
assign out1 = p2;

endmodule

module top(input  in1, output integer out1);

typedef union packed {
        byte      a;
        bit [7:0] b;
}UTR;

bot #(UTR, 2'sb11) inst(in1, out1);

endmodule



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Wed Mar 19 07:46:15 2014

This archive was generated by hypermail 2.1.8 : Wed Mar 19 2014 - 07:46:33 PDT