UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 56446

14.6 XPS/SDK - How can I add external interrupts to the GIC on Zynq devices?

Description

How can I add external interrupts to the GIC on Zynq devices in XPS?

Solution

To add an external interrupt in XPS, open the MHS file and add a port to the top level ports similar to the following:

  PORT interrupt = interrupt, SIGIS = INTERRUPT, SENSITIVITY = EDGE_RISING, DIR = I

Note: For more information on creating external ports, see Chapter 2 of the Platform Specification Guide:
 
http://www.xilinx.com/support/documentation/sw_manuals/xilinx14_5/psf_rm.pdf

Once this is done, open the Ports tab in the System Assembly view in XPS. 

From the Interrupt Controller drop-down, select processing_system7_0, and in the Connected Port Column, select L to H No Connection.

In the GUI, use the blue arrow to add interrupts to the Connected Interrupt(s):

Note: The interrupt added first will be connected to IRQ_F2P port 91, the second interrupt that is added will be IRQ_F2P port 90, etc.

Export to SDK.

For an example application that uses external interrupts on Zynq devices, see the attached interrupt_app.c file at the end of this answer record.

Attachments

Associated Attachments

Name File Size File Type
interrupt_app.c 3 KB C
AR# 56446
Date Created 06/17/2013
Last Updated 10/22/2014
Status Active
Type General Article
Devices
  • Zynq-7000
Tools
  • EDK - 14.5
  • EDK - 14.6