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!

cancel
Showing results for 
Search instead for 
Did you mean: 
Observer s03311251
Observer
175 Views
Registered: ‎08-07-2019

PL design on SDK IP examples

I'm new to Xilinx development and I'm currently working the barebone driver for AXI IIC IP on ZCU102. There is an example in https://xilinx.github.io/embeddedsw.github.io/iic/doc/html/api/example.html, but are there corrosponding design on the PL side? I have tried to guess the design but the interrupt is not handled properly. Thank you.

Clipboard02.png
0 Kudos
4 Replies
Explorer
Explorer
148 Views
Registered: ‎03-17-2011

Re: PL design on SDK IP examples

@s03311251,

Have a look at this AR: https://www.xilinx.com/support/answers/50572.html

I'd get rid of the AXI Interrupt controller and directly connect the IIC IRQ pin to the zynq (for testing purposes anyway).

--Sebastien
0 Kudos
Moderator
Moderator
139 Views
Registered: ‎09-12-2007

Re: PL design on SDK IP examples

You have the output of the AXI Interrupt controller connected to the interrupt of the AXI I2C. If you wanted to use the interrupt controller (which in this case you dont as you would only need the axi interrupt controller here if yu needed more than 16 interrupts), then connect to the input intr port on the AXI Interript controller. (btw, all input ports are on the left, output ports on the right in IPI)

So, connect the AXI I2C to the Zynq irq directly. If you have more than one interrupt you can use a concat IP. There is also example code for the axi i2c here:

https://github.com/Xilinx/embeddedsw/tree/master/XilinxProcessorIPLib/drivers/iic/examples

 

you can reference the example for the gpio for testing the interrupt:

https://github.com/Xilinx/embeddedsw/tree/master/XilinxProcessorIPLib/drivers/gpio/examples

0 Kudos
Observer s03311251
Observer
129 Views
Registered: ‎08-07-2019

Re: PL design on SDK IP examples

The problem is that the example used Interupt Controller IP. If I connected the interrupt signal directly, I'll have to rewrite the code acoording to the AR mentioned by @sebo, right?

May I also ask if the interrupt is accessable from both APU and RPU?

0 Kudos
Moderator
Moderator
117 Views
Registered: ‎09-12-2007

Re: PL design on SDK IP examples

All driver example code will work with the axi interrupt controller, or the scugic (on the zynq PS)

 

intc.PNG

0 Kudos