#606 Unary operator in index expression causes assertion failure

v0.9
closed-fixed
nobody
5
2009-01-03
2008-12-22
No

The following line of code

memory[~index] = 1;

gives rise to an assertion failure of the form

bug.v:9: assert: ../source/elab_expr.cc:3053: failed assertion expr_type_ != IVL_VT_NO_TYPE

This can be worked round by commenting out the assertion.

Test case attached. To run, simply

iverilog bug.v

Discussion

  • Martin Whitaker

    Martin Whitaker - 2008-12-22

    Test case

     
  • Ranny

    Ranny - 2008-12-30

    I have the same with my design.

     
  • Stephen Williams

    • status: open --> closed-fixed
     
  • Stephen Williams

    Fixed in git master.

     

Log in to post a comment.

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

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks