Forum Discussion

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

How to export Qsys interrupt connections

Hello, I am using Altera Cyclone V SoC and have system connected in Qsys.

I need some way to export interrupt connections in Qsys so that I can load it in when I build a driver to know mapping of interrupts without manually typing it in.

Thank you

2 Replies

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

    For NIOS, and I presume the same will be true for SoC stuff, I just exported the IRQ input just like any other conduit. Then connected all senders to it in the next block up.

    If you want to export it completely from Qsys, you can use an "IRQ Bridge" (in "Basic Functions\Bridges\Interrupt\" or something like that) which allows you to select the width of your conduit (how many interrupts), and then gives you an appropriate number of IRQ lines which you can connect and number in Qsys.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Thank you for the answer, but I think that you mean different kind of export

    I don't want to export actual wires and use it out of Qsys, I want to export from Qsys where are these wires connected.

    Eg. If I have component A and irq lane 0 and have irq 2, 3, 4 connected there I need to output some file which will have something like this:

    irq0,2 -> A,irq0

    irq0,3 -> A,irq1

    irq0,4 -> A,irq2

    I need to automatize this export so that when I change system in Qsys I will get file which I will parse to C header, DTS or whatever to get mapping into driver so that driver will know exectly where to expect interrupts from which device...