sc_module.hh (12864:7f28dd4f33ac) | sc_module.hh (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 --- 230 unchanged lines hidden (view full) --- 239const char *sc_gen_unique_name(const char *); 240 241typedef sc_module sc_behavior; 242typedef sc_module sc_channel; 243 244bool sc_start_of_simulation_invoked(); 245bool sc_end_of_simulation_invoked(); 246 | 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 --- 230 unchanged lines hidden (view full) --- 239const char *sc_gen_unique_name(const char *); 240 241typedef sc_module sc_behavior; 242typedef sc_module sc_channel; 243 244bool sc_start_of_simulation_invoked(); 245bool sc_end_of_simulation_invoked(); 246 |
247// Nonstandard 248// Allocates a module of type x and records a pointer to it so that it gets 249// destructed automatically at the end of the simulation. 250sc_module *sc_module_sc_new(sc_module *); 251#define SC_NEW(x) ::sc_core::sc_module_sc_new(new x); 252 |
|
247} // namespace sc_core 248 249#endif //__SYSTEMC_EXT_CORE_SC_MODULE_HH__ | 253} // namespace sc_core 254 255#endif //__SYSTEMC_EXT_CORE_SC_MODULE_HH__ |