Timothy Normand Miller wrote:
> I don't use timescale much, so I could be just making a stupid
> mistake, but I'm getting unexpected behavior.  Howard reports that
> he's seen this with ModelSim too, so maybe it's just us.
> 
> Anyhow, I have this at the top of a couple of files:
> 
> `timescale 1ns / 1ps
> 
> My understanding is that this means that the time precision is 1ps,
> but if you do #10, for example, that still means 10ns.  I'm finding
> that this isn't consistent, where some parts of my code are in the ns
> timescale and others are in the ps timescale.

Where those `timescale directives are can really impact the results
you get. There is a -Wtimescale warning that catches the cases that
can cause confusion. Turn on that warning and see what it says.

Hint: The `timescale directive scope is *not* file or module scope.

-- 
Steve Williams                "The woods are lovely, dark and deep.
steve at icarus.com           But I have promises to keep,
http://www.icarus.com         and lines to code before I sleep,
http://www.picturel.com       And lines to code before I sleep."


_______________________________________________
geda-dev mailing list
[email protected]
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev

Reply via email to