|
From: Stephen W. <st...@ic...> - 2009-02-23 19:05:52
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Larry Doolittle wrote: > Hi - > > For years, I have learned to avoid the > warning: timescale for foo inherited from another file. > message by simply putting > `timescale 1ns / 1ns > at the beginning of every file. > > Is this really needed for pure synthesizable code, when > there are no times listed anywhere in the file? > > I ask because the soon-to-be-released vhd2vl will emit > timescale directives if needed, taking its cue from the units > used in the original VHDL (and complaining if multiple units > are used in a file). It seems silly and surprising to emit > a `timescale directive (with a capricious choice of unit) > if no delays are used in the original VHDL. > > Would it make sense to only trigger the iverilog warning if > a delay specification is encountered? I think that is indeed the case: Icarus Verilog only starts warning after it sees the first `timescale directive. - -- 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." -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFJovOMrPt1Sc2b3ikRAk6UAJ4yxgVtD3tgjx05QF6V6mgB7YAbNwCfetKk z1ktRPkQACgeP1nJFsJ+2ls= =UaC1 -----END PGP SIGNATURE----- |