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>
This commit is contained in:
parent
5c93d71c2a
commit
05167fcb8b
@ -191,8 +191,7 @@ PYBIND11_EMBEDDED_MODULE(MODULE_NAME, m)
|
|||||||
ci_cls, "params");
|
ci_cls, "params");
|
||||||
readonly_wrapper<CellInfo &, decltype(&CellInfo::ports), &CellInfo::ports, wrap_context<PortMap &>>::def_wrap(
|
readonly_wrapper<CellInfo &, decltype(&CellInfo::ports), &CellInfo::ports, wrap_context<PortMap &>>::def_wrap(
|
||||||
ci_cls, "ports");
|
ci_cls, "ports");
|
||||||
readwrite_wrapper<CellInfo &, decltype(&CellInfo::bel), &CellInfo::bel, conv_to_str<BelId>,
|
readonly_wrapper<CellInfo &, decltype(&CellInfo::bel), &CellInfo::bel, conv_to_str<BelId>>::def_wrap(ci_cls, "bel");
|
||||||
conv_from_str<BelId>>::def_wrap(ci_cls, "bel");
|
|
||||||
readwrite_wrapper<CellInfo &, decltype(&CellInfo::belStrength), &CellInfo::belStrength, pass_through<PlaceStrength>,
|
readwrite_wrapper<CellInfo &, decltype(&CellInfo::belStrength), &CellInfo::belStrength, pass_through<PlaceStrength>,
|
||||||
pass_through<PlaceStrength>>::def_wrap(ci_cls, "belStrength");
|
pass_through<PlaceStrength>>::def_wrap(ci_cls, "belStrength");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user