sc_module.cc revision 12951
112837Sgabeblack@google.com/*
212837Sgabeblack@google.com * Copyright 2018 Google, Inc.
312837Sgabeblack@google.com *
412837Sgabeblack@google.com * Redistribution and use in source and binary forms, with or without
512837Sgabeblack@google.com * modification, are permitted provided that the following conditions are
612837Sgabeblack@google.com * met: redistributions of source code must retain the above copyright
712837Sgabeblack@google.com * notice, this list of conditions and the following disclaimer;
812837Sgabeblack@google.com * redistributions in binary form must reproduce the above copyright
912837Sgabeblack@google.com * notice, this list of conditions and the following disclaimer in the
1012837Sgabeblack@google.com * documentation and/or other materials provided with the distribution;
1112837Sgabeblack@google.com * neither the name of the copyright holders nor the names of its
1212837Sgabeblack@google.com * contributors may be used to endorse or promote products derived from
1312837Sgabeblack@google.com * this software without specific prior written permission.
1412837Sgabeblack@google.com *
1512837Sgabeblack@google.com * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1612837Sgabeblack@google.com * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1712837Sgabeblack@google.com * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
1812837Sgabeblack@google.com * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
1912837Sgabeblack@google.com * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
2012837Sgabeblack@google.com * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
2112837Sgabeblack@google.com * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2212837Sgabeblack@google.com * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2312837Sgabeblack@google.com * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2412837Sgabeblack@google.com * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2512837Sgabeblack@google.com * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2612837Sgabeblack@google.com *
2712837Sgabeblack@google.com * Authors: Gabe Black
2812837Sgabeblack@google.com */
2912837Sgabeblack@google.com
3012901Sgabeblack@google.com#include <memory>
3112901Sgabeblack@google.com#include <vector>
3212901Sgabeblack@google.com
3312837Sgabeblack@google.com#include "base/logging.hh"
3412951Sgabeblack@google.com#include "systemc/core/module.hh"
3512837Sgabeblack@google.com#include "systemc/ext/core/sc_module.hh"
3612951Sgabeblack@google.com#include "systemc/ext/core/sc_module_name.hh"
3712837Sgabeblack@google.com
3812837Sgabeblack@google.comnamespace sc_core
3912837Sgabeblack@google.com{
4012837Sgabeblack@google.com
4112951Sgabeblack@google.comsc_bind_proxy::sc_bind_proxy(const sc_interface &_interface) :
4212951Sgabeblack@google.com    _interface(&_interface), _port(nullptr)
4312951Sgabeblack@google.com{}
4412837Sgabeblack@google.com
4512951Sgabeblack@google.comsc_bind_proxy::sc_bind_proxy(const sc_port_base &_port) :
4612951Sgabeblack@google.com    _interface(nullptr), _port(&_port)
4712951Sgabeblack@google.com{}
4812837Sgabeblack@google.com
4912837Sgabeblack@google.comconst sc_bind_proxy SC_BIND_PROXY_NUL(*(const sc_port_base *)nullptr);
5012837Sgabeblack@google.com
5112951Sgabeblack@google.comsc_module::~sc_module() {}
5212837Sgabeblack@google.com
5312837Sgabeblack@google.comconst sc_bind_proxy SC_BIND_PROXY_NIL(*(const sc_port_base *)nullptr);
5412837Sgabeblack@google.com
5512837Sgabeblack@google.comvoid
5612837Sgabeblack@google.comsc_module::operator () (const sc_bind_proxy &p001,
5712837Sgabeblack@google.com                        const sc_bind_proxy &p002,
5812837Sgabeblack@google.com                        const sc_bind_proxy &p003,
5912837Sgabeblack@google.com                        const sc_bind_proxy &p004,
6012837Sgabeblack@google.com                        const sc_bind_proxy &p005,
6112837Sgabeblack@google.com                        const sc_bind_proxy &p006,
6212837Sgabeblack@google.com                        const sc_bind_proxy &p007,
6312837Sgabeblack@google.com                        const sc_bind_proxy &p008,
6412837Sgabeblack@google.com                        const sc_bind_proxy &p009,
6512837Sgabeblack@google.com                        const sc_bind_proxy &p010,
6612837Sgabeblack@google.com                        const sc_bind_proxy &p011,
6712837Sgabeblack@google.com                        const sc_bind_proxy &p012,
6812837Sgabeblack@google.com                        const sc_bind_proxy &p013,
6912837Sgabeblack@google.com                        const sc_bind_proxy &p014,
7012837Sgabeblack@google.com                        const sc_bind_proxy &p015,
7112837Sgabeblack@google.com                        const sc_bind_proxy &p016,
7212837Sgabeblack@google.com                        const sc_bind_proxy &p017,
7312837Sgabeblack@google.com                        const sc_bind_proxy &p018,
7412837Sgabeblack@google.com                        const sc_bind_proxy &p019,
7512837Sgabeblack@google.com                        const sc_bind_proxy &p020,
7612837Sgabeblack@google.com                        const sc_bind_proxy &p021,
7712837Sgabeblack@google.com                        const sc_bind_proxy &p022,
7812837Sgabeblack@google.com                        const sc_bind_proxy &p023,
7912837Sgabeblack@google.com                        const sc_bind_proxy &p024,
8012837Sgabeblack@google.com                        const sc_bind_proxy &p025,
8112837Sgabeblack@google.com                        const sc_bind_proxy &p026,
8212837Sgabeblack@google.com                        const sc_bind_proxy &p027,
8312837Sgabeblack@google.com                        const sc_bind_proxy &p028,
8412837Sgabeblack@google.com                        const sc_bind_proxy &p029,
8512837Sgabeblack@google.com                        const sc_bind_proxy &p030,
8612837Sgabeblack@google.com                        const sc_bind_proxy &p031,
8712837Sgabeblack@google.com                        const sc_bind_proxy &p032,
8812837Sgabeblack@google.com                        const sc_bind_proxy &p033,
8912837Sgabeblack@google.com                        const sc_bind_proxy &p034,
9012837Sgabeblack@google.com                        const sc_bind_proxy &p035,
9112837Sgabeblack@google.com                        const sc_bind_proxy &p036,
9212837Sgabeblack@google.com                        const sc_bind_proxy &p037,
9312837Sgabeblack@google.com                        const sc_bind_proxy &p038,
9412837Sgabeblack@google.com                        const sc_bind_proxy &p039,
9512837Sgabeblack@google.com                        const sc_bind_proxy &p040,
9612837Sgabeblack@google.com                        const sc_bind_proxy &p041,
9712837Sgabeblack@google.com                        const sc_bind_proxy &p042,
9812837Sgabeblack@google.com                        const sc_bind_proxy &p043,
9912837Sgabeblack@google.com                        const sc_bind_proxy &p044,
10012837Sgabeblack@google.com                        const sc_bind_proxy &p045,
10112837Sgabeblack@google.com                        const sc_bind_proxy &p046,
10212837Sgabeblack@google.com                        const sc_bind_proxy &p047,
10312837Sgabeblack@google.com                        const sc_bind_proxy &p048,
10412837Sgabeblack@google.com                        const sc_bind_proxy &p049,
10512837Sgabeblack@google.com                        const sc_bind_proxy &p050,
10612837Sgabeblack@google.com                        const sc_bind_proxy &p051,
10712837Sgabeblack@google.com                        const sc_bind_proxy &p052,
10812837Sgabeblack@google.com                        const sc_bind_proxy &p053,
10912837Sgabeblack@google.com                        const sc_bind_proxy &p054,
11012837Sgabeblack@google.com                        const sc_bind_proxy &p055,
11112837Sgabeblack@google.com                        const sc_bind_proxy &p056,
11212837Sgabeblack@google.com                        const sc_bind_proxy &p057,
11312837Sgabeblack@google.com                        const sc_bind_proxy &p058,
11412837Sgabeblack@google.com                        const sc_bind_proxy &p059,
11512837Sgabeblack@google.com                        const sc_bind_proxy &p060,
11612837Sgabeblack@google.com                        const sc_bind_proxy &p061,
11712837Sgabeblack@google.com                        const sc_bind_proxy &p062,
11812837Sgabeblack@google.com                        const sc_bind_proxy &p063,
11912837Sgabeblack@google.com                        const sc_bind_proxy &p064)
12012837Sgabeblack@google.com{
12112837Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
12212837Sgabeblack@google.com}
12312837Sgabeblack@google.com
12412837Sgabeblack@google.comconst std::vector<sc_object *> &
12512837Sgabeblack@google.comsc_module::get_child_objects() const
12612837Sgabeblack@google.com{
12712951Sgabeblack@google.com    return _gem5_module->obj()->get_child_objects();
12812837Sgabeblack@google.com}
12912837Sgabeblack@google.com
13012837Sgabeblack@google.comconst std::vector<sc_event *> &
13112837Sgabeblack@google.comsc_module::get_child_events() const
13212837Sgabeblack@google.com{
13312951Sgabeblack@google.com    return _gem5_module->obj()->get_child_events();
13412837Sgabeblack@google.com}
13512837Sgabeblack@google.com
13612951Sgabeblack@google.comsc_module::sc_module() :
13712951Sgabeblack@google.com    sc_object(sc_gem5::currentModule()->name()),
13812951Sgabeblack@google.com    _gem5_module(sc_gem5::currentModule())
13912951Sgabeblack@google.com{}
14012837Sgabeblack@google.com
14112951Sgabeblack@google.comsc_module::sc_module(const sc_module_name &) : sc_module() {}
14212951Sgabeblack@google.comsc_module::sc_module(const char *_name) : sc_module(sc_module_name(_name)) {}
14312951Sgabeblack@google.comsc_module::sc_module(const std::string &_name) :
14412951Sgabeblack@google.com    sc_module(sc_module_name(_name.c_str()))
14512951Sgabeblack@google.com{}
14612928Sgabeblack@google.com
14712837Sgabeblack@google.comvoid
14812837Sgabeblack@google.comsc_module::reset_signal_is(const sc_in<bool> &, bool)
14912837Sgabeblack@google.com{
15012837Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
15112837Sgabeblack@google.com}
15212837Sgabeblack@google.com
15312837Sgabeblack@google.comvoid
15412837Sgabeblack@google.comsc_module::reset_signal_is(const sc_inout<bool> &, bool)
15512837Sgabeblack@google.com{
15612837Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
15712837Sgabeblack@google.com}
15812837Sgabeblack@google.com
15912837Sgabeblack@google.comvoid
16012837Sgabeblack@google.comsc_module::reset_signal_is(const sc_out<bool> &, bool)
16112837Sgabeblack@google.com{
16212837Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
16312837Sgabeblack@google.com}
16412837Sgabeblack@google.com
16512837Sgabeblack@google.comvoid
16612837Sgabeblack@google.comsc_module::reset_signal_is(const sc_signal_in_if<bool> &, bool)
16712837Sgabeblack@google.com{
16812837Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
16912837Sgabeblack@google.com}
17012837Sgabeblack@google.com
17112837Sgabeblack@google.com
17212837Sgabeblack@google.comvoid
17312837Sgabeblack@google.comsc_module::async_reset_signal_is(const sc_in<bool> &, bool)
17412837Sgabeblack@google.com{
17512837Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
17612837Sgabeblack@google.com}
17712837Sgabeblack@google.com
17812837Sgabeblack@google.comvoid
17912837Sgabeblack@google.comsc_module::async_reset_signal_is(const sc_inout<bool> &, bool)
18012837Sgabeblack@google.com{
18112837Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
18212837Sgabeblack@google.com}
18312837Sgabeblack@google.com
18412837Sgabeblack@google.comvoid
18512837Sgabeblack@google.comsc_module::async_reset_signal_is(const sc_out<bool> &, bool)
18612837Sgabeblack@google.com{
18712837Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
18812837Sgabeblack@google.com}
18912837Sgabeblack@google.com
19012837Sgabeblack@google.comvoid
19112837Sgabeblack@google.comsc_module::async_reset_signal_is(const sc_signal_in_if<bool> &, bool)
19212837Sgabeblack@google.com{
19312837Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
19412837Sgabeblack@google.com}
19512837Sgabeblack@google.com
19612837Sgabeblack@google.com
19712837Sgabeblack@google.comvoid
19812837Sgabeblack@google.comsc_module::dont_initialize()
19912837Sgabeblack@google.com{
20012837Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
20112837Sgabeblack@google.com}
20212837Sgabeblack@google.com
20312837Sgabeblack@google.comvoid
20412837Sgabeblack@google.comsc_module::set_stack_size(size_t)
20512837Sgabeblack@google.com{
20612837Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
20712837Sgabeblack@google.com}
20812837Sgabeblack@google.com
20912837Sgabeblack@google.com
21012951Sgabeblack@google.comvoid sc_module::next_trigger() { ::sc_core::next_trigger(); }
21112951Sgabeblack@google.com
21212837Sgabeblack@google.comvoid
21312951Sgabeblack@google.comsc_module::next_trigger(const sc_event &e)
21412837Sgabeblack@google.com{
21512951Sgabeblack@google.com    ::sc_core::next_trigger(e);
21612837Sgabeblack@google.com}
21712837Sgabeblack@google.com
21812837Sgabeblack@google.comvoid
21912951Sgabeblack@google.comsc_module::next_trigger(const sc_event_or_list &eol)
22012837Sgabeblack@google.com{
22112951Sgabeblack@google.com    ::sc_core::next_trigger(eol);
22212837Sgabeblack@google.com}
22312837Sgabeblack@google.com
22412837Sgabeblack@google.comvoid
22512951Sgabeblack@google.comsc_module::next_trigger(const sc_event_and_list &eal)
22612837Sgabeblack@google.com{
22712951Sgabeblack@google.com    ::sc_core::next_trigger(eal);
22812837Sgabeblack@google.com}
22912837Sgabeblack@google.com
23012837Sgabeblack@google.comvoid
23112951Sgabeblack@google.comsc_module::next_trigger(const sc_time &t)
23212837Sgabeblack@google.com{
23312951Sgabeblack@google.com    ::sc_core::next_trigger(t);
23412837Sgabeblack@google.com}
23512837Sgabeblack@google.com
23612837Sgabeblack@google.comvoid
23712951Sgabeblack@google.comsc_module::next_trigger(double d, sc_time_unit u)
23812837Sgabeblack@google.com{
23912951Sgabeblack@google.com    ::sc_core::next_trigger(d, u);
24012837Sgabeblack@google.com}
24112837Sgabeblack@google.com
24212837Sgabeblack@google.comvoid
24312951Sgabeblack@google.comsc_module::next_trigger(const sc_time &t, const sc_event &e)
24412837Sgabeblack@google.com{
24512951Sgabeblack@google.com    ::sc_core::next_trigger(t, e);
24612837Sgabeblack@google.com}
24712837Sgabeblack@google.com
24812837Sgabeblack@google.comvoid
24912951Sgabeblack@google.comsc_module::next_trigger(double d, sc_time_unit u, const sc_event &e)
25012837Sgabeblack@google.com{
25112951Sgabeblack@google.com    ::sc_core::next_trigger(d, u, e);
25212837Sgabeblack@google.com}
25312837Sgabeblack@google.com
25412837Sgabeblack@google.comvoid
25512951Sgabeblack@google.comsc_module::next_trigger(const sc_time &t, const sc_event_or_list &eol)
25612837Sgabeblack@google.com{
25712951Sgabeblack@google.com    ::sc_core::next_trigger(t, eol);
25812837Sgabeblack@google.com}
25912837Sgabeblack@google.com
26012837Sgabeblack@google.comvoid
26112951Sgabeblack@google.comsc_module::next_trigger(double d, sc_time_unit u, const sc_event_or_list &eol)
26212837Sgabeblack@google.com{
26312951Sgabeblack@google.com    ::sc_core::next_trigger(d, u, eol);
26412837Sgabeblack@google.com}
26512837Sgabeblack@google.com
26612837Sgabeblack@google.comvoid
26712951Sgabeblack@google.comsc_module::next_trigger(const sc_time &t, const sc_event_and_list &eal)
26812837Sgabeblack@google.com{
26912951Sgabeblack@google.com    ::sc_core::next_trigger(t, eal);
27012837Sgabeblack@google.com}
27112837Sgabeblack@google.com
27212837Sgabeblack@google.comvoid
27312951Sgabeblack@google.comsc_module::next_trigger(double d, sc_time_unit u, const sc_event_and_list &eal)
27412837Sgabeblack@google.com{
27512951Sgabeblack@google.com    ::sc_core::next_trigger(d, u, eal);
27612837Sgabeblack@google.com}
27712837Sgabeblack@google.com
27812837Sgabeblack@google.com
27912929Sgabeblack@google.combool
28012929Sgabeblack@google.comsc_module::timed_out()
28112929Sgabeblack@google.com{
28212929Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
28312929Sgabeblack@google.com    return false;
28412929Sgabeblack@google.com}
28512929Sgabeblack@google.com
28612929Sgabeblack@google.com
28712837Sgabeblack@google.comvoid
28812837Sgabeblack@google.comsc_module::wait()
28912837Sgabeblack@google.com{
29012951Sgabeblack@google.com    ::sc_core::wait();
29112837Sgabeblack@google.com}
29212837Sgabeblack@google.com
29312837Sgabeblack@google.comvoid
29412951Sgabeblack@google.comsc_module::wait(int i)
29512837Sgabeblack@google.com{
29612951Sgabeblack@google.com    ::sc_core::wait(i);
29712837Sgabeblack@google.com}
29812837Sgabeblack@google.com
29912837Sgabeblack@google.comvoid
30012951Sgabeblack@google.comsc_module::wait(const sc_event &e)
30112837Sgabeblack@google.com{
30212951Sgabeblack@google.com    ::sc_core::wait(e);
30312837Sgabeblack@google.com}
30412837Sgabeblack@google.com
30512837Sgabeblack@google.comvoid
30612951Sgabeblack@google.comsc_module::wait(const sc_event_or_list &eol)
30712837Sgabeblack@google.com{
30812951Sgabeblack@google.com    ::sc_core::wait(eol);
30912837Sgabeblack@google.com}
31012837Sgabeblack@google.com
31112837Sgabeblack@google.comvoid
31212951Sgabeblack@google.comsc_module::wait(const sc_event_and_list &eal)
31312837Sgabeblack@google.com{
31412951Sgabeblack@google.com    ::sc_core::wait(eal);
31512837Sgabeblack@google.com}
31612837Sgabeblack@google.com
31712837Sgabeblack@google.comvoid
31812951Sgabeblack@google.comsc_module::wait(const sc_time &t)
31912837Sgabeblack@google.com{
32012951Sgabeblack@google.com    ::sc_core::wait(t);
32112837Sgabeblack@google.com}
32212837Sgabeblack@google.com
32312837Sgabeblack@google.comvoid
32412951Sgabeblack@google.comsc_module::wait(double d, sc_time_unit u)
32512837Sgabeblack@google.com{
32612951Sgabeblack@google.com    ::sc_core::wait(d, u);
32712837Sgabeblack@google.com}
32812837Sgabeblack@google.com
32912837Sgabeblack@google.comvoid
33012951Sgabeblack@google.comsc_module::wait(const sc_time &t, const sc_event &e)
33112837Sgabeblack@google.com{
33212951Sgabeblack@google.com    ::sc_core::wait(t, e);
33312837Sgabeblack@google.com}
33412837Sgabeblack@google.com
33512837Sgabeblack@google.comvoid
33612951Sgabeblack@google.comsc_module::wait(double d, sc_time_unit u, const sc_event &e)
33712837Sgabeblack@google.com{
33812951Sgabeblack@google.com    ::sc_core::wait(d, u, e);
33912837Sgabeblack@google.com}
34012837Sgabeblack@google.com
34112837Sgabeblack@google.comvoid
34212951Sgabeblack@google.comsc_module::wait(const sc_time &t, const sc_event_or_list &eol)
34312837Sgabeblack@google.com{
34412951Sgabeblack@google.com    ::sc_core::wait(t, eol);
34512837Sgabeblack@google.com}
34612837Sgabeblack@google.com
34712837Sgabeblack@google.comvoid
34812951Sgabeblack@google.comsc_module::wait(double d, sc_time_unit u, const sc_event_or_list &eol)
34912837Sgabeblack@google.com{
35012951Sgabeblack@google.com    ::sc_core::wait(d, u, eol);
35112837Sgabeblack@google.com}
35212837Sgabeblack@google.com
35312837Sgabeblack@google.comvoid
35412951Sgabeblack@google.comsc_module::wait(const sc_time &t, const sc_event_and_list &eal)
35512837Sgabeblack@google.com{
35612951Sgabeblack@google.com    ::sc_core::wait(t, eal);
35712837Sgabeblack@google.com}
35812837Sgabeblack@google.com
35912837Sgabeblack@google.comvoid
36012951Sgabeblack@google.comsc_module::wait(double d, sc_time_unit u, const sc_event_and_list &eal)
36112837Sgabeblack@google.com{
36212951Sgabeblack@google.com    ::sc_core::wait(d, u, eal);
36312837Sgabeblack@google.com}
36412837Sgabeblack@google.com
36512837Sgabeblack@google.com
36612837Sgabeblack@google.comvoid
36712909Sgabeblack@google.comsc_module::halt()
36812909Sgabeblack@google.com{
36912951Sgabeblack@google.com    ::sc_core::halt();
37012909Sgabeblack@google.com}
37112909Sgabeblack@google.com
37212914Sgabeblack@google.comvoid
37312951Sgabeblack@google.comsc_module::at_posedge(const sc_signal_in_if<bool> &s)
37412914Sgabeblack@google.com{
37512951Sgabeblack@google.com    ::sc_core::at_posedge(s);
37612914Sgabeblack@google.com}
37712914Sgabeblack@google.com
37812914Sgabeblack@google.comvoid
37912951Sgabeblack@google.comsc_module::at_posedge(const sc_signal_in_if<sc_dt::sc_logic> &s)
38012914Sgabeblack@google.com{
38112951Sgabeblack@google.com    ::sc_core::at_posedge(s);
38212914Sgabeblack@google.com}
38312914Sgabeblack@google.com
38412914Sgabeblack@google.comvoid
38512951Sgabeblack@google.comsc_module::at_negedge(const sc_signal_in_if<bool> &s)
38612914Sgabeblack@google.com{
38712951Sgabeblack@google.com    ::sc_core::at_negedge(s);
38812914Sgabeblack@google.com}
38912914Sgabeblack@google.com
39012914Sgabeblack@google.comvoid
39112951Sgabeblack@google.comsc_module::at_negedge(const sc_signal_in_if<sc_dt::sc_logic> &s)
39212914Sgabeblack@google.com{
39312951Sgabeblack@google.com    ::sc_core::at_negedge(s);
39412914Sgabeblack@google.com}
39512914Sgabeblack@google.com
39612909Sgabeblack@google.com
39712909Sgabeblack@google.comvoid
39812837Sgabeblack@google.comnext_trigger()
39912837Sgabeblack@google.com{
40012837Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
40112837Sgabeblack@google.com}
40212837Sgabeblack@google.com
40312837Sgabeblack@google.comvoid
40412837Sgabeblack@google.comnext_trigger(const sc_event &)
40512837Sgabeblack@google.com{
40612837Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
40712837Sgabeblack@google.com}
40812837Sgabeblack@google.com
40912837Sgabeblack@google.comvoid
41012837Sgabeblack@google.comnext_trigger(const sc_event_or_list &)
41112837Sgabeblack@google.com{
41212837Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
41312837Sgabeblack@google.com}
41412837Sgabeblack@google.com
41512837Sgabeblack@google.comvoid
41612837Sgabeblack@google.comnext_trigger(const sc_event_and_list &)
41712837Sgabeblack@google.com{
41812837Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
41912837Sgabeblack@google.com}
42012837Sgabeblack@google.com
42112837Sgabeblack@google.comvoid
42212837Sgabeblack@google.comnext_trigger(const sc_time &)
42312837Sgabeblack@google.com{
42412837Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
42512837Sgabeblack@google.com}
42612837Sgabeblack@google.com
42712837Sgabeblack@google.comvoid
42812951Sgabeblack@google.comnext_trigger(double d, sc_time_unit u)
42912837Sgabeblack@google.com{
43012951Sgabeblack@google.com    next_trigger(sc_time(d, u));
43112837Sgabeblack@google.com}
43212837Sgabeblack@google.com
43312837Sgabeblack@google.comvoid
43412837Sgabeblack@google.comnext_trigger(const sc_time &, const sc_event &)
43512837Sgabeblack@google.com{
43612837Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
43712837Sgabeblack@google.com}
43812837Sgabeblack@google.com
43912837Sgabeblack@google.comvoid
44012951Sgabeblack@google.comnext_trigger(double d, sc_time_unit u, const sc_event &e)
44112837Sgabeblack@google.com{
44212951Sgabeblack@google.com    next_trigger(sc_time(d, u), e);
44312837Sgabeblack@google.com}
44412837Sgabeblack@google.com
44512837Sgabeblack@google.comvoid
44612837Sgabeblack@google.comnext_trigger(const sc_time &, const sc_event_or_list &)
44712837Sgabeblack@google.com{
44812837Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
44912837Sgabeblack@google.com}
45012837Sgabeblack@google.com
45112837Sgabeblack@google.comvoid
45212951Sgabeblack@google.comnext_trigger(double d, sc_time_unit u, const sc_event_or_list &eol)
45312837Sgabeblack@google.com{
45412951Sgabeblack@google.com    next_trigger(sc_time(d, u), eol);
45512837Sgabeblack@google.com}
45612837Sgabeblack@google.com
45712837Sgabeblack@google.comvoid
45812837Sgabeblack@google.comnext_trigger(const sc_time &, const sc_event_and_list &)
45912837Sgabeblack@google.com{
46012837Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
46112837Sgabeblack@google.com}
46212837Sgabeblack@google.com
46312837Sgabeblack@google.comvoid
46412951Sgabeblack@google.comnext_trigger(double d, sc_time_unit u, const sc_event_and_list &eal)
46512837Sgabeblack@google.com{
46612951Sgabeblack@google.com    next_trigger(sc_time(d, u), eal);
46712837Sgabeblack@google.com}
46812837Sgabeblack@google.com
46912929Sgabeblack@google.combool
47012929Sgabeblack@google.comtimed_out()
47112929Sgabeblack@google.com{
47212929Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
47312929Sgabeblack@google.com    return false;
47412929Sgabeblack@google.com}
47512929Sgabeblack@google.com
47612837Sgabeblack@google.com
47712837Sgabeblack@google.comvoid
47812837Sgabeblack@google.comwait()
47912837Sgabeblack@google.com{
48012837Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
48112837Sgabeblack@google.com}
48212837Sgabeblack@google.com
48312837Sgabeblack@google.comvoid
48412837Sgabeblack@google.comwait(int)
48512837Sgabeblack@google.com{
48612837Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
48712837Sgabeblack@google.com}
48812837Sgabeblack@google.com
48912837Sgabeblack@google.comvoid
49012837Sgabeblack@google.comwait(const sc_event &)
49112837Sgabeblack@google.com{
49212837Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
49312837Sgabeblack@google.com}
49412837Sgabeblack@google.com
49512837Sgabeblack@google.comvoid
49612837Sgabeblack@google.comwait(const sc_event_or_list &)
49712837Sgabeblack@google.com{
49812837Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
49912837Sgabeblack@google.com}
50012837Sgabeblack@google.com
50112837Sgabeblack@google.comvoid
50212837Sgabeblack@google.comwait(const sc_event_and_list &)
50312837Sgabeblack@google.com{
50412837Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
50512837Sgabeblack@google.com}
50612837Sgabeblack@google.com
50712837Sgabeblack@google.comvoid
50812837Sgabeblack@google.comwait(const sc_time &)
50912837Sgabeblack@google.com{
51012837Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
51112837Sgabeblack@google.com}
51212837Sgabeblack@google.com
51312837Sgabeblack@google.comvoid
51412951Sgabeblack@google.comwait(double d, sc_time_unit u)
51512837Sgabeblack@google.com{
51612951Sgabeblack@google.com    wait(sc_time(d, u));
51712837Sgabeblack@google.com}
51812837Sgabeblack@google.com
51912837Sgabeblack@google.comvoid
52012837Sgabeblack@google.comwait(const sc_time &, const sc_event &)
52112837Sgabeblack@google.com{
52212837Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
52312837Sgabeblack@google.com}
52412837Sgabeblack@google.com
52512837Sgabeblack@google.comvoid
52612951Sgabeblack@google.comwait(double d, sc_time_unit u, const sc_event &e)
52712837Sgabeblack@google.com{
52812951Sgabeblack@google.com    wait(sc_time(d, u), e);
52912837Sgabeblack@google.com}
53012837Sgabeblack@google.com
53112837Sgabeblack@google.comvoid
53212837Sgabeblack@google.comwait(const sc_time &, const sc_event_or_list &)
53312837Sgabeblack@google.com{
53412837Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
53512837Sgabeblack@google.com}
53612837Sgabeblack@google.com
53712837Sgabeblack@google.comvoid
53812951Sgabeblack@google.comwait(double d, sc_time_unit u, const sc_event_or_list &eol)
53912837Sgabeblack@google.com{
54012951Sgabeblack@google.com    wait(sc_time(d, u), eol);
54112837Sgabeblack@google.com}
54212837Sgabeblack@google.com
54312837Sgabeblack@google.comvoid
54412837Sgabeblack@google.comwait(const sc_time &, const sc_event_and_list &)
54512837Sgabeblack@google.com{
54612837Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
54712837Sgabeblack@google.com}
54812837Sgabeblack@google.com
54912837Sgabeblack@google.comvoid
55012951Sgabeblack@google.comwait(double d, sc_time_unit u, const sc_event_and_list &eal)
55112837Sgabeblack@google.com{
55212951Sgabeblack@google.com    wait(sc_time(d, u), eal);
55312837Sgabeblack@google.com}
55412837Sgabeblack@google.com
55512909Sgabeblack@google.comvoid
55612909Sgabeblack@google.comhalt()
55712909Sgabeblack@google.com{
55812909Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
55912909Sgabeblack@google.com}
56012909Sgabeblack@google.com
56112914Sgabeblack@google.comvoid
56212914Sgabeblack@google.comat_posedge(const sc_signal_in_if<bool> &)
56312914Sgabeblack@google.com{
56412914Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
56512914Sgabeblack@google.com}
56612914Sgabeblack@google.com
56712914Sgabeblack@google.comvoid
56812914Sgabeblack@google.comat_posedge(const sc_signal_in_if<sc_dt::sc_logic> &)
56912914Sgabeblack@google.com{
57012914Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
57112914Sgabeblack@google.com}
57212914Sgabeblack@google.com
57312914Sgabeblack@google.comvoid
57412914Sgabeblack@google.comat_negedge(const sc_signal_in_if<bool> &)
57512914Sgabeblack@google.com{
57612914Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
57712914Sgabeblack@google.com}
57812914Sgabeblack@google.com
57912914Sgabeblack@google.comvoid
58012914Sgabeblack@google.comat_negedge(const sc_signal_in_if<sc_dt::sc_logic> &)
58112914Sgabeblack@google.com{
58212914Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
58312914Sgabeblack@google.com}
58412914Sgabeblack@google.com
58512837Sgabeblack@google.comconst char *
58612837Sgabeblack@google.comsc_gen_unique_name(const char *)
58712837Sgabeblack@google.com{
58812837Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
58912837Sgabeblack@google.com    return "";
59012837Sgabeblack@google.com}
59112837Sgabeblack@google.com
59212837Sgabeblack@google.combool
59312930Sgabeblack@google.comsc_hierarchical_name_exists(const char *name)
59412930Sgabeblack@google.com{
59512930Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
59612930Sgabeblack@google.com    return false;
59712930Sgabeblack@google.com}
59812930Sgabeblack@google.com
59912930Sgabeblack@google.combool
60012837Sgabeblack@google.comsc_start_of_simulation_invoked()
60112837Sgabeblack@google.com{
60212837Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
60312837Sgabeblack@google.com    return false;
60412837Sgabeblack@google.com}
60512837Sgabeblack@google.com
60612837Sgabeblack@google.combool
60712837Sgabeblack@google.comsc_end_of_simulation_invoked()
60812837Sgabeblack@google.com{
60912837Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
61012837Sgabeblack@google.com    return false;
61112837Sgabeblack@google.com}
61212837Sgabeblack@google.com
61312901Sgabeblack@google.comsc_module *
61412901Sgabeblack@google.comsc_module_sc_new(sc_module *mod)
61512901Sgabeblack@google.com{
61612901Sgabeblack@google.com    static std::vector<std::unique_ptr<sc_module> > modules;
61712901Sgabeblack@google.com    modules.emplace_back(mod);
61812901Sgabeblack@google.com    return mod;
61912901Sgabeblack@google.com}
62012901Sgabeblack@google.com
62112837Sgabeblack@google.com} // namespace sc_core
622