Visible to Intel only — GUID: xhg1490746721426
Ixiasoft
Visible to Intel only — GUID: xhg1490746721426
Ixiasoft
A. Initialization Sequence
This appendix describes the most basic initialization sequence for a RapidIO system that contains two RapidIO IP cores connected through their RapidIO interfaces.
- Read the Port 0 Error and Status (ERRSTAT) Command and Status register (CSR) (0x00158) of the first RapidIO IP core to confirm port initialization.
- Set the following registers in the first RapidIO IP core:
- To set the base ID of the device to 0x01, set the DEVICE_ID field (bits 23:16) or the LARGE_DEVICE_ID field (bits 15:0) of the Base Device ID register (0x00060) to 0x1.
- To allow request packets to be issued, write 1 to the ENA field (bit 30) of the Port General Control CSR (0x13C).
- To set the destination ID of outgoing maintenance request packets to 0x02, set the DESTINATION_ID field (bits 23:16) or the combined {LARGE_DESTINATION_ID (MSB), DESTINATION_ID} fields (bits 31:16) of the Tx Maintenance Window 0 Control register (0x1010C) to 0x02.
- To enable an all-encompassing address mapping window for the maintenance module, write 1’b1 to the WEN field (bit 2) of the Tx Maintenance Window 0 Mask register (0x10104).
- Set the following registers in the second RapidIO IP core:
- To set the base ID of the device to 0x02, set the DEVICE_ID field (bits 23:16) or the LARGE_DEVICE_ID field (bits 15:0) of the Base Device ID register (0x00060) to 0x02.
- To allow request packets to be issued, write 1’b1 to the ENA field (bit 30) of the Port General Control CSR (0x13C).
- To set the destination ID of outgoing maintenance packets to 0x0, set the DESTINATION_ID field (bits 23:16) or the combined {LARGE_DESTINATION_ID (MSB), DESTINATION_ID} fields (bits 31:16) of the Tx Maintenance Window 0 Control register (0x1010C) to 0x0.
- To enable an all-encompassing address mapping window for the maintenance module, write 1’b1 to the WEN field (bit 2) of the Tx Maintenance Window 0 Mask register (0x10104).
These register settings allow one RapidIO IP core to remotely access the other RapidIO IP core.
To access the registers, the system requires an Avalon® -MM master, for example a Nios II processor. The Avalon® -MM master can program these registers.
You can use the Platform Designer (Standard) system integration tool, available with the Intel® Quartus® Prime software, to rapidly and easily build and evaluate your RapidIO system.
For more information about initializing a RapidIO system, refer to Fuller, Sam. 2005. RapidIO: The Embedded System Interconnect. John Wiley & Sons, Ltd., Chapter 10 RapidIO Bringup and Initialization Programming.