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) Definitiondivide.inc in the <Quartus® Prime installation directory>\libraries\megafunctions directory.
FUNCTION DIVIDE
( numerator[WIDTH_N-1..0], denominator[WIDTH_D-1..0],
clock, aclr, clk_en
)
WITH (
WIDTH_N, WIDTH_D, WIDTH_Q, WIDTH_R,
WIDTH_D_MIN, LPM_PIPELINE, PIPELINE_DELAY, MAXIMIZE_SPEED
)
RETURNS ( quotient[WIDTH_Q-1..0], remainder[WIDTH_R-1..0] );