diff options
Diffstat (limited to 'src/systemc')
-rw-r--r-- | src/systemc/core/process.hh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/systemc/core/process.hh b/src/systemc/core/process.hh index afdbb3798..3b1fb4eb6 100644 --- a/src/systemc/core/process.hh +++ b/src/systemc/core/process.hh @@ -39,6 +39,7 @@ #include "systemc/core/list.hh" #include "systemc/core/object.hh" #include "systemc/ext/core/sc_event.hh" +#include "systemc/ext/core/sc_export.hh" #include "systemc/ext/core/sc_interface.hh" #include "systemc/ext/core/sc_module.hh" #include "systemc/ext/core/sc_port.hh" @@ -224,6 +225,24 @@ class PendingSensitivityPort : public PendingSensitivity } }; +class PendingSensitivityExport : public PendingSensitivity +{ + private: + const sc_core::sc_export_base *exp; + + public: + PendingSensitivityExport(Process *p, const sc_core::sc_export_base *exp) : + PendingSensitivity(p), exp(exp) + {} + + void + finalize(Sensitivities &s) override + { + s.push_back(new SensitivityEvent(process, + &exp->get_interface()->default_event())); + } +}; + class PendingSensitivityFinder : public PendingSensitivity { private: |