Reputation: 1485
I try to pass a variable with time unit to the delay()
temporal expression:
var bla : real = 0.1;
wait delay (bla ns);
And get the next error:
*** Error: Unrecognized exp
[Unrecognized expression 'bla ns']
Is there a way in Specman e to pass a variable to delay
expression with time unit?
Thank you for your help
Upvotes: 0
Views: 423
Reputation: 95
One more approach:
var delay_for_uart: uint = 50;
wait delay(to_specman_scale(delay_for_uart, us));
Just as additional comment: as you probably know, you need to ensure that your timescale is small enough to be able to perform required wait. If for example you need to wait 100ps, but timescale is in ns, then you will not be able to do so.
Upvotes: 1
Reputation: 7573
Do the following:
var bla : real = 0.1;
wait delay (bla * 1 ns);
Upvotes: 2