Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
15469 Discussions

Quatrus recognizes localparam struct field referencing as a hierarchical identifier referencing

SKaza4
Novice
1,113 Views
typedef struct { int unsigned size_of_smth; etc. etc.; } param_t;   localparam param_t PARAMS = `{ size_of_smth : 4, etc : .... };   typedef logic [PARAMS.size_of_smth - 1 : 0] smth;  

Quartus shows the following error:

Error (10742): Verilog HDL error at some_file.svh(12): constant expression cannot contain a hierarchical identifier

PARAMS.size_of_smth is a constant, so I think it should be supported

0 Kudos
9 Replies
MuhammadAr_U_Intel
284 Views
Hi, Can I know what version of Quartus are you using Standard or Pro Edition and which specific release 18.x ? Thanks, Arslan
SKaza4
Novice
284 Views

Hi,

I'm using two versions:

Quartus Prime Version 18.1.0 Build 625 09/12/2018 SJ Standard Edition

and

Quartus II 64-Bit Version 14.0.0 Build 200 06/17/2014 SJ Full Version

 

Both of them produce the same error

 

Thanks,

Siarhei

 

Hazlina_R_Intel
Moderator
284 Views

Hi,

I apologize for the overlook on this case. We had an internal transition issue and the engineer overlooked this case on his plate. May I know if your request still outstanding? I can then decide on the next course of action for this case. Thank you.

SKaza4
Novice
284 Views

Hi,

I found workaround. But I think this issue requires attention.

Thanks.

Hazlina_R_Intel
Moderator
284 Views

Thank you for letting me know. Would you mind explaining to me what the workaround was? I can use that information for the verification at my end before I submit a ticket to engineering for the bug fixing or enhancement.

Kenny_Tan
Moderator
284 Views

Hi,

 

can you provide two design.qar for us?

 

1) design.qar that can replicate the error

2) design.qar that had your workaround

 

Thanks,

SKaza4
Novice
284 Views

Hi,

This is a project with the error

SKaza4
Novice
284 Views

This is a project with my workaround

Kenny_Tan
Moderator
284 Views

Thanks for your input. I will feedback this to the engineering.

Reply