Menu

#966 Arrays of events are unsupported

devel
open
nobody
None
5
2014-12-13
2014-12-13
No

Arrays of events are unsupported and generate syntax errors when compiled. I will attach a test case which compiles and runs correctly with ModelSim 10.3 but generates a syntax error with the latest build of Icarus Verilog.

Discussion

  • Martin Whitaker

    Martin Whitaker - 2014-12-13

    It looks like it will be a fair amount of work to support this, so for now I've updated the parser to print a "sorry" message, rather than reporting a syntax error.

     
  • Peter Johnson

    Peter Johnson - 2014-12-13

    Yeah, I was kind of surprised when I looked at the 1364-2005 standard regarding this. The indexing expression is not even required to be constant. I'm still wrapping my mind around the meaning of an always block that is waiting on an event and the event it is waiting on can change dynamically. It's like you need to implement a sensitivity list for the sensitivity list. I will look at making a weird testcase for modelsim to see if they really can handle this with non-constant expressions.

    On the bright side, the next bug I submitted should be an easy fix.

     

Log in to post a comment.