rogue
Loading...
Searching...
No Matches
src
rogue
protocols
xilinx
module.cpp
Go to the documentation of this file.
1
18
#include "
rogue/Directives.h
"
19
20
#include "
rogue/protocols/xilinx/module.h
"
21
22
#include <boost/python.hpp>
23
24
#include "
rogue/protocols/xilinx/JtagDriver.h
"
25
#include "
rogue/protocols/xilinx/Xvc.h
"
26
27
namespace
bp = boost::python;
28
namespace
rpx
=
rogue::protocols::xilinx
;
29
30
void
rpx::setup_module
() {
31
// map the IO namespace to a sub-module
32
bp::object module(bp::handle<>(bp::borrowed(PyImport_AddModule(
"rogue.protocols.xilinx"
))));
33
34
// make "from mypackage import class1" work
35
bp::scope().attr(
"xilinx"
) =
module
;
36
37
// set the current scope to the new sub-module
38
bp::scope io_scope =
module
;
39
40
rpx::JtagDriver::setup_python();
41
rpx::Xvc::setup_python();
42
}
Directives.h
JtagDriver.h
Xvc.h
rogue::protocols::xilinx
Definition
JtagDriver.h:42
rogue::protocols::xilinx::setup_module
void setup_module()
Definition
module.cpp:30
module.h
Generated by
1.9.8