sc_module.cc (12837:413a7b490b1b) sc_module.cc (12901:72bc9ff65802)
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

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

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
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

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

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 <memory>
31#include <vector>
32
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{

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

534
535bool
536sc_end_of_simulation_invoked()
537{
538 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
539 return false;
540}
541
33#include "base/logging.hh"
34#include "systemc/ext/core/sc_module.hh"
35
36namespace sc_core
37{
38
39sc_bind_proxy::sc_bind_proxy(const sc_interface &interface)
40{

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

537
538bool
539sc_end_of_simulation_invoked()
540{
541 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
542 return false;
543}
544
545sc_module *
546sc_module_sc_new(sc_module *mod)
547{
548 static std::vector<std::unique_ptr<sc_module> > modules;
549 modules.emplace_back(mod);
550 return mod;
551}
552
542} // namespace sc_core
553} // namespace sc_core