systemc: Add the nonstandard time_stamp function.
authorGabe Black <gabeblack@google.com>
Sat, 16 Jun 2018 06:01:40 +0000 (23:01 -0700)
committerGabe Black <gabeblack@google.com>
Tue, 28 Aug 2018 21:21:22 +0000 (21:21 +0000)
Change-Id: I608c390b125611e5b62483c7e8567bb5479df553
Reviewed-on: https://gem5-review.googlesource.com/11281
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>

src/systemc/channel/sc_clock.cc
src/systemc/ext/channel/sc_clock.hh

index 891c66609d9c3b97adb193103a207fa4cbe80220..65f1f100d3b37aa970026cc4ddec2fd346c946a6 100644 (file)
@@ -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() {}
index ae1f6c9736b640c3c678af54c314d2f7afefefa8..30895ced2293a4d64a9aaf73ac134efb3becc727 100644 (file)
@@ -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: