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_ff.inc in the < Quartus® Prime installation directory>\libraries\megafunctions directory.
FUNCTION lpm_ff (data[LPM_WIDTH-1..0], clock, enable,
sclr, sset, sload,
aclr, aset, aload)
WITH (LPM_WIDTH, LPM_AVALUE, LPM_SVALUE, LPM_FFTYPE)
RETURNS(q[LPM_WIDTH-1..0]);