Deleted Added
sdiff udiff text old ( 13053:a7a320144bc1 ) new ( 13059:4be5f408e128 )
full compact
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;
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;
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__