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" |
36#include "systemc/core/kernel.hh" 37#include "systemc/core/module.hh" |
38#include "systemc/core/object.hh" |
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{ |
800 return sc_gem5::findEvent(name) != sc_gem5::allEvents.end() || 801 ::sc_gem5::findObject(name, sc_gem5::allObjects); |
802} 803 804bool 805sc_start_of_simulation_invoked() 806{ 807 return ::sc_gem5::kernel->startOfSimulationComplete(); 808} 809 --- 15 unchanged lines hidden --- |