From: Martin W. <ic...@ma...> - 2020-06-16 20:55:38
|
On 15/06/2020 14:43, bo...@el... wrote: > Probably my question was not clear. I meant to put the Verilog > language generation selection into a cmd file like: > > ==== llbbc_reg.cmd ==== > +libdir+. > +libdir+../avr_if > +libext+.v > -g2012 > llbbc_reg_tb.v > > and call it like "iverilog -c llbbc_reg.cmd" > This results in >> iverilog -c llbbc_reg.cmd > Error: unable to parse line 4 in llbbc_reg.cmd. > iverilog: parsing failed in base command file llbbc_reg.cmd. > > Only by omitting the -g line in the command line and calling > "iverilog -c llbbc_reg.cmd -g2012" iverilog compiles. > > My question was: Is there any syntax to put things like the "-g2012" > argument in the command file, so I do not have to specify it on the > command line? No, the "-g" options aren't supported. The "Command Files" section in the iverilog man page lists what can be done. |