Hello everyone ,
I am facing issues while using $size in a parameterized class .
Here is the Sample Code ::
class A #(type T = int) ;
T a ;
bit [$size(a) - 1 : 0] b ;
endclass
A#() at ;
A#( .T(bit) ) ab ;
initial begin
at = new();
ab = new();
$display("Done");
end
Out of the 2 Simulators I tried it runs successfully on one while I get an Error on the other .
Is there a limitation of using $size in Classes ?
Thanks,
HV