Forum Discussion

alexislms's avatar
alexislms
Icon for Contributor rankContributor
3 years ago
Solved

Quartus Pro 22.2: enum logic vs logic : Error(16983): arrays have different elements

module tb;
  enum logic [7:0] {A, B, C} fsm [4];
  logic [7:0] state [4];
  assign state = fsm;
endmodule

Never had an issue with Vivado and never had an issue with Modelsim: https://www.edaplayground.com/x/S3Va

With Quartus Pro 22.2, I get Error(16983): arrays have different elements

I believe this should be allowed by the specs.

Regards,

  • Yes, there is a plan to fix this but it may takes time and I do not have the exact detail on when it will be fix. As this is subject to change.


11 Replies

  • Yes, there is a plan to fix this but it may takes time and I do not have the exact detail on when it will be fix. As this is subject to change.


  • Fyi, the engineering team is working on this.

    Please do expect that any work involves engineering may takes some time depending on the issue complexity.


    Best Regards,

    Richard Tan


  • A workaround suggested by the engineering team is to change RTL a little bit.

    By changing the assignment of unpacked type to bit by bit instead of complete.


    for the given design example


    module tb;

    enum logic [7:0] {A, B, C} fsm [4];

    logic [7:0] state [4];

    assign state[0] = fsm[0];

    assign state[1] = fsm[1];

    assign state[2] = fsm[2];

    assign state[3] = fsm[3];

    //assign state = fsm;

    endmodule


    The engineering team will check with the tool vendor on fixing this issue.


    • alexislms's avatar
      alexislms
      Icon for Contributor rankContributor

      Can we expect this to be fixed in a new release?

  • With that, I will now transition this thread to community support. If you have a new question, feel free to open a new thread to get the support from Intel experts. Otherwise, the community users will continue to help you on this thread. Thank you.

    Best Regards,

    Richard Tan

    p/s: If any answer from the community or Intel Support are helpful, please feel free to give best answer or rate 9/10 survey.