summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/systemc/channel/sc_clock.cc7
-rw-r--r--src/systemc/ext/channel/sc_clock.hh3
2 files changed, 10 insertions, 0 deletions
diff --git a/src/systemc/channel/sc_clock.cc b/src/systemc/channel/sc_clock.cc
index 891c66609..65f1f100d 100644
--- a/src/systemc/channel/sc_clock.cc
+++ b/src/systemc/channel/sc_clock.cc
@@ -107,6 +107,13 @@ sc_clock::posedge_first() const
return false;
}
+const sc_time &
+sc_clock::time_stamp()
+{
+ warn("%s not implemented.\n", __PRETTY_FUNCTION__);
+ return *(const sc_time *)nullptr;
+}
+
const char *sc_clock::kind() const { return "sc_clock"; }
void sc_clock::before_end_of_elaboration() {}
diff --git a/src/systemc/ext/channel/sc_clock.hh b/src/systemc/ext/channel/sc_clock.hh
index ae1f6c973..30895ced2 100644
--- a/src/systemc/ext/channel/sc_clock.hh
+++ b/src/systemc/ext/channel/sc_clock.hh
@@ -71,6 +71,9 @@ class sc_clock : public sc_signal<bool>
const sc_time &start_time() const;
bool posedge_first() const;
+ // Nonstandard
+ static const sc_time &time_stamp();
+
virtual const char *kind() const;
protected: