sc_spawn.cc (13207:034ca389a810) sc_spawn.cc (13260:4d18f1d20093)
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

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

78 for (auto e: opts->_exports)
79 newStaticSensitivityExport(proc, e);
80
81 for (auto i: opts->_interfaces)
82 newStaticSensitivityInterface(proc, i);
83
84 for (auto f: opts->_finders)
85 newStaticSensitivityFinder(proc, f);
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

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

78 for (auto e: opts->_exports)
79 newStaticSensitivityExport(proc, e);
80
81 for (auto i: opts->_interfaces)
82 newStaticSensitivityInterface(proc, i);
83
84 for (auto f: opts->_finders)
85 newStaticSensitivityFinder(proc, f);
86
87 for (auto p: opts->_in_resets)
88 newResetSensitivityPort(proc, p.target, p.value, p.sync);
89
90 for (auto p: opts->_inout_resets)
91 newResetSensitivityPort(proc, p.target, p.value, p.sync);
92
93 for (auto p: opts->_out_resets)
94 newResetSensitivityPort(proc, p.target, p.value, p.sync);
95
96 for (auto i: opts->_if_resets)
97 newResetSensitivitySignal(proc, i.target, i.value, i.sync);
86 }
87
88 if (opts && opts->_dontInitialize &&
89 opts->_events.empty() && opts->_ports.empty() &&
90 opts->_exports.empty() && opts->_interfaces.empty() &&
91 opts->_finders.empty()) {
92 SC_REPORT_WARNING(
93 "(W558) disable() or dont_initialize() called on process "

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

156void
157sc_spawn_options::set_sensitivity(sc_event_finder *f)
158{
159 _finders.push_back(f);
160}
161
162
163void
98 }
99
100 if (opts && opts->_dontInitialize &&
101 opts->_events.empty() && opts->_ports.empty() &&
102 opts->_exports.empty() && opts->_interfaces.empty() &&
103 opts->_finders.empty()) {
104 SC_REPORT_WARNING(
105 "(W558) disable() or dont_initialize() called on process "

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

168void
169sc_spawn_options::set_sensitivity(sc_event_finder *f)
170{
171 _finders.push_back(f);
172}
173
174
175void
164sc_spawn_options::reset_signal_is(const sc_in<bool> &, bool)
176sc_spawn_options::reset_signal_is(const sc_in<bool> &port, bool value)
165{
177{
166 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
178 _in_resets.emplace_back(&port, value, true);
167}
168
169void
179}
180
181void
170sc_spawn_options::reset_signal_is(const sc_inout<bool> &, bool)
182sc_spawn_options::reset_signal_is(const sc_inout<bool> &port, bool value)
171{
183{
172 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
184 _inout_resets.emplace_back(&port, value, true);
173}
174
175void
185}
186
187void
176sc_spawn_options::reset_signal_is(const sc_out<bool> &, bool)
188sc_spawn_options::reset_signal_is(const sc_out<bool> &port, bool value)
177{
189{
178 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
190 _out_resets.emplace_back(&port, value, true);
179}
180
181void
191}
192
193void
182sc_spawn_options::reset_signal_is(const sc_signal_in_if<bool> &, bool)
194sc_spawn_options::reset_signal_is(
195 const sc_signal_in_if<bool> &iface, bool value)
183{
196{
184 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
197 _if_resets.emplace_back(&iface, value, true);
185}
186
187
188void
198}
199
200
201void
189sc_spawn_options::async_reset_signal_is(const sc_in<bool> &, bool)
202sc_spawn_options::async_reset_signal_is(const sc_in<bool> &port, bool value)
190{
203{
191 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
204 _in_resets.emplace_back(&port, value, false);
192}
193
194void
205}
206
207void
195sc_spawn_options::async_reset_signal_is(const sc_inout<bool> &, bool)
208sc_spawn_options::async_reset_signal_is(const sc_inout<bool> &port, bool value)
196{
209{
197 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
210 _inout_resets.emplace_back(&port, value, false);
198}
199
200void
211}
212
213void
201sc_spawn_options::async_reset_signal_is(const sc_out<bool> &, bool)
214sc_spawn_options::async_reset_signal_is(const sc_out<bool> &port, bool value)
202{
215{
203 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
216 _out_resets.emplace_back(&port, value, false);
204}
205
206void
217}
218
219void
207sc_spawn_options::async_reset_signal_is(const sc_signal_in_if<bool> &, bool)
220sc_spawn_options::async_reset_signal_is(
221 const sc_signal_in_if<bool> &iface, bool value)
208{
222{
209 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
223 _if_resets.emplace_back(&iface, value, false);
210}
211
224}
225
212
213void
214sc_spawn_warn_unimpl(const char *func)
215{
216 warn("%s not implemented.\n", func);
217}
218
219} // namespace sc_core
220
221namespace sc_unnamed
222{
223
224ImplementationDefined _1;
225ImplementationDefined _2;
226ImplementationDefined _3;
227ImplementationDefined _4;
228ImplementationDefined _5;
229ImplementationDefined _6;
230ImplementationDefined _7;
231ImplementationDefined _8;
232ImplementationDefined _9;
233
234} // namespace sc_unnamed
226} // namespace sc_core
227
228namespace sc_unnamed
229{
230
231ImplementationDefined _1;
232ImplementationDefined _2;
233ImplementationDefined _3;
234ImplementationDefined _4;
235ImplementationDefined _5;
236ImplementationDefined _6;
237ImplementationDefined _7;
238ImplementationDefined _8;
239ImplementationDefined _9;
240
241} // namespace sc_unnamed