Skip to content

PL to PS ISR #222

Answered by Kgfu
vic9112 asked this question in Q&A
May 22, 2024 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

Hi Vic,
You can't add a new ISR directly in python code.
PYNQ have a guide to introduce how to handle the interrupt which came from PL in PS python code:
https://pynq.readthedocs.io/en/latest/pynq_libraries/interrupt.html
To achieve your requirement, the procedure may need:

  1. Add AXI Interrupt Controller in FPGA block design
  2. The mailbox (MB) must provide a interrupt pin and connect to the AXI Interrupt Controller
  3. Connect the irq of Interrupt Controller to IRQ_F2P[0:0] in PS CPU
    Note: Must make sure the property of controller is configured correctly according the guide. Example: Set Interrupt type from Level to Edge.
  4. Porting JupyerNotebook Python code to import asyncio library, you should g…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@vic9112
Comment options

Answer selected by vic9112
Comment options

You must be logged in to vote
1 reply
@vic9112
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants