When routing to the FPGA side, each port should be connected as shown below.
Here is an example of a one-to-one connection between an SPI master and an SPI slave.
.hps_0_spim0_txd (hps_spim0_txd ), // mosi
.hps_0_spim0_rxd (hps_spim0_rxd ), // miso
.hps_0_spim0_ss_in_n (1'b1 ), // ss_in_n Used in multi-master systems. For Motorola SPI, default to "1"
.hps_0_spim0_ssi_oe_n (1'b0 ), // ssi_oe_n Always output for one-to-one connection.
.hps_0_spim0_ss_0_n (hps_spim0_ss0 ), // ss_0_n
.hps_0_spim0_ss_1_n ( ), // ss_1_n
.hps_0_spim0_ss_2_n ( ), // ss_2_n
.hps_0_spim0_ss_3_n ( ), // ss_ 3_n
.hps_0_spim0_sclk_out_clk (hps_spim0_sclk), // sclk
For more information on each port, please refer to the "SPI Controller" chapter in the "Cyclone V Hard Processor System Technical Reference Manual".
https://www.intel.com/content/www/us/en/ programmable/documentation/sfo1410143707420.html
For SPI connection, please also refer to the following Example:
https://www.intel.com/content/dam/altera-www/global/en_US/others/support/examples/soc/Altera-SoCFPGA -HardwareLib-SPI-CV-GNU.tar.gz
--------------------
Category-: SoC
Tools: Quartus® Prime
Device: Cyclone® V