sc_signal.cc (13278:a059617d0d44) sc_signal.cc (13288:f1c04129f709)
1/*
2 * Copyright 2018 Google, Inc.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are
6 * met: redistributions of source code must retain the above copyright
7 * notice, this list of conditions and the following disclaimer;
8 * redistributions in binary form must reproduce the above copyright

--- 151 unchanged lines hidden (view full) ---

160 return _negedgeEvent;
161}
162
163bool
164ScSignalBaseBinary::posedge() const
165{
166 return _posStamp == getChangeStamp();
167}
1/*
2 * Copyright 2018 Google, Inc.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are
6 * met: redistributions of source code must retain the above copyright
7 * notice, this list of conditions and the following disclaimer;
8 * redistributions in binary form must reproduce the above copyright

--- 151 unchanged lines hidden (view full) ---

160 return _negedgeEvent;
161}
162
163bool
164ScSignalBaseBinary::posedge() const
165{
166 return _posStamp == getChangeStamp();
167}
168bool
169
168
169bool
170ScSignalBaseBinary::negedge() const
171{
172 return _negStamp == getChangeStamp();
173}
174
170ScSignalBaseBinary::negedge() const
171{
172 return _negStamp == getChangeStamp();
173}
174
175void
176ScSignalBaseBinary::_signalReset(sc_gem5::Reset *r)
177{
178 r->update();
179}
180
181void
182ScSignalBaseBinary::_signalReset()
183{
184 for (auto r: _resets)
185 _signalReset(r);
186}
187
175} // namespace sc_gem5
188} // namespace sc_gem5