Avalon interrupt source and interrupt sink bfms, Parameters, Application program interface – Altera Avalon Verification IP Suite User Manual
Page 21: Clear_irq(), Parameters –1 application program interface –1, Clear_irq() –1

May 2011
Altera Corporation
Avalon Verification IP Suite User Guide
3. Avalon Interrupt Source and
Interrupt Sink BFMs
The Avalon Verification IP Suite includes Avalon Interrupt Source and Avalon
Interrupt Sink BFMs for you to generate interrupt signals in your testbench.
1
The Avalon Interrupt Source and Sink BFMs are only supported in Qsys.
Parameters
lists the parameter settings for the interrupt signals.
Application Program Interface
This section describes the API for the Avalon Interrupt Source and Avalon Interrupt
Sink BFMs.
clear_irq()
Table 3–1. Avalon Interrupt Source and Avalon Interrupt Sink BFMs Parameter Settings
Option
Default Value
Legal Values
Description
Interrupt Source
Assert IRQ high
On
On/Off
Specifies the polarity of the interrupt source signal. Turn
on this option to change the name of the interrupt source
signal port from
irq
to
irq_n
.
IRQ width
1
1–32
Specifies the width of the interrupt source signal.
Asynchronous IRQ
Off
On/Off
Specifies whether the interrupt signal is asserted or
deasserted immediately after an API call or one clock cycle
after an API call. Turn on this option to allow changes to
the interrupt signal immediately after an API call or turn off
this option to allow changes to the interrupt signal on the
next clock edge.
Interrupt Sink
Assert IRQ high
On
On/Off
Specifies the polarity of the interrupt sink signal. Turn on
this option to change the name of the interrupt sink signal
port from
irq
to
irq_n
.
IRQ width
1
1–32
Specifies the width of the interrupt sink signal.
Prototype:
int clear_irq()
.
Arguments:
int interrupt_bit.
Returns:
void
.
Description:
Asserts the interrupt signal and sets the interrupt signal to 0, regardless of the value you
set for Assert IRQ high in the parameter editor.