aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2020-10-20 09:50:42 +0100
committerDavid Shah <dave@ds0.me>2020-11-30 08:45:27 +0000
commit70749b37d02b7efa677f231db32248743944fc3e (patch)
treea2f350a8f8fddaa89413452bf3147ab3ff97b424
parent1e4eb5ec391a26b1da8e3e7609ffc92768df1976 (diff)
downloadnextpnr-70749b37d02b7efa677f231db32248743944fc3e.tar.gz
nextpnr-70749b37d02b7efa677f231db32248743944fc3e.tar.bz2
nextpnr-70749b37d02b7efa677f231db32248743944fc3e.zip
nexus: Fix Python bindings
Signed-off-by: David Shah <dave@ds0.me>
-rw-r--r--nexus/arch_pybindings.cc4
-rw-r--r--nexus/pdc.cc3
2 files changed, 2 insertions, 5 deletions
diff --git a/nexus/arch_pybindings.cc b/nexus/arch_pybindings.cc
index 8bee7713..caab8312 100644
--- a/nexus/arch_pybindings.cc
+++ b/nexus/arch_pybindings.cc
@@ -29,9 +29,7 @@ NEXTPNR_NAMESPACE_BEGIN
void arch_wrap_python(py::module &m)
{
using namespace PythonConversion;
- py::class_<ArchArgs>(m, "ArchArgs")
- .def_readwrite("chipdb", &ArchArgs::chipdb)
- .def_readwrite("device", &ArchArgs::device);
+ py::class_<ArchArgs>(m, "ArchArgs").def_readwrite("device", &ArchArgs::device);
py::class_<BelId>(m, "BelId").def_readwrite("index", &BelId::index).def_readwrite("tile", &BelId::tile);
diff --git a/nexus/pdc.cc b/nexus/pdc.cc
index 189977e9..3efab69a 100644
--- a/nexus/pdc.cc
+++ b/nexus/pdc.cc
@@ -206,8 +206,7 @@ struct PDCParser
else if (cmd == "ldc_set_sysconfig" || cmd == "get_nets" || cmd == "create_clock") {
log_warning("%s is not yet supported!\n", cmd.c_str());
return TCLValue("");
- }
- else
+ } else
log_error("Unsupported PDC command '%s'\n", cmd.c_str());
}