diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/systemc/core/event.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/systemc/core/event.cc b/src/systemc/core/event.cc index e91df1528..61fa80c8b 100644 --- a/src/systemc/core/event.cc +++ b/src/systemc/core/event.cc @@ -136,6 +136,11 @@ Event::getParentObject() const void Event::notify() { + if (scheduler.inUpdate()) { + SC_REPORT_ERROR("(E521) immediate notification is not allowed " + "during update phase or elaboration", ""); + } + // An immediate notification overrides any pending delayed notification. if (delayedNotify.scheduled()) scheduler.deschedule(&delayedNotify); |