
The new module class, UartIntrSC is
derived from the existing UartDecoupSC
module class, whose header, UartDecoupSC.h,
is included.
A custom constructor is declared, and a signal output port,
sc_out<bool> intr through which the
interrupt will be driven.
The new thread, intrThread is declared. It
will use re-implemented versions of the genIntr
and clrIntr functions from the base class,
UartSC.
A Boolean FIFO is used to hold the queue of requests from the
existing processes, rxMethod and
busThread.
sc_core::sc_fifo<bool> intrQueue;
The definition of the UART module class with interrupts,
UartIntrSC may be found in
sys-models/intr-soc/UartIntrSC.h in the
distribution.
