Forum Discussion

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

Qsys and interrupts over more then 1 module to Nios II

Hey,

has anybody done this before? Transfer Interrupts over moduls to Nios?

I have 1 Nios System Modul with some functions (timers, jtag, uart, usb, sdram) which i have added to my Top Level Setting in Qsys. And there i try to get an interrupt to the nios so that system.h shows the correct IRQ Number...

All normal interrupts within Basic Nios are recognized, but the external one from timer3 gets an IRQ Number of "-1" and so doesn't work...

I put in some pictures of the system...

In "Qsys Interconnect" is a chapter just over this and i tried it (also, not like in the pictures) with the irq bridge and the merlin irq mapper, but than none of the IRQs is recognized by the Nios...

thx in advance,

Haqim.

10 Replies

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

    I am facing the same problem. Is this a bug?

    I am using the IRQ bridge and also the Merlin IRQ mapper according to figure 7-26 in the Qsys interconnect chapter.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Yeah, it is a bug.

    Altera now knows it and i hope they fix it with 11.1 ...
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi Haqim ,

    Do you know if there is a workaround in the meanwhile? Or is it now impossible to create hierarchical qsys designs with IRQ boundaries?

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

    I found no workaround till today - and i tried many things, incl. writing own interrupt components and stuff like that...

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

    Hmmm... then it seems that the only solution for now is to get all of the components that generate interrupts out of the subsystem containing the Nios and then export the interrupt input of the NIOS.

    Not very convenient.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    ähm - not sure if you're right

    right now the only solution is to have all components generating an interrupt to have in the same modul as the nios is in - it is just not possible to transfer interrupts between qsys moduls ....
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi Haqim,

    You're right. Altera responded that it is a bug.

    Did you ever tried the Vectored Interrupt controller with qsys? I am having similar problems with the software build tools (without using hierarchy)

    regards