summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/systemc/core/sc_module.cc15
-rw-r--r--src/systemc/core/sc_prim.cc7
-rw-r--r--src/systemc/ext/core/sc_module.hh6
-rw-r--r--src/systemc/ext/core/sc_prim.hh3
4 files changed, 31 insertions, 0 deletions
diff --git a/src/systemc/core/sc_module.cc b/src/systemc/core/sc_module.cc
index b4fd29267..0954ce9c2 100644
--- a/src/systemc/core/sc_module.cc
+++ b/src/systemc/core/sc_module.cc
@@ -301,6 +301,14 @@ sc_module::next_trigger(double, sc_time_unit, const sc_event_and_list &)
}
+bool
+sc_module::timed_out()
+{
+ warn("%s not implemented.\n", __PRETTY_FUNCTION__);
+ return false;
+}
+
+
void
sc_module::wait()
{
@@ -483,6 +491,13 @@ next_trigger(double, sc_time_unit, const sc_event_and_list &)
warn("%s not implemented.\n", __PRETTY_FUNCTION__);
}
+bool
+timed_out()
+{
+ warn("%s not implemented.\n", __PRETTY_FUNCTION__);
+ return false;
+}
+
void
wait()
diff --git a/src/systemc/core/sc_prim.cc b/src/systemc/core/sc_prim.cc
index 0daf317cd..4b5cf1780 100644
--- a/src/systemc/core/sc_prim.cc
+++ b/src/systemc/core/sc_prim.cc
@@ -134,6 +134,13 @@ sc_prim_channel::next_trigger(double, sc_time_unit, const sc_event_and_list &)
warn("%s not implemented.\n", __PRETTY_FUNCTION__);
}
+bool
+sc_prim_channel::timed_out()
+{
+ warn("%s not implemented.\n", __PRETTY_FUNCTION__);
+ return false;
+}
+
void
sc_prim_channel::wait()
{
diff --git a/src/systemc/ext/core/sc_module.hh b/src/systemc/ext/core/sc_module.hh
index ffb1a3ccb..78919613e 100644
--- a/src/systemc/ext/core/sc_module.hh
+++ b/src/systemc/ext/core/sc_module.hh
@@ -183,6 +183,9 @@ class sc_module : public sc_object
void next_trigger(const sc_time &, const sc_event_and_list &);
void next_trigger(double, sc_time_unit, const sc_event_and_list &);
+ // Nonstandard
+ bool timed_out();
+
void wait();
void wait(int);
void wait(const sc_event &);
@@ -242,6 +245,9 @@ void wait(double, sc_time_unit, const sc_event_or_list &);
void wait(const sc_time &, const sc_event_and_list &);
void wait(double, sc_time_unit, const sc_event_and_list &);
+// Nonstandard
+bool timed_out();
+
#define SC_MODULE(name) struct name : ::sc_core::sc_module
#define SC_CTOR(name) \
diff --git a/src/systemc/ext/core/sc_prim.hh b/src/systemc/ext/core/sc_prim.hh
index d6265cb56..2348f453d 100644
--- a/src/systemc/ext/core/sc_prim.hh
+++ b/src/systemc/ext/core/sc_prim.hh
@@ -67,6 +67,9 @@ class sc_prim_channel : public sc_object
void next_trigger(const sc_time &, const sc_event_and_list &);
void next_trigger(double, sc_time_unit, const sc_event_and_list &);
+ // Nonstandard.
+ bool timed_out();
+
void wait();
void wait(int);
void wait(const sc_event &);