summaryrefslogtreecommitdiff
path: root/src/systemc/ext/core
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2018-08-30 15:49:56 -0700
committerGabe Black <gabeblack@google.com>2018-10-03 00:25:29 +0000
commit48701ed4bdfd5b9fc717efe4b758edcc0c7f5e8f (patch)
treee34fc1b0bd5ef269f6e395bee7c16d3369668768 /src/systemc/ext/core
parentef73520db53ca400b96f83a9f3cdcfbbf5577004 (diff)
downloadgem5-48701ed4bdfd5b9fc717efe4b758edcc0c7f5e8f.tar.xz
systemc: Add a "changeStamp" value to the scheduler.
This value is incremented after each delta cycle's evaluate stage and after timed notifications happen. Its value is used by some channels to determine whether certain events happened within the previous update phase to implement the "event()", "posedge()", and "negedge()" functions. Change-Id: I9a73f0b5007dcbb6a74da9d666f28da1930b9d3d Reviewed-on: https://gem5-review.googlesource.com/c/12452 Reviewed-by: Gabe Black <gabeblack@google.com> Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/systemc/ext/core')
-rw-r--r--src/systemc/ext/core/sc_prim.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/systemc/ext/core/sc_prim.hh b/src/systemc/ext/core/sc_prim.hh
index 99e231456..73b8784a6 100644
--- a/src/systemc/ext/core/sc_prim.hh
+++ b/src/systemc/ext/core/sc_prim.hh
@@ -38,6 +38,8 @@ namespace sc_gem5
class Channel;
+uint64_t getChangeStamp();
+
} // namespace sc_gem5
namespace sc_core