|
From: Stephen W. <st...@ic...> - 2008-04-30 00:04:08
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Larry Doolittle wrote:
| Steve -
|
| On Tue, Apr 29, 2008 at 04:27:36PM -0700, Stephen Williams wrote:
|> I'm thinking that it's not a bad time right now to integrate the
|> contributed va_math library into the Icarus Verilog git distribution.
|
| And also, therefore, upcoming development snapshots.
And also*2, when Verilog-AMS extensions are enabled, the code
generator can implicitly generate calls to these functions when
the true-AMS syntax is encountered in non-analog code. The functions
in the library are system-function versions of built-in functions
in Verilog-A[MS].
|> Option #2 has the advantage that system.vpi and va_math.vpi are
|> kept lighter weight. Name space pollution is also reduced. The
|> disadvantage is that the user has to use the -mXXX flags to load
|> the va_math library. (That's not unlike the "-lm" flag that C
|> programmers sometimes have to remember.)
|
| I value unpolluted standards-based name spaces. This looks
| like a reasonable choice.
The above can still work with Option #2 by having the compiler
implicitly include va_math.{sft,vpi} when Verilog-A extensions
are enabled, thus getting it some of the advantages of #1.
Hmm.. I think I just figured out that Option #1 can be implemented
by Option #2. Maybe that dictates the answer?
- --
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
iD8DBQFIF7d7rPt1Sc2b3ikRAs8rAKCTevybosaCvyn8/nM02jQi4T0d0QCfb4nu
vyWAHm04F4922RjLdRnHUnI=
=bbLw
-----END PGP SIGNATURE-----
|