Deleted Added
sdiff udiff text old ( 13207:034ca389a810 ) new ( 13260:4d18f1d20093 )
full compact
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);
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
176sc_spawn_options::reset_signal_is(const sc_in<bool> &port, bool value)
177{
178 _in_resets.emplace_back(&port, value, true);
179}
180
181void
182sc_spawn_options::reset_signal_is(const sc_inout<bool> &port, bool value)
183{
184 _inout_resets.emplace_back(&port, value, true);
185}
186
187void
188sc_spawn_options::reset_signal_is(const sc_out<bool> &port, bool value)
189{
190 _out_resets.emplace_back(&port, value, true);
191}
192
193void
194sc_spawn_options::reset_signal_is(
195 const sc_signal_in_if<bool> &iface, bool value)
196{
197 _if_resets.emplace_back(&iface, value, true);
198}
199
200
201void
202sc_spawn_options::async_reset_signal_is(const sc_in<bool> &port, bool value)
203{
204 _in_resets.emplace_back(&port, value, false);
205}
206
207void
208sc_spawn_options::async_reset_signal_is(const sc_inout<bool> &port, bool value)
209{
210 _inout_resets.emplace_back(&port, value, false);
211}
212
213void
214sc_spawn_options::async_reset_signal_is(const sc_out<bool> &port, bool value)
215{
216 _out_resets.emplace_back(&port, value, false);
217}
218
219void
220sc_spawn_options::async_reset_signal_is(
221 const sc_signal_in_if<bool> &iface, bool value)
222{
223 _if_resets.emplace_back(&iface, value, false);
224}
225
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