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_spi.inc in the <Quartus® Prime installation directory>\libraries\megafunctions directory.
FUNCTION altufm_spi ( ncs, sck, si ) WITH ( ACCESS_MODE, CONFIG_MODE, ERASE_TIME, LPM_FILE, OSC_FREQUENCY, PROGRAM_TIME, WIDTH_UFM_ADDRESS ) RETURNS ( osc, so );