Re: [myhdl-list] fpgaz nm
Brought to you by:
jandecaluwe
From: Christopher L. F. <cf...@uc...> - 2008-11-17 03:34:58
|
Newell Jensen wrote: > I think I have it figured out. It looks like the default time scale > is in nanoseconds. I may be wrong but I just replaced the 10*t10NS > with 10. > Here is the original contents of the timebase ---------------------------- # # Definitions for MyHDL simulation time steps. # # These are useful to help relate the simulation back to # actual time. Example delay(tNS). Note this does have some # issues that the max value delay() excepts is ?? # tPS = 0 tNS = 0 t10NS = 1 tUS = 100 * tNS tMS = 1000 * tUS tSec = 1000 * tMS tUnitTime = t10NS # Initialize a "time" step counter ttime = 0 -------------------------------- You had the basic idea. This is what I did way back then, when I was first playing with MyHDL. I haven't thought about it for awhile but I bet there is away to get the simulation timestamp (current step)? |