sc_module.cc (13268:9802f3e0a6ae) sc_module.cc (13280:3a1147706ccf)
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

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

27 * Authors: Gabe Black
28 */
29
30#include <memory>
31#include <string>
32#include <vector>
33
34#include "base/logging.hh"
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

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

27 * Authors: Gabe Black
28 */
29
30#include <memory>
31#include <string>
32#include <vector>
33
34#include "base/logging.hh"
35#include "systemc/core/event.hh"
35#include "systemc/core/kernel.hh"
36#include "systemc/core/module.hh"
36#include "systemc/core/kernel.hh"
37#include "systemc/core/module.hh"
38#include "systemc/core/object.hh"
37#include "systemc/core/process_types.hh"
38#include "systemc/core/sensitivity.hh"
39#include "systemc/ext/channel/sc_signal_in_if.hh"
40#include "systemc/ext/core/sc_module.hh"
41#include "systemc/ext/core/sc_module_name.hh"
42#include "systemc/ext/dt/bit/sc_logic.hh"
43#include "systemc/ext/utils/sc_report_handler.hh"
44

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

790 auto mod = sc_gem5::pickParentModule();
791 return mod ? mod->uniqueName(seed) :
792 ::sc_gem5::nameGen.gen(seed);
793}
794
795bool
796sc_hierarchical_name_exists(const char *name)
797{
39#include "systemc/core/process_types.hh"
40#include "systemc/core/sensitivity.hh"
41#include "systemc/ext/channel/sc_signal_in_if.hh"
42#include "systemc/ext/core/sc_module.hh"
43#include "systemc/ext/core/sc_module_name.hh"
44#include "systemc/ext/dt/bit/sc_logic.hh"
45#include "systemc/ext/utils/sc_report_handler.hh"
46

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

792 auto mod = sc_gem5::pickParentModule();
793 return mod ? mod->uniqueName(seed) :
794 ::sc_gem5::nameGen.gen(seed);
795}
796
797bool
798sc_hierarchical_name_exists(const char *name)
799{
798 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
799 return false;
800 return sc_gem5::findEvent(name) != sc_gem5::allEvents.end() ||
801 ::sc_gem5::findObject(name, sc_gem5::allObjects);
800}
801
802bool
803sc_start_of_simulation_invoked()
804{
805 return ::sc_gem5::kernel->startOfSimulationComplete();
806}
807

--- 15 unchanged lines hidden ---
802}
803
804bool
805sc_start_of_simulation_invoked()
806{
807 return ::sc_gem5::kernel->startOfSimulationComplete();
808}
809

--- 15 unchanged lines hidden ---