Implementing the Module as an sc_channel allows derived classes to provide
SystemC interfaces. Other SystemC modules can connect to these interfaces.
This meachanism can be used to control gem5 and acces gem5 components from
within arbitrary SystemC moduels. Since sc_channel is derived from
sc_module, this patch does not break compatibility with existing code.
Signed-off-by: Jason Lowe-Power <jason@lowepower.com>
* Steve Reinhardt
* Andrew Bardsley
* Matthias Jung
+ * Christian Menard
*/
/**
::setClockFrequency(1000000000000);
}
-Module::Module(sc_core::sc_module_name name) : sc_core::sc_module(name),
+Module::Module(sc_core::sc_module_name name) : sc_core::sc_channel(name),
in_simulate(false)
{
SC_METHOD(eventLoop);
* Authors: Nathan Binkert
* Steve Reinhardt
* Andrew Bardsley
+ * Christian Menard
*/
/**
* This functionality is wrapped in an sc_module as its intended that
* the a class representing top level simulation control should be derived
* from this class. */
-class Module : public sc_core::sc_module
+class Module : public sc_core::sc_channel
{
protected:
/** Event to trigger (via. ::notify) for event scheduling from