diff options
Diffstat (limited to 'src/systemc/channel')
-rw-r--r-- | src/systemc/channel/sc_signal.cc | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/systemc/channel/sc_signal.cc b/src/systemc/channel/sc_signal.cc index 702f20901..14ee8a6e4 100644 --- a/src/systemc/channel/sc_signal.cc +++ b/src/systemc/channel/sc_signal.cc @@ -165,11 +165,24 @@ ScSignalBaseBinary::posedge() const { return _posStamp == getChangeStamp(); } -bool +bool ScSignalBaseBinary::negedge() const { return _negStamp == getChangeStamp(); } +void +ScSignalBaseBinary::_signalReset(sc_gem5::Reset *r) +{ + r->update(); +} + +void +ScSignalBaseBinary::_signalReset() +{ + for (auto r: _resets) + _signalReset(r); +} + } // namespace sc_gem5 |