November 2011 Altera Corporation Cyclone V Hard IP for PCI Express
10. Interrupts
This chapter describes interrupts for the following configurations:
■ Interrupts for Endpoints
■ Interrupts for Root Ports
Refer to “Interrupts for Endpoints” on page 5–17 and “Interrupts for Root Ports” on
page 5–18 for descriptions of the interrupt signals.
Interrupts for Endpoints
The Cyclone V Hard IP for PCI Express provides support for PCI Express legacy
interrupts, MSI, and MSI-X interrupts when configured in Endpoint mode. The MSI,
MSI-X, and legacy interrupts are mutually exclusive. After power up, the Hard IP block
starts in INTX mode, after which time software decides whether to switch to MSI
mode by programming the
msi_enable
bit of the
MSI message control
register
(bit[16] of 0x050) to 1 or to MSI-X mode if you turn on Implement MSI-X under the
PCI Express/PCI Capabilities tab using the parameter editor. If you turn on the
Implement MSI-X option, you should implement the MSI-X table structures at the
memory space pointed to by the BARs.
f Refer to section 6.1 of PCI Express 2.1 Base Specification for a general description of PCI
Express interrupt support for Endpoints.
MSI Interrupts
MSI interrupts are signaled on the PCI Express link using a single dword memory
write TLPs generated internally by the Cyclone V Hard IP for PCI Express. The
app_msi_req
input port controls MSI interrupt generation. When the input port
asserts
app_msi_req
, it causes a MSI posted write TLP to be generated based on the
MSI configuration register values and the
app_msi_tc
and
app_msi_num
input ports.
Software uses configuration requests to program the MSI registers. To enable MSI
interrupts, software must first set the
MSI
enable
bit (Table 5–15 on page 5–27) and
then disable legacy interrupts by setting the
Interrupt Disable
(Table 6–2 on
page 6–2) bit.
Figure 10–1 illustrates the architecture of the MSI handler block.
Figure 10–1. MSI Handler Block
MSI Handler
Block
app_msi_req
app_msi_ack
app_msi_tc
app_msi_num
pex_msi_num
app_int_sts
cfg_msicsr[15:0]
November 2011
1101