No $time with system task $fatal

On the quest to remove redundant code from my testbenches, $time was among the victims to be dropped from all SV call $fatal.

Now I’m using $realtime instead of $time when writing SVAs.

 

Take the following statement along with its output as example:
$fatal(`ASSERT_LEVEL, "[%m]: Assertion property pp_ahb_readyout_resp failed @ time %0t", $time);

# ** Fatal: [tb_env.ap_ahb[0].readyout_resp]: Assertion property pp_ahb_readyout_resp failed @ time 1410830.00 ns
#    Time: 1410829553 ps Started: 1410496219 ps  Scope: tb_env.ap_ahb[0].readyout_resp File: tb_env.sv Line: 610 Expr: hready_sbus_slv[0]==hreadys

$time is already highlighted by questa’s verbose message.

Leave a comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.