diff options
Diffstat (limited to 'src/systemc/channel/sc_clock.cc')
-rw-r--r-- | src/systemc/channel/sc_clock.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/systemc/channel/sc_clock.cc b/src/systemc/channel/sc_clock.cc index 898e7b866..7ab86eeb8 100644 --- a/src/systemc/channel/sc_clock.cc +++ b/src/systemc/channel/sc_clock.cc @@ -35,6 +35,7 @@ #include "systemc/core/process_types.hh" #include "systemc/core/sched_event.hh" #include "systemc/core/scheduler.hh" +#include "systemc/ext/channel/messages.hh" #include "systemc/ext/channel/sc_clock.hh" #include "systemc/ext/core/sc_main.hh" #include "systemc/ext/core/sc_module.hh" // for sc_gen_unique_name @@ -113,21 +114,21 @@ sc_clock::sc_clock(const char *name, const sc_time &period, std::string msg = "increase the period: clock '" + std::string(name) + "'"; - SC_REPORT_ERROR("(E101) sc_clock period is zero", msg.c_str()); + SC_REPORT_ERROR(SC_ID_CLOCK_PERIOD_ZERO_, msg.c_str()); } if (duty_cycle * period == SC_ZERO_TIME) { std::string msg = "increase the period or increase the duty cycle: clock '" + std::string(name) + "'"; - SC_REPORT_ERROR("(E102) sc_clock high time is zero", msg.c_str()); + SC_REPORT_ERROR(SC_ID_CLOCK_HIGH_TIME_ZERO_, msg.c_str()); } if (duty_cycle * period == period) { std::string msg = "increase the period or decrease the duty cycle: clock '" + std::string(name) + "'"; - SC_REPORT_ERROR("(E103) sc_clock low time is zero", msg.c_str()); + SC_REPORT_ERROR(SC_ID_CLOCK_LOW_TIME_ZERO_, msg.c_str()); } _gem5UpEdge = new ::sc_gem5::ClockTick(this, true, period); |