Forum Discussion
Altera_Forum
Honored Contributor
9 years agoHello,
It also gives another error : Error (10192): Verilog HDL Defparam Statement error at analysis.sv(17): value for parameter "bitw_ofcalc" must be constant expression. And solution lies in this. To solve this you can use : localparam int bitw_ofcalc = test_pkg::test_calc(BITW); It would give you your expected result. Thanks, Bhaumik