sc_module.cc revision 12837
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
9 * notice, this list of conditions and the following disclaimer in the
10 * documentation and/or other materials provided with the distribution;
11 * neither the name of the copyright holders nor the names of its
12 * contributors may be used to endorse or promote products derived from
13 * this software without specific prior written permission.
14 *
15 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
16 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
17 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
18 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
19 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
20 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
21 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 *
27 * Authors: Gabe Black
28 */
29
30#include "base/logging.hh"
31#include "systemc/ext/core/sc_module.hh"
32
33namespace sc_core
34{
35
36sc_bind_proxy::sc_bind_proxy(const sc_interface &interface)
37{
38    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
39}
40
41sc_bind_proxy::sc_bind_proxy(const sc_port_base &port)
42{
43    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
44}
45
46const sc_bind_proxy SC_BIND_PROXY_NUL(*(const sc_port_base *)nullptr);
47
48sc_module::~sc_module()
49{
50    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
51}
52
53const char *
54sc_module::kind() const
55{
56    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
57    return "";
58}
59
60const sc_bind_proxy SC_BIND_PROXY_NIL(*(const sc_port_base *)nullptr);
61
62void
63sc_module::operator () (const sc_bind_proxy &p001,
64                        const sc_bind_proxy &p002,
65                        const sc_bind_proxy &p003,
66                        const sc_bind_proxy &p004,
67                        const sc_bind_proxy &p005,
68                        const sc_bind_proxy &p006,
69                        const sc_bind_proxy &p007,
70                        const sc_bind_proxy &p008,
71                        const sc_bind_proxy &p009,
72                        const sc_bind_proxy &p010,
73                        const sc_bind_proxy &p011,
74                        const sc_bind_proxy &p012,
75                        const sc_bind_proxy &p013,
76                        const sc_bind_proxy &p014,
77                        const sc_bind_proxy &p015,
78                        const sc_bind_proxy &p016,
79                        const sc_bind_proxy &p017,
80                        const sc_bind_proxy &p018,
81                        const sc_bind_proxy &p019,
82                        const sc_bind_proxy &p020,
83                        const sc_bind_proxy &p021,
84                        const sc_bind_proxy &p022,
85                        const sc_bind_proxy &p023,
86                        const sc_bind_proxy &p024,
87                        const sc_bind_proxy &p025,
88                        const sc_bind_proxy &p026,
89                        const sc_bind_proxy &p027,
90                        const sc_bind_proxy &p028,
91                        const sc_bind_proxy &p029,
92                        const sc_bind_proxy &p030,
93                        const sc_bind_proxy &p031,
94                        const sc_bind_proxy &p032,
95                        const sc_bind_proxy &p033,
96                        const sc_bind_proxy &p034,
97                        const sc_bind_proxy &p035,
98                        const sc_bind_proxy &p036,
99                        const sc_bind_proxy &p037,
100                        const sc_bind_proxy &p038,
101                        const sc_bind_proxy &p039,
102                        const sc_bind_proxy &p040,
103                        const sc_bind_proxy &p041,
104                        const sc_bind_proxy &p042,
105                        const sc_bind_proxy &p043,
106                        const sc_bind_proxy &p044,
107                        const sc_bind_proxy &p045,
108                        const sc_bind_proxy &p046,
109                        const sc_bind_proxy &p047,
110                        const sc_bind_proxy &p048,
111                        const sc_bind_proxy &p049,
112                        const sc_bind_proxy &p050,
113                        const sc_bind_proxy &p051,
114                        const sc_bind_proxy &p052,
115                        const sc_bind_proxy &p053,
116                        const sc_bind_proxy &p054,
117                        const sc_bind_proxy &p055,
118                        const sc_bind_proxy &p056,
119                        const sc_bind_proxy &p057,
120                        const sc_bind_proxy &p058,
121                        const sc_bind_proxy &p059,
122                        const sc_bind_proxy &p060,
123                        const sc_bind_proxy &p061,
124                        const sc_bind_proxy &p062,
125                        const sc_bind_proxy &p063,
126                        const sc_bind_proxy &p064)
127{
128    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
129}
130
131const std::vector<sc_object *> &
132sc_module::get_child_objects() const
133{
134    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
135    return *(const std::vector<sc_object *> *)nullptr;
136}
137
138const std::vector<sc_event *> &
139sc_module::get_child_events() const
140{
141    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
142    return *(const std::vector<sc_event *> *)nullptr;
143}
144
145sc_module::sc_module(const sc_module_name &)
146{
147    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
148}
149
150sc_module::sc_module()
151{
152    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
153}
154
155void
156sc_module::reset_signal_is(const sc_in<bool> &, bool)
157{
158    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
159}
160
161void
162sc_module::reset_signal_is(const sc_inout<bool> &, bool)
163{
164    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
165}
166
167void
168sc_module::reset_signal_is(const sc_out<bool> &, bool)
169{
170    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
171}
172
173void
174sc_module::reset_signal_is(const sc_signal_in_if<bool> &, bool)
175{
176    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
177}
178
179
180void
181sc_module::async_reset_signal_is(const sc_in<bool> &, bool)
182{
183    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
184}
185
186void
187sc_module::async_reset_signal_is(const sc_inout<bool> &, bool)
188{
189    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
190}
191
192void
193sc_module::async_reset_signal_is(const sc_out<bool> &, bool)
194{
195    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
196}
197
198void
199sc_module::async_reset_signal_is(const sc_signal_in_if<bool> &, bool)
200{
201    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
202}
203
204
205void
206sc_module::dont_initialize()
207{
208    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
209}
210
211void
212sc_module::set_stack_size(size_t)
213{
214    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
215}
216
217
218void
219sc_module::next_trigger()
220{
221    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
222}
223
224void
225sc_module::next_trigger(const sc_event &)
226{
227    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
228}
229
230void
231sc_module::next_trigger(const sc_event_or_list &)
232{
233    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
234}
235
236void
237sc_module::next_trigger(const sc_event_and_list &)
238{
239    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
240}
241
242void
243sc_module::next_trigger(const sc_time &)
244{
245    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
246}
247
248void
249sc_module::next_trigger(double, sc_time_unit)
250{
251    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
252}
253
254void
255sc_module::next_trigger(const sc_time &, const sc_event &)
256{
257    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
258}
259
260void
261sc_module::next_trigger(double, sc_time_unit, const sc_event &)
262{
263    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
264}
265
266void
267sc_module::next_trigger(const sc_time &, const sc_event_or_list &)
268{
269    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
270}
271
272void
273sc_module::next_trigger(double, sc_time_unit, const sc_event_or_list &)
274{
275    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
276}
277
278void
279sc_module::next_trigger(const sc_time &, const sc_event_and_list &)
280{
281    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
282}
283
284void
285sc_module::next_trigger(double, sc_time_unit, const sc_event_and_list &)
286{
287    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
288}
289
290
291void
292sc_module::wait()
293{
294    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
295}
296
297void
298sc_module::wait(int)
299{
300    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
301}
302
303void
304sc_module::wait(const sc_event &)
305{
306    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
307}
308
309void
310sc_module::wait(const sc_event_or_list &)
311{
312    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
313}
314
315void
316sc_module::wait(const sc_event_and_list &)
317{
318    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
319}
320
321void
322sc_module::wait(const sc_time &)
323{
324    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
325}
326
327void
328sc_module::wait(double, sc_time_unit)
329{
330    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
331}
332
333void
334sc_module::wait(const sc_time &, const sc_event &)
335{
336    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
337}
338
339void
340sc_module::wait(double, sc_time_unit, const sc_event &)
341{
342    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
343}
344
345void
346sc_module::wait(const sc_time &, const sc_event_or_list &)
347{
348    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
349}
350
351void
352sc_module::wait(double, sc_time_unit, const sc_event_or_list &)
353{
354    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
355}
356
357void
358sc_module::wait(const sc_time &, const sc_event_and_list &)
359{
360    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
361}
362
363void
364sc_module::wait(double, sc_time_unit, const sc_event_and_list &)
365{
366    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
367}
368
369
370void
371next_trigger()
372{
373    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
374}
375
376void
377next_trigger(const sc_event &)
378{
379    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
380}
381
382void
383next_trigger(const sc_event_or_list &)
384{
385    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
386}
387
388void
389next_trigger(const sc_event_and_list &)
390{
391    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
392}
393
394void
395next_trigger(const sc_time &)
396{
397    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
398}
399
400void
401next_trigger(double, sc_time_unit)
402{
403    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
404}
405
406void
407next_trigger(const sc_time &, const sc_event &)
408{
409    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
410}
411
412void
413next_trigger(double, sc_time_unit, const sc_event &)
414{
415    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
416}
417
418void
419next_trigger(const sc_time &, const sc_event_or_list &)
420{
421    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
422}
423
424void
425next_trigger(double, sc_time_unit, const sc_event_or_list &)
426{
427    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
428}
429
430void
431next_trigger(const sc_time &, const sc_event_and_list &)
432{
433    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
434}
435
436void
437next_trigger(double, sc_time_unit, const sc_event_and_list &)
438{
439    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
440}
441
442
443void
444wait()
445{
446    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
447}
448
449void
450wait(int)
451{
452    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
453}
454
455void
456wait(const sc_event &)
457{
458    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
459}
460
461void
462wait(const sc_event_or_list &)
463{
464    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
465}
466
467void
468wait(const sc_event_and_list &)
469{
470    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
471}
472
473void
474wait(const sc_time &)
475{
476    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
477}
478
479void
480wait(double, sc_time_unit)
481{
482    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
483}
484
485void
486wait(const sc_time &, const sc_event &)
487{
488    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
489}
490
491void
492wait(double, sc_time_unit, const sc_event &)
493{
494    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
495}
496
497void
498wait(const sc_time &, const sc_event_or_list &)
499{
500    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
501}
502
503void
504wait(double, sc_time_unit, const sc_event_or_list &)
505{
506    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
507}
508
509void
510wait(const sc_time &, const sc_event_and_list &)
511{
512    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
513}
514
515void
516wait(double, sc_time_unit, const sc_event_and_list &)
517{
518    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
519}
520
521const char *
522sc_gen_unique_name(const char *)
523{
524    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
525    return "";
526}
527
528bool
529sc_start_of_simulation_invoked()
530{
531    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
532    return false;
533}
534
535bool
536sc_end_of_simulation_invoked()
537{
538    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
539    return false;
540}
541
542} // namespace sc_core
543