iverilog/driver
Stephen Williams 7b102b18fd Add function to define parameter from command line
This patch is based on one from "bruce <bruce1914@gmail.com>".
I've applied all but the elaboration code, which I rewrote to
properly work with the elaboration work queue. I also constrained
the implementation so that the parameter name must have exactly
two components: the root scope name and the parameter name. This
is necessary to keep the defparm processing sane. The comments
from bruce's original patch are as follows:
--
This patch would provide function to define parameter from command
line. This serves the same functionality as 'defparam' in Verilog
source code, but provide much more ease for using. Parameter
definition can be write in command file, with following syntax:

    +parameter+<scope>.<parameter>=<val>

*Do not apply any space between them*
The scope name should be full hierachical name with root name at
the begining. The following example would override test.T1 with
new value 2'b01:

    +parameter+test.T1=2'b01

'test' here is the root module name. The parameter value here
should be constant. Parameter definition can also be write in
the command line:

    iverilog -Ptest.T1=2'b01

This serves the same functionality with the previous example.
If we define the same parameter in command file and command line,
the one in command line would over-write all others.
2009-08-06 14:42:13 -07:00
..
Makefile.in Update mkinstalldirs to handle paths with spaces. 2009-02-04 08:44:22 -08:00
cflexor.lex Add function to define parameter from command line 2009-08-06 14:42:13 -07:00
cfparse.y Add function to define parameter from command line 2009-08-06 14:42:13 -07:00
cfparse_misc.h Fix memory leak when parsing command files. 2009-05-23 14:04:01 -07:00
globals.h Add function to define parameter from command line 2009-08-06 14:42:13 -07:00
iverilog.man Fix some keywords, add -g2001-noconfig and fix up uwire/wone. 2009-06-07 16:31:34 -07:00
main.c Add function to define parameter from command line 2009-08-06 14:42:13 -07:00
substit.c Fix various unsigned compare warnings. 2003-12-19 01:27:10 +00:00