nexus: Fix Python bindings

Signed-off-by: David Shah <dave@ds0.me>
This commit is contained in:
David Shah 2020-10-20 09:50:42 +01:00
parent 1e4eb5ec39
commit 70749b37d0
2 changed files with 2 additions and 5 deletions

View File

@ -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);

View File

@ -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());
}