Does anybody know why the function in the code below is behaving differently when the input is a constant or a variable?
I understand that time literal is of type 'realtime' and not 'time'. My complain is that the function has a different behavior depending on the return type.
I'm using Incisive version 12.20.020
$timeformat(-9, 0, " ns", 6);
time_var = time_func(1us);
function time time_func (input time in_time);
$display("we are in time_func, in_time = %0t",in_time);
function void void_func (input time in_time);
$display("we are in void_func, in_time = %0t",in_time);
we are in time_func, in_time = 100 ns
we are in void_func, in_time = 1000 ns