systemc: Add the nonstandard sc_hierarchical_name_exists function.

Change-Id: I1340bb6cb0ae29d81b5d73b3dd39ebb11c14802c
Reviewed-on: https://gem5-review.googlesource.com/11280
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
This commit is contained in:
Gabe Black
2018-06-15 22:42:26 -07:00
parent 48a1604941
commit 098aa356cf
3 changed files with 11 additions and 0 deletions

View File

@@ -614,6 +614,13 @@ sc_gen_unique_name(const char *)
return "";
}
bool
sc_hierarchical_name_exists(const char *name)
{
warn("%s not implemented.\n", __PRETTY_FUNCTION__);
return false;
}
bool
sc_start_of_simulation_invoked()
{

View File

@@ -93,6 +93,7 @@ using sc_core::next_trigger;
using sc_core::wait;
using sc_core::halt;
using sc_core::sc_gen_unique_name;
using sc_core::sc_hierarchical_name_exists;
using sc_core::sc_behavior;
using sc_core::sc_channel;
using sc_core::sc_start_of_simulation_invoked;

View File

@@ -272,6 +272,9 @@ void at_negedge(const sc_signal_in_if<sc_dt::sc_logic> &);
const char *sc_gen_unique_name(const char *);
// Nonstandard
bool sc_hierarchical_name_exists(const char *name);
typedef sc_module sc_behavior;
typedef sc_module sc_channel;