C
Ciaran
Guest
Hi all,
I have designed a user peripheral to connect via an OPB Bus to a
MicroBlaze processor. Also, an interrupt controller is connected to
the OPB Bus. My user peripheral generates two interrupts, which
connect to the interrupt controller. The interrupt controller irq then
connects to the MicroBlaze interrupt input.
My problem arises when I run libgen. It returns an error
ERROR:MDT - system.mss:42 - Property interrupt_handler is not found
I understand that this happens when I use the generic driver for the
user peripheral. But how do I define a driver that has 2 interrupt
outputs? What would the .mdd file look like? I can do this for one
that drives a single interrupt output
e.g.
:
:
BEGIN ARRAY interrupt_handler
PROPERTY desc = "Interrupt Handler Information";
PROPERTY size = 1, permit = none;
PARAM name = int_handler, default = XIntc_DefaultHandler, desc =
"Name of Interrupt Handler", type = string;
PARAM name = int_port, default = Interrupt, desc = "Interrupt pin
associated with the interrupt handler", permit = none;
END ARRAY
:
:
is in the .mdd file for the peripheral that drives a single interrupt.
Thanks for your help
Ciarán
I have designed a user peripheral to connect via an OPB Bus to a
MicroBlaze processor. Also, an interrupt controller is connected to
the OPB Bus. My user peripheral generates two interrupts, which
connect to the interrupt controller. The interrupt controller irq then
connects to the MicroBlaze interrupt input.
My problem arises when I run libgen. It returns an error
ERROR:MDT - system.mss:42 - Property interrupt_handler is not found
I understand that this happens when I use the generic driver for the
user peripheral. But how do I define a driver that has 2 interrupt
outputs? What would the .mdd file look like? I can do this for one
that drives a single interrupt output
e.g.
:
:
BEGIN ARRAY interrupt_handler
PROPERTY desc = "Interrupt Handler Information";
PROPERTY size = 1, permit = none;
PARAM name = int_handler, default = XIntc_DefaultHandler, desc =
"Name of Interrupt Handler", type = string;
PARAM name = int_port, default = Interrupt, desc = "Interrupt pin
associated with the interrupt handler", permit = none;
END ARRAY
:
:
is in the .mdd file for the peripheral that drives a single interrupt.
Thanks for your help
Ciarán