#909 Enumeration type mismatch

devel
closed-fixed
Cary R.
5
2012-10-11
2012-10-10
Anonymous
No

Attempting to assign one enum reg to another of the same type gives the following error:

fsm_spi_control.sv:35: error: Enumeration type mismatch in assignment.
1 error(s) during elaboration.

Discussion


  • Anonymous
    2012-10-10

     
    Attachments
  • Cary R.
    Cary R.
    2012-10-11

    This does look like a problem in the blocking assignment code, but you really should be using a non-blocking assignment (<=) at that location and a non-blocking assignment does appear to work as expected.

     
  • Cary R.
    Cary R.
    2012-10-11

    I have pushed a patch that fixes this problem in development.

     
  • Cary R.
    Cary R.
    2012-10-11

    • assigned_to: nobody --> caryr
    • status: open --> closed-fixed