Forum Discussion
Altera_Forum
Honored Contributor
9 years agoDelving into the LRM a bit further, I'm not sure it is actually legal code to assign anything other than a constant to a parameter or localparam definition. Having said that, the hierarchical reference does resolve to a constant in the end.
I do also get this warning in Quartus: "Warning(16820): Verilog HDL warning at signedmultiply.v(526): constant expression cannot contain a hierarchical identifier " I'm not sure if this means it is illegal or "we don't support that", since Modelsim obviously does so.