Forum Discussion

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

Integrating a custom component in SOPC [+IRQ]

Hello i made a custom component and integrated it on SOPC, my problem is the IRQ signal... i am using Linux in my NIOS2 and i need to make a device driver to control my custom component, however i have no control signals like :

-enable_irq

-irq_reg signal to clear when a irq happens and etc.

The PIO has more signals than the IRQ Avalon interface...

When i export my IRQ as a conduit in my custom component and then import it as an input std_logic port /PIO to the NIOS2 i have all these control registers...

any suggestions?

12 Replies

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

    Guys, one question..

    I need to use the alt_irq_resgister to control the interrupts in my project?

    If I use it, the interrupt will be treated exactly when it happen or when the code executes the alt_irq_register instruction?

    Ps: I need integrate a interrupt handler in my code that allows attend the interrupt when it happens.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    once you register your handler with alt_irq_register, it will be called as soon as the interrupt fires, except if the interrupts are masked.