From: <bo...@el...> - 2020-06-09 16:33:02
|
Hello, trying to instantiate a 2-dimensional array, systemverilog comes nice. However I have not found a way to request systemverilog from a cmd file. Do I miss soemthing or is that feature missing? Thanks for iverilog! -- Uwe Bonnes bo...@el... Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt --------- Tel. 06151 1623569 ------- Fax. 06151 1623305 --------- |
From: Cary R. <cy...@ya...> - 2020-06-09 18:19:44
|
Hi Uwe, Any of the following should work: -g2005-sv, -g2009, -g2012, -g2017 to tell iverilog to process the files as SystemVerilog using the appropriate keywords. We support both array declaration styles: logic mdarr [0:3][0:7];or logic mdarr [4][8]; I ran a quick test example and it works. I believe we do not currently support passing arrays as arguments, array patterns, array slices, etc., but the basic support is there. Cary On Tuesday, June 9, 2020, 9:33:36 AM PDT, <bo...@el...> wrote: Hello, trying to instantiate a 2-dimensional array, systemverilog comes nice. However I have not found a way to request systemverilog from a cmd file. Do I miss soemthing or is that feature missing? Thanks for iverilog! -- Uwe Bonnes bo...@el... Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt --------- Tel. 06151 1623569 ------- Fax. 06151 1623305 --------- _______________________________________________ Iverilog-devel mailing list Ive...@li... https://lists.sourceforge.net/lists/listinfo/iverilog-devel |
From: <bo...@el...> - 2020-06-15 13:44:02
|
Cary R. via Iverilog-devel writes: > Hi Uwe, > > Any of the following should work: -g2005-sv, -g2009, -g2012, -g2017 to tell > iverilog to process the files as SystemVerilog using the appropriate keywords. > > We support both array declaration styles: > > logic mdarr [0:3][0:7]; > or > logic mdarr [4][8]; > > I ran a quick test example and it works. I believe we do not currently support > passing arrays as arguments, array patterns, array slices, etc., but the basic > support is there. > Hi Carry, sorry for not getting back earlier, I has a long weekend ;-) 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? Bye -- Uwe Bonnes bo...@el... Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt --------- Tel. 06151 1623569 ------- Fax. 06151 1623305 --------- |
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. |
From: <bo...@el...> - 2020-06-17 09:33:47
|
Martin Whitaker writes: > No, the "-g" options aren't supported. The "Command Files" section in > the iverilog man page lists what can be done. Is there any reason that it can not be done beside not yet implemented? -- Uwe Bonnes bo...@el... Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt --------- Tel. 06151 1623569 ------- Fax. 06151 1623305 --------- |
From: Cary R. <cy...@ya...> - 2020-06-17 12:56:40
|
It should be possible and I was hoping to look at what was needed to implement this over the weekend. Cary On Wednesday, June 17, 2020, 2:34:30 AM PDT, <bo...@el...> wrote: Martin Whitaker writes: > No, the "-g" options aren't supported. The "Command Files" section in > the iverilog man page lists what can be done. Is there any reason that it can not be done beside not yet implemented? -- Uwe Bonnes bo...@el... Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt --------- Tel. 06151 1623569 ------- Fax. 06151 1623305 --------- _______________________________________________ Iverilog-devel mailing list Ive...@li... https://lists.sourceforge.net/lists/listinfo/iverilog-devel |
From: <bo...@el...> - 2020-06-17 13:40:56
|
Cary R. via Iverilog-devel writes: > It should be possible and I was hoping to look at what was needed to implement > this over the weekend. Hello Cary, the question was half an offer that I could look into it. However my incentive diminished as the problem was with an 2010 Spartan 6 design where I have to use ISE for implementation and ISE does not cope with arrays in the module headers. In the meantime I rewrote the code to use vectors and I no longer need the array functionality with the more recent verilog language versions. Bye -- Uwe Bonnes bo...@el... Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt --------- Tel. 06151 1623569 ------- Fax. 06151 1623305 --------- |