Searched refs:module (Results 26 - 50 of 73) sorted by relevance

123

/gem5/src/systemc/tests/systemc/utils/sc_vector/test06/
H A Dtest06.cpp71 SC_MODULE( module )
79 SC_CTOR(module)
98 module m("dut");
/gem5/src/python/pybind11/
H A Dcore.cc79 py::module m = py::module::import("m5.SimObject");
100 init_drain(py::module &m_native)
102 py::module m = m_native.def_submodule("drain");
132 init_serialize(py::module &m_native)
134 py::module m = m_native.def_submodule("serialize");
145 init_range(py::module &m_native)
147 py::module m = m_native.def_submodule("range");
180 init_net(py::module &m_native)
182 py::module
[all...]
H A Ddebug.cc82 pybind_init_debug(py::module &m_native)
84 py::module m_debug = m_native.def_submodule("debug");
112 py::module m_trace = m_native.def_submodule("trace");
H A Devent.cc105 pybind_init_event(py::module &m_native)
107 py::module m = m_native.def_submodule("event");
/gem5/src/systemc/tests/systemc/utils/sc_vector/test05/
H A Dtest05.cpp80 SC_MODULE(module)
85 SC_CTOR(module)
93 { dump_port_array( "module::before_end_of_elaboration", in ); }
95 { dump_port_array( "module::end_of_elaboration", in ); }
101 module top("top");
/gem5/ext/pybind11/tests/
H A Dtest_iostream.cpp40 py::scoped_ostream_redirect redir(std::cout, py::module::import("sys").attr("stdout"));
49 py::scoped_ostream_redirect redir(std::cerr, py::module::import("sys").attr("stderr"));
68 py::scoped_ostream_redirect redirout(std::cout, py::module::import("sys").attr("stdout"));
69 py::scoped_ostream_redirect redirerr(std::cerr, py::module::import("sys").attr("stderr"));
H A Dtest_modules.cpp16 py::module m_sub = m.def_submodule("subsubmodule");
53 m.attr("OD") = py::module::import("collections").attr("OrderedDict");
63 auto dm = py::module("dummy");
H A Dtest_gil_scoped.cpp46 auto cm = py::module::import("cross_module_gil_utils");
H A Dtest_eval.cpp17 auto global = py::dict(py::module::import("__main__").attr("__dict__"));
/gem5/ext/pybind11/include/pybind11/
H A Dembed.h32 Add a new module to the table of builtins for the interpreter. Must be
34 module (without quotes). The second parameter is the variable which will
35 be used as the interface to add functions and classes to the module.
47 static void PYBIND11_CONCAT(pybind11_init_, name)(pybind11::module &); \
49 auto m = pybind11::module(PYBIND11_TOSTRING(name)); \
64 void PYBIND11_CONCAT(pybind11_init_, name)(pybind11::module &variable)
83 pybind11_fail("Insufficient memory to add a new module");
109 module::import("sys").attr("path").cast<list>().append(".");
H A Diostream.h98 py::scoped_ostream_redirect output{std::cerr, py::module::import("sys").attr("stderr")};
111 object pyostream = module::import("sys").attr("stdout"))
142 object pyostream = module::import("sys").attr("stderr"))
202 inline class_<detail::OstreamRedirect> add_ostream_redirect(module m, std::string name = "ostream_redirect") {
109 scoped_ostream_redirect( std::ostream &costream = std::cout, object pyostream = module::import(�).attr(�)) argument
140 scoped_estream_redirect( std::ostream &costream = std::cerr, object pyostream = module::import(�).attr(�)) argument
/gem5/src/sim/
H A Dinit.cc136 // Load the importer module
156 void (*init_func)(py::module &),
164 void (*init_func)(py::module &))
171 EmbeddedPyBind::init(py::module &m)
203 py::module m_m5 = py::module("_m5");
289 // We have to set things up in the special __main__ module
290 PyObject *module = PyImport_AddModule(PyCC("__main__")); local
291 if (module == NULL)
293 PyObject *dict = PyModule_GetDict(module);
[all...]
/gem5/configs/common/
H A DCpuConfig.py144 for mod_name, module in inspect.getmembers(package, inspect.ismodule):
145 for name, cls in inspect.getmembers(module, is_cpu_class):
/gem5/src/systemc/tests/systemc/kernel/sc_event/test15/
H A Devent_triggered.cpp64 SC_MODULE( module )
69 SC_CTOR( module )
199 module m("m");
/gem5/util/systemc/gem5_within_systemc/
H A Dsc_gem5_control.cc155 module = new Gem5TopLevelModule("gem5", config_filename);
164 module->registerEndOfElaboration(func);
190 new CxxConfigManager(*(module->config_file)),
H A Dsc_module.cc53 * thread on that module implements the gem5 event loop.
99 module.notify();
103 Module::setupEventQueues(Module &module) argument
110 mainEventQueue.push_back(new SCEventQueue("events", module));
H A Dsc_gem5_control.hh50 * module providing the gem5 `simulate' function as its sole
129 /** Private SystemC module containing top level simulation control */
130 Gem5TopLevelModule *module; member in class:Gem5SystemC::Gem5Control
/gem5/ext/ply/example/newclasscalc/
H A Dcalc.py44 lex.lex(module=self, debug=self.debug)
45 yacc.yacc(module=self,
/gem5/ext/ply/example/classcalc/
H A Dcalc.py41 lex.lex(module=self, debug=self.debug)
42 yacc.yacc(module=self,
/gem5/src/systemc/core/
H A Dsc_main_python.cc93 // Make our sc_main wrapper available in the internal _m5 python module under
99 run(pybind11::module &systemc) override
H A Dsc_time_python.cc41 run(pybind11::module &systemc) override
/gem5/src/systemc/tests/tlm/bugs/multi_passthrough_sockets_bug/
H A Dmulti_passthrough_sockets_bug.cpp103 // Simple empty extension to verify the target module is receiving it
151 void find_target_sockets(sc_core::sc_module *module) argument
153 std::vector<sc_core::sc_object*> children = module->get_child_objects();
/gem5/src/python/m5/util/
H A Dgrammar.py40 if 'module' in kwargs:
41 raise AttributeError("module is an illegal attribute")
45 if 'module' in kwargs:
46 raise AttributeError("module is an illegal attribute")
71 self.lex = ply.lex.lex(module=self, **self.lex_kwargs)
75 self.yacc = ply.yacc.yacc(module=self, **self.yacc_kwargs)
/gem5/ext/pybind11/include/pybind11/detail/
H A Dclass.h355 // the type here. For cross-module compatibility, we shouldn't compare directly
530 object module; local
533 module = rec.scope.attr("__module__");
535 module = rec.scope.attr("__name__");
540 module ? str(module).cast<std::string>() + "." + rec.name :
617 if (module) // Needed by pydoc
618 setattr((PyObject *) type, "__module__", module);
/gem5/ext/ply/test/
H A Dtestyacc.py34 def run_import(module):
35 code = "import "+module
37 del sys.modules[module]

Completed in 15 milliseconds

123