The Sparta Modeling Framework
|
Glue code that connect the Sparta scheduler to SystemC. More...
#include <climits>
#include "sparta/kernel/Scheduler.hpp"
#include "sparta/events/Event.hpp"
#include "sysc/kernel/sc_event.h"
#include "sysc/kernel/sc_time.h"
#include "sysc/kernel/sc_module.h"
#include "sysc/communication/sc_clock.h"
Go to the source code of this file.
Classes | |
class | sparta::SysCSpartaSchedulerAdapter |
Class that "connects" Sparta to SystemC. More... | |
Namespaces | |
namespace | sparta |
Macros for handling exponential backoff. | |
Macros | |
#define | SC_SPARTA_SCHEDULER_NAME "SysCSpartaSchedulerAdapter" |
#define | SC_SPARTA_STOP_EVENT_NAME "sc_ev_stop_simulation" |
Functions | |
Clock::Cycle | sparta::sparta_sysc_utils::calculateSpartaOffset (const sparta::Clock *sparta_clk, sc_core::sc_time::value_type sysc_offset) |
Glue code that connect the Sparta scheduler to SystemC.
Definition in file SysCSpartaSchedulerAdapter.hpp.
#define SC_SPARTA_SCHEDULER_NAME "SysCSpartaSchedulerAdapter" |
The name of the scheduler adapter
Definition at line 96 of file SysCSpartaSchedulerAdapter.hpp.
#define SC_SPARTA_STOP_EVENT_NAME "sc_ev_stop_simulation" |
The name of the SystemC event used to stop simulation
Definition at line 100 of file SysCSpartaSchedulerAdapter.hpp.
|
inline |
Utility to convert SystemC time to Sparta time for scheduling events/sending data across ports
sparta_clk | The Clock to use for the conversion |
sysc_offset | The SystemC offset to convert |
Since the Sparta scheduler is not re-entrant at the current tick, we might need to stop forward progress and report an issue (currently not doing this). Reason for this:
Definition at line 56 of file SysCSpartaSchedulerAdapter.hpp.