Allow a nesting of command files where the top command file can reference other command files and so forth.
Also, make the name of the switch programmable for the nested command files to aid in porting code to icarus.
So, for example, if the top level command file was mycommand.vf and it contained:
top.v
-f top.vf
-f dut.vf
-f global.vf
then the need is to configure icarus to know the -f switch is for other filelist files and recursively fetch them.
then icarus would be called like this:
iverilog -c mycommand.vf -(whatever you choose) f
I'm just lookin for a solution here to help porting existing code.
Logged In: YES
user_id=97566
Originator: NO
Better might be for Icarus Verilog to just pick and support a few common flags. The -f flag is an obvious choice. If the documentation for your other tools shows what flags it uses, then attach that information to this request.
Logged In: YES
user_id=1651735
Originator: NO
The attached patch adds this functionality and also enhances command file error messages. Per Steve's comments both the -c and the -f flag are supported, but arbitrary flag selection is not.
File Added: 0001-Command-files-can-nest-f-is-an-alias-for-c-and-be.patch
Patch file
Logged In: YES
user_id=1651735
Originator: NO
I forgot to say this is for the development version.