The main thread, run
, invokes the Or1ksim
ISS to run for ever (by passing a negative time argument). The ISS
will use the upcalls (see Section 4.2.6) to request
reads from and writes to the peripheral address space.
The thread is called automatically when the SystemC kernel has completed elaboration (i.e. is initialized).
void Or1ksimSC::run() { scLastUpTime = sc_core::sc_time_stamp(); or1kLastUpTime = or1ksim_time(); (void)or1ksim_run( -1.0 ); } // Or1ksimSC()