Services - tools - models - for embedded software development
Embecosm divider strip
Prev  Next

5.2.  Putting the System Together

5.2.1. sc_main

The top level of the SystemC model, corresponding to orpsoc_bench.v is found in OrpsocMain.cpp. This defines the SystemC sc_main function.

This includes the header file OrpsocMain.h, which has the system wide definitions, and corresponds to the Verilog definitions in orpsoc_defines.h.

The headers for all the classes that will be used must also be included:

#include "OrpsocMain.h"

#include "Vorpsoc_fpga_top.h"
#include "OrpsocAccess.h"
#include "TraceSC.h"
#include "ResetSC.h"
#include "Or1200MonitorSC.h"
      
Embecosm divider strip