Services and Modeling for Embedded Software Development
Embecosm divider strip
Prev  Next

10.2.1.  Adding Interrupt Generation Functions to the Or1ksim Library

The additional function allows the external SystemC model to call into the Or1ksim ISS to request an interrupt. The ISS requires that interrupts are not taken mid-instruction (for example while a peripheral memory access upcall is in progress), so a flag is set internally, allowing the ISS to trigger the interrupt at the start of the next instruction.

The standard version of Or1ksim uses edge triggered interrupts, and they are used in this example. However Or1ksim can support level triggered interrupts. For this additional interface functions are provided, although they are not used in this example.

These functions are a standard part of the Or1ksim 0.3.0 and Or1ksim 0.4.0 libraries.

Embecosm divider strip