module.hh (13053:a7a320144bc1) | module.hh (13059:4be5f408e128) |
---|---|
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 --- 30 unchanged lines hidden (view full) --- 39 40#include "systemc/core/object.hh" 41#include "systemc/ext/core/sc_module.hh" 42 43namespace sc_core 44{ 45 46class sc_port_base; | 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 --- 30 unchanged lines hidden (view full) --- 39 40#include "systemc/core/object.hh" 41#include "systemc/ext/core/sc_module.hh" 42 43namespace sc_core 44{ 45 46class sc_port_base; |
47class sc_export_base; |
|
47 48} // namespace sc_core 49 50namespace sc_gem5 51{ 52 53class UniqueNameGen 54{ --- 51 unchanged lines hidden (view full) --- 106 return _obj; 107 } 108 109 void pop(); 110 111 const char *uniqueName(const char *seed) { return nameGen.gen(seed); } 112 113 std::vector<::sc_core::sc_port_base *> ports; | 48 49} // namespace sc_core 50 51namespace sc_gem5 52{ 53 54class UniqueNameGen 55{ --- 51 unchanged lines hidden (view full) --- 107 return _obj; 108 } 109 110 void pop(); 111 112 const char *uniqueName(const char *seed) { return nameGen.gen(seed); } 113 114 std::vector<::sc_core::sc_port_base *> ports; |
115 std::vector<::sc_core::sc_export_base *> exports; |
|
114}; 115 116Module *currentModule(); 117Module *newModule(); 118 119void callbackModule(Module *m); 120Module *callbackModule(); 121 122extern std::list<Module *> allModules; 123 124} // namespace sc_gem5 125 126#endif //__SYSTEMC_CORE_MODULE_HH__ | 116}; 117 118Module *currentModule(); 119Module *newModule(); 120 121void callbackModule(Module *m); 122Module *callbackModule(); 123 124extern std::list<Module *> allModules; 125 126} // namespace sc_gem5 127 128#endif //__SYSTEMC_CORE_MODULE_HH__ |