#895 iverilog segfaults instead of reporting syntax error.

devel
closed-fixed
5
2012-06-16
2012-06-11
Anonymous
No

iverilog segmentation fault instead of reporting syntax error

compiled using :
xxx$ iverilog -o d_ff d_ff.vl
sh: line 1: 27745 Done /usr/local/lib/ivl/ivlpp -L -F"/var/folders/9h/sdnvs3wx4zggk7f0z_7d0lr40000gn/T//ivrlg21bcad0f9" -f"/var/folders/9h/sdnvs3wx4zggk7f0z_7d0lr40000gn/T//ivrlg1bcad0f9" -p"/var/folders/9h/sdnvs3wx4zggk7f0z_7d0lr40000gn/T//ivrli1bcad0f9"
27746 Segmentation fault: 11 | /usr/local/lib/ivl/ivl -C"/var/folders/9h/sdnvs3wx4zggk7f0z_7d0lr40000gn/T//ivrlh1bcad0f9" -C"/usr/local/lib/ivl/vvp.conf" --

k$ iverilog -v
Icarus Verilog version 0.10.0 (devel) (s20120501)
k$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.7.3
BuildVersion: 11D50d

-

module d_ff( d, clk, q, q_bar);
input d, clk;
output q, q_bar;
reg q;
reg q_bar;

always @ (posedge clk)
begin
q <= d;
q_bar <= !d;
case (q)
42 : begin
$display("The answer to the universe ...." ); ;
end
default : $display(" Literary genious ");
endcase
end
endmodule

Discussion

  • Cary R.

    Cary R. - 2012-06-11

    I have confirmed that the two semicolons at the end of the first $display line are causing the latest development to crash. We need to verify that this is indeed an error and either report a message or ignore the null statement.

     
  • Cary R.

    Cary R. - 2012-06-11
    • milestone: --> devel
     
  • Martin Whitaker

    Martin Whitaker - 2012-06-11

    Null statements are not allowed in traditional Verilog, but are allowed in SystemVerilog.

     
  • Martin Whitaker

    Martin Whitaker - 2012-06-16
    • assigned_to: nobody --> martinwhitaker
     
  • Martin Whitaker

    Martin Whitaker - 2012-06-16

    I've submitted a patch to fix this on the patch tracker.

     
  • Martin Whitaker

    Martin Whitaker - 2012-06-16
    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks