Forum Discussion
Altera_Forum
Honored Contributor
10 years agoQuartus reports:can't pass value from actual to argument xxx.
Consider the following code:
interface test_if# (
parameter BITW = 16
);
logic sigs;
endinterface
package test_pkg;
function automatic int test_calc(int bitw);
return bitw ...
Altera_Forum
Honored Contributor
10 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