Functional Verification Forums
over 3 years ago
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
The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full