module.hh (13059:4be5f408e128) module.hh (13079:e7e261dd975b)
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

--- 102 unchanged lines hidden (view full) ---

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;
116};
117
118Module *currentModule();
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

--- 102 unchanged lines hidden (view full) ---

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;
116};
117
118Module *currentModule();
119Module *newModuleChecked();
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__
120Module *newModule();
121
122void callbackModule(Module *m);
123Module *callbackModule();
124
125extern std::list<Module *> allModules;
126
127} // namespace sc_gem5
128
129#endif //__SYSTEMC_CORE_MODULE_HH__