Quantcast
Channel: Cadence Functional Verification Forum
Viewing all articles
Browse latest Browse all 1074

using sys.realtime

$
0
0

Hi,

 Can you please explain the influence of the `timescale and precision on sys.time and sys.realtime.

 In specman e language reference it says that:

* "A field of type real named sys.realtime, which can hold a more precise simulator time than sys.time."

* "The precision of the timescale scales the precision of sys.realtime."

For example, I'm using 1ns/10ps but when I try to print sys.time and sys.realtime the same value is printed.

my code does the following:

event xx is fall ('hdl_path')@sim;

on xx {

  print sys.time;

  print sys.realtime;

};

 In addition using delay() with t : real where t = 1.5 doesn't work.

 So can you please clarify the difference between the two and how to use them correctly?

 Thanks!

 Yael


Viewing all articles
Browse latest Browse all 1074

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>