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) Definitionaltsquare.inc in the <Quartus® Prime installation directory>\libraries\megafunctions directory.

FUNCTION altsquare (

        aclr,

        clock,

        data[DATA_WIDTH-1..0],

        ena

)

WITH (

        DATA_WIDTH,

        PIPELINE,

        REPRESENTATION,

        RESULT_WIDTH

)

RETURNS (

        result[RESULT_WIDTH-1..0]

);