summaryrefslogtreecommitdiff
path: root/src/systemc/ext
diff options
context:
space:
mode:
Diffstat (limited to 'src/systemc/ext')
-rw-r--r--src/systemc/ext/channel/sc_clock.hh14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/systemc/ext/channel/sc_clock.hh b/src/systemc/ext/channel/sc_clock.hh
index 3713394b6..ba9231542 100644
--- a/src/systemc/ext/channel/sc_clock.hh
+++ b/src/systemc/ext/channel/sc_clock.hh
@@ -101,8 +101,18 @@ class sc_clock : public sc_signal<bool>
::sc_gem5::ClockTick *_gem5UpEdge;
::sc_gem5::ClockTick *_gem5DownEdge;
- void tickUp() { sc_signal<bool>::write(true); }
- void tickDown() { sc_signal<bool>::write(false); }
+ void
+ tickUp()
+ {
+ m_new_val = true;
+ request_update();
+ }
+ void
+ tickDown()
+ {
+ m_new_val = false;
+ request_update();
+ }
};
typedef sc_in<bool> sc_in_clk;