element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet & Tria Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
MicroZed Hardware Design PL to PS Interrupt
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Avnet Boards Forums to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 7 replies
  • Subscribers 342 subscribers
  • Views 2089 views
  • Users 0 members are here
Related

PL to PS Interrupt

raymadigan
raymadigan over 9 years ago

I am trying to implement simple PL to PS interrupt using the IRQ_F2P line on the Zynq.   I have an AXI Lite component that exports a pin with single pin interface as interrupt.  I can watch it go high in an ILA for a single clock cycle when I want the interrupt to run.

 

On the PS I have the following code:

#define INTC_DEVICE_ID XPAR_SCUGIC_0_DEVICE_ID
 
  ////#define XPS_FPGA0_INT_ID 61U from xparameters.h
#define INTC_DEVICE_INT_ID XPS_FPGA0_INT_ID
 
  Status = XScuGic_Connect(&InterruptController, INTC_DEVICE_INT_ID,
                                                   (Xil_ExceptionHandler)DeviceDriverHandler,
                                                   (void *)&InterruptController);
   
  // If I simulate the interrupt without pulling the interrupt pin high it seems to work
 
   Status = XScuGic_SoftwareIntr(&InterruptController,
 
                                                           INTC_DEVICE_INT_ID,
 
                                                           XSCUGIC_SPI_CPU0_MASK);
 
    
 
   But it doesn't work with the real interrupt.  This is supposed to be easy, is there something I didn't do?  
 
   I can show all of the code, it is basically the example from he ScuGic example in the SDK.
 
    
 
   Thanks
  • Sign in to reply
  • Cancel
Parents
  • raymadigan
    0 raymadigan over 9 years ago

    Josh,

    Thanks for your response.  I found the Auto Infer Interface yesterday so I went back to make sure I didn't mess that up.  This pin is listed in the Ports and Interface section as an expandable element.  In the interface mode it has master and nothing else is marked.  When I expand it the pin has direction out and type name is std_logic.

    In the IP I have two of these pins, nothing is connected to the second but it is exactly the same.  I had this connected to a concat but it didn't work and to try to see why I disconnected it.  I am in the process of totally removing it to make it easier to see what is going wrong.

    To do the PS side I copied the code from the xilinx sdk examples and what they had is nearly the same as the speedway workshop.   The only difference is a call to Xil_ExceptionInit(); before XIL_ExceptionRegisterHandler(...);  

     

    One difference is that the IP that I am using to generate the interrupt is an AXI Lite IP That I use to transfer small data chunks between the PS and the PL.  I want to use the interrupts to signal when data is ready so the PS doesn't have to poll.

     

    My next step is to build a small version that only does what I need that is isolated from the rest of my application to help isolate the issue.  

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • raymadigan
    0 raymadigan over 9 years ago

    Josh,

    Thanks for your response.  I found the Auto Infer Interface yesterday so I went back to make sure I didn't mess that up.  This pin is listed in the Ports and Interface section as an expandable element.  In the interface mode it has master and nothing else is marked.  When I expand it the pin has direction out and type name is std_logic.

    In the IP I have two of these pins, nothing is connected to the second but it is exactly the same.  I had this connected to a concat but it didn't work and to try to see why I disconnected it.  I am in the process of totally removing it to make it easier to see what is going wrong.

    To do the PS side I copied the code from the xilinx sdk examples and what they had is nearly the same as the speedway workshop.   The only difference is a call to Xil_ExceptionInit(); before XIL_ExceptionRegisterHandler(...);  

     

    One difference is that the IP that I am using to generate the interrupt is an AXI Lite IP That I use to transfer small data chunks between the PS and the PL.  I want to use the interrupts to signal when data is ready so the PS doesn't have to poll.

     

    My next step is to build a small version that only does what I need that is isolated from the rest of my application to help isolate the issue.  

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube