Quartus Pro 22.2: enum logic vs logic : Error(16983): arrays have different elements - 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,
Replies:
Re: Quartus Pro 22.2: enum logic vs logic : Error(16983): arrays have different elements
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.
Replies:
Re: Quartus Pro 22.2: enum logic vs logic : Error(16983): arrays have different elements
Thank you, please feel free to close the case.
Replies:
Re: Quartus Pro 22.2: enum logic vs logic : Error(16983): arrays have different elements
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.
Replies:
Re: Quartus Pro 22.2: enum logic vs logic : Error(16983): arrays have different elements
Can we expect this to be fixed in a new release?
Replies:
Re: Quartus Pro 22.2: enum logic vs logic : Error(16983): arrays have different elements
Do you able to escape the error based on the last email that I sent?
Replies:
Re: Quartus Pro 22.2: enum logic vs logic : Error(16983): arrays have different elements
@RichardTanSY_Altera Thank you for the follow-up. The workaround defeats the purpose of these data types, we will wait for the fix. Regards,
Replies:
Re: Quartus Pro 22.2: enum logic vs logic : Error(16983): arrays have different elements
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.
Replies:
Re: Quartus Pro 22.2: enum logic vs logic : Error(16983): arrays have different elements
Not only, we mainly use it in our synthesizable code.
Replies:
Re: Quartus Pro 22.2: enum logic vs logic : Error(16983): arrays have different elements
May I know are these code for testbench usage?
Replies:
Re: Quartus Pro 22.2: enum logic vs logic : Error(16983): arrays have different elements
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
Replies:
Re: Quartus Pro 22.2: enum logic vs logic : Error(16983): arrays have different elements
Let me check this with the engineering team. - 2022-06-28
external_document