Gabe Black has submitted this change and it was merged. (
https://gem5-review.googlesource.com/c/public/gem5/+/13202 )
Change subject: systemc: Don't use write() in sc_clock to set the clock
value.
......................................................................
systemc: Don't use write() in sc_clock to set the clock value.
The two different processes we have to use to match Accellera behavior
would trip the checks in write.
Change-Id: Iee729b239bccd8f7b854894000c9ef2c47600563
Reviewed-on: https://gem5-review.googlesource.com/c/13202
Reviewed-by: Gabe Black <[email protected]>
Maintainer: Gabe Black <[email protected]>
---
M src/systemc/ext/channel/sc_clock.hh
1 file changed, 12 insertions(+), 2 deletions(-)
Approvals:
Gabe Black: Looks good to me, approved; Looks good to me, approved
diff --git a/src/systemc/ext/channel/sc_clock.hh
b/src/systemc/ext/channel/sc_clock.hh
index 3713394..ba92315 100644
--- a/src/systemc/ext/channel/sc_clock.hh
+++ b/src/systemc/ext/channel/sc_clock.hh
@@ -101,8 +101,18 @@
::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;
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/13202
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: Iee729b239bccd8f7b854894000c9ef2c47600563
Gerrit-Change-Number: 13202
Gerrit-PatchSet: 4
Gerrit-Owner: Gabe Black <[email protected]>
Gerrit-Reviewer: Andreas Sandberg <[email protected]>
Gerrit-Reviewer: Gabe Black <[email protected]>
Gerrit-Reviewer: Giacomo Travaglini <[email protected]>
Gerrit-Reviewer: Jason Lowe-Power <[email protected]>
Gerrit-Reviewer: Matthias Jung <[email protected]>
Gerrit-MessageType: merged
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev