The test configuration was shown earlier in Figure 3.1. For this a simple logger is needed, which must implement a TLM 2.0 simple target socket.
In addition, a simple embedded application is needed to run on the Or1ksim ISS, which will make reads and writes to peripheral address space, which can be detected by the logger.
All the behavior is in the callback function—there are no SystemC
threads. This means the logger will be suitable for testing the
Or1ksimSC
wrapper module, even though its thread
never yields (see Section 4.3.5).
The code for the logger module (LoggerSC.cpp
and
LoggerSC.h
) and the main program
(loggerMainSC.cpp
may be found with the Or1ksim
wrapper code in the sysc-models/logger
directory of
the distribution.