The main class is a standard SystemC module class derived from
sc_core::sc_module
.
class UartSC : public sc_core::sc_module {
The module has a customized constructor, specifying an input clock rate (which in the SoC example will be the SoC clock rate), and a flag to indicate the endianness of the model.
UartSC( sc_core::sc_module_name name, unsigned long int _clockRate, bool _isLittleEndian );