Forum Discussion
keegandent
New Contributor
2 years agoError (10742): Verilog HDL error: constant expression cannot contain a hierarchical identifier
It seems this issue may not have been resolved, at least not in a way that applies to SystemVerilog `interface` objects. This is a toy example, but I can provide Quartus project upon request. I am u...
RichardT_altera
Super Contributor
1 year agoHi,
Do you able to share the project?
Regards,
Richard Tan
- keegandent1 year ago
New Contributor
I have attached a Quartus archive of an example project. You should be able to see it creates the error message:
Error (10742): Verilog HDL error at axis_thrower.sv(6): constant expression cannot contain a hierarchical identifierThis should not be the case. With both Vivado and Verilator, the expression is allowed because their compilers deduce what is obviously constant at compile-time. Without support for this feature, interfaces are largely useless as their associated metadata has to be passed via separate channels regardless.