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

FUNCTION altufm_i2c (

        a0,

        a1,

        a2,

        wp

)

WITH (

        ACCESS_MODE,

        ERASE_METHOD,

        ERASE_TIME,

        FIXED_DEVICE_ADD,

        LPM_FILE,

        MEM_ADD_ERASE0,

        MEM_ADD_ERASE1,

        MEM_PROTECT,

        MEMORY_SIZE,

        OSC_FREQUENCY,

        PAGE_WRITE_SIZE,

        PROGRAM_TIME,

        WRITE_MODE

)

RETURNS (

        osc,

        scl,

        sda

);