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
--- 19 unchanged lines hidden (view full) ---
28 */
29
30#include "systemc/core/sensitivity.hh"
31
32#include "systemc/core/event.hh"
33#include "systemc/core/port.hh"
34#include "systemc/core/process.hh"
35#include "systemc/core/scheduler.hh"
36#include "systemc/ext/core/sc_export.hh"
37#include "systemc/ext/core/sc_interface.hh"
38#include "systemc/ext/core/sc_port.hh"
39
40namespace sc_gem5
41{
42
43/*
--- 44 unchanged lines hidden (view full) ---
88}
89
90void
91StaticSensitivity::delFromEvent(const ::sc_core::sc_event *e)
92{
93 Event::getFromScEvent(e)->delSensitivity(this);
94}
95
96
97/*
98 * Static sensitivities.
99 */
100
101void
102newStaticSensitivityEvent(Process *p, const sc_core::sc_event *e)
103{
104 auto s = new StaticSensitivityEvent(p, e);
--- 118 unchanged lines hidden (view full) ---
223
224 // This sensitivity is satisfied if all events have triggered.
225 if (events.empty())
226 satisfy();
227
228 return true;
229}
230
231} // namespace sc_gem5
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
--- 19 unchanged lines hidden (view full) ---
28 */
29
30#include "systemc/core/sensitivity.hh"
31
32#include "systemc/core/event.hh"
33#include "systemc/core/port.hh"
34#include "systemc/core/process.hh"
35#include "systemc/core/scheduler.hh"
36#include "systemc/ext/core/sc_export.hh"
37#include "systemc/ext/core/sc_interface.hh"
38#include "systemc/ext/core/sc_port.hh"
39
40namespace sc_gem5
41{
42
43/*
--- 44 unchanged lines hidden (view full) ---
88}
89
90void
91StaticSensitivity::delFromEvent(const ::sc_core::sc_event *e)
92{
93 Event::getFromScEvent(e)->delSensitivity(this);
94}
95
96
97/*
98 * Static sensitivities.
99 */
100
101void
102newStaticSensitivityEvent(Process *p, const sc_core::sc_event *e)
103{
104 auto s = new StaticSensitivityEvent(p, e);
--- 118 unchanged lines hidden (view full) ---
223
224 // This sensitivity is satisfied if all events have triggered.
225 if (events.empty())
226 satisfy();
227
228 return true;
229}
230
231} // namespace sc_gem5