diff options
author | gatecat <gatecat@ds0.me> | 2022-08-18 15:09:41 +0200 |
---|---|---|
committer | gatecat <gatecat@ds0.me> | 2022-08-18 15:09:41 +0200 |
commit | 05167fcb8bf9cd85ea605331ca36cac6f25ce67f (patch) | |
tree | b1fff9667cf6cc68c72d3dc82361b22913971081 | |
parent | 5c93d71c2a2406305e800a1f26008e3b1759f0e3 (diff) | |
download | nextpnr-05167fcb8bf9cd85ea605331ca36cac6f25ce67f.tar.gz nextpnr-05167fcb8bf9cd85ea605331ca36cac6f25ce67f.tar.bz2 nextpnr-05167fcb8bf9cd85ea605331ca36cac6f25ce67f.zip |
pybindings: Mark CellInfo::bel as readonly
bel bindings should be updated with bindBel/unbindBel during placement, or setting the BEL attribute for constraints before placement.
Fixes #522
Signed-off-by: gatecat <gatecat@ds0.me>
-rw-r--r-- | common/kernel/pybindings.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/common/kernel/pybindings.cc b/common/kernel/pybindings.cc index 9a783eb4..f738f081 100644 --- a/common/kernel/pybindings.cc +++ b/common/kernel/pybindings.cc @@ -191,8 +191,7 @@ PYBIND11_EMBEDDED_MODULE(MODULE_NAME, m) ci_cls, "params"); readonly_wrapper<CellInfo &, decltype(&CellInfo::ports), &CellInfo::ports, wrap_context<PortMap &>>::def_wrap( ci_cls, "ports"); - readwrite_wrapper<CellInfo &, decltype(&CellInfo::bel), &CellInfo::bel, conv_to_str<BelId>, - conv_from_str<BelId>>::def_wrap(ci_cls, "bel"); + readonly_wrapper<CellInfo &, decltype(&CellInfo::bel), &CellInfo::bel, conv_to_str<BelId>>::def_wrap(ci_cls, "bel"); readwrite_wrapper<CellInfo &, decltype(&CellInfo::belStrength), &CellInfo::belStrength, pass_through<PlaceStrength>, pass_through<PlaceStrength>>::def_wrap(ci_cls, "belStrength"); |