AHDL Function Prototype (port name and order also apply to Verilog HDL)
The following AHDL function prototype is located in the AHDL Include File (.inc) Definitionlpm_constant.inc in the <Quartus II installation directory>\libraries\megafunctions directory.
FUNCTION lpm_constant () WITH (LPM_WIDTH, LPM_CVALUE) RETURNS (result[LPM_WIDTH-1..0]);