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 --- 50 unchanged lines hidden (view full) --- 59Process * 60newCThreadProcess(const char *name, ProcessFuncWrapper *func) 61{ 62 Process *p = new CThread(name, func); 63 scheduler.reg(p); 64 return p; 65} 66 |
67UniqueNameGen nameGen; 68 |
69} // namespace sc_gem5 70 71namespace sc_core 72{ 73 74sc_bind_proxy::sc_bind_proxy(const sc_interface &_interface) : 75 _interface(&_interface), _port(nullptr) 76{} --- 563 unchanged lines hidden (view full) --- 640 641void 642at_negedge(const sc_signal_in_if<sc_dt::sc_logic> &) 643{ 644 warn("%s not implemented.\n", __PRETTY_FUNCTION__); 645} 646 647const char * |
648sc_gen_unique_name(const char *seed) |
649{ |
650 ::sc_gem5::Module *mod = ::sc_gem5::currentModule(); 651 return mod ? mod->uniqueName(seed) : 652 ::sc_gem5::nameGen.gen(seed); |
653} 654 655bool 656sc_hierarchical_name_exists(const char *name) 657{ 658 warn("%s not implemented.\n", __PRETTY_FUNCTION__); 659 return false; 660} --- 22 unchanged lines hidden --- |