Menu

#1005 SystemVerilog queue in class is not supported

devel
open
nobody
None
5
2016-07-11
2016-05-08
No

The attached test program which contains a queue in a class causes a segfault in the compiler:

$HOME/icarus/bin/iverilog -g2012 queuetest.sv
:0: error: Range expressions must be constant.
:0 : This MSB expression violates the rule: null
sh: line 1: 2470 Done /home/ehliar/icarus/lib/ivl/ivlpp -L -F"/tmp/ivrlg27a7b1a67" -f"/tmp/ivrlg7a7b1a67" -p"/tmp/ivrli7a7b1a67"
2471 Segmentation fault (core dumped) | /home/ehliar/icarus/lib/ivl/ivl -C"/tmp/ivrlh7a7b1a67" -C"/home/ehliar/icarus/lib/ivl/vvp.conf" -- -

1 Attachments

Discussion

  • Martin Whitaker

    Martin Whitaker - 2016-07-11

    Icarus does not currently support SV queues inside classes. I had a look at adding support for this, but it requires more work than I currently have time for. As a temporary measure, I've updated both the development and v10 branches to output a "sorry" message and avoid the segfault.

    I've added br1005.v to the test suite, which provides a basic test for this functionality when someone gets round to implementing it.

     
  • Martin Whitaker

    Martin Whitaker - 2016-07-11
    • summary: SystemVerilog queue in class segfault --> SystemVerilog queue in class is not supported
     

Log in to post a comment.