Quantcast
Viewing all articles
Browse latest Browse all 1091

using sys.realtime

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

Image may be NSFW.
Clik here to view.

Viewing all articles
Browse latest Browse all 1091

Trending Articles



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