The main program for the model with JTAG interface is in
jtagSocSC.cpp
. It has a very similar structure to
the main program used with the interrupt enabled example in Section 10.4, but uses new versions of the Or1ksim
wrapper class and adds in the JTAG logger module to generate JTAG
debug port traffic.
JtagLoggerSC logger ("logger"); logger.jtag (iss.jtag);
The code for the SystemC main program for the SoC with JTAG debug
interface may be found in
sys-models/jtag-soc/jtagSocMainSC.cpp
in the
distribution.