Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
11 years ago

Adding interrupts toa new QSys component

I created a new QSys component, and I'd like to customize how it appears in the device tree.

I've already found how to change the vendor, compatible, and group fields.

But this part is connected to an HPS interrupt, and I'd like to be able to have QSys generate this information in the device tree.

I think I want to end up adding these lines to the device tree:

interrupts = < 0 40 1 >;

interrupt-parent = <&intc>;

and so I tried adding these lines to my QSys hw.tcl file to get there:

set_module_assignment embeddedsw.dts.type.raw.interrupts {<0 40 1>}

set_module_assignment embeddedsw.dts.type.raw.interrupt-parent {<&intc>}

But this doesn't seem to be working. Is there another way to specify interrupts so that the device tree generated form the sopcinfo file will pick it up?

Thank you!

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I figured it out -- I had added my IRQ as a separate Interrupt Sender block in QSys.

    What I needed to do was get rid of that block and instead add an Interrupt Sender to my custom component, which connects to an exported signal to get the interrupt from my existing logic.

    Once I did that, QSys automatically figured out that the component was connected to an interrupt and populated the Device Tree accordingly....