Hi,
In the below code:
module my_top(
input logic my_valid, //not a var fails
output logic sig //is a var passes
);
endmodule
//=================
interface my_if (ref logic sig,
ref logic my_valid);
endinterface : my_if
//=================
module my_tb();
my_top my_top();
bind my_top my_if my_if_bind(.sig(sig), .my_valid(my_valid));
initial begin
#50;
$finish;
end
endmodule
I understand that A ref port is always a variable.
Why does input logic is not a var, while output logic is a var?
Thanks,
Tsach