diff options
author | gatecat <gatecat@ds0.me> | 2022-08-10 18:58:22 +0100 |
---|---|---|
committer | gatecat <gatecat@ds0.me> | 2022-08-10 18:58:22 +0100 |
commit | c60fb94b6c45ca74632e972995555170063b3a03 (patch) | |
tree | b6bc6fe3cecc6962e12e61b9febb5c85e06960ed /ice40/arch_place.cc | |
parent | a20d21bd135aceb9155eaee714488d1d76c60898 (diff) | |
download | nextpnr-c60fb94b6c45ca74632e972995555170063b3a03.tar.gz nextpnr-c60fb94b6c45ca74632e972995555170063b3a03.tar.bz2 nextpnr-c60fb94b6c45ca74632e972995555170063b3a03.zip |
refactor: Use IdString::in instead of || chains
Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to 'ice40/arch_place.cc')
-rw-r--r-- | ice40/arch_place.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ice40/arch_place.cc b/ice40/arch_place.cc index 67ddf777..5c3fa3c5 100644 --- a/ice40/arch_place.cc +++ b/ice40/arch_place.cc @@ -105,7 +105,7 @@ bool Arch::isBelLocationValid(BelId bel) const // that are a PLL clock output. auto wire = getBelPinWire(bel, id_D_IN_0); for (auto pin : getWireBelPins(wire)) { - if (pin.pin == id_PLLOUT_A || pin.pin == id_PLLOUT_B) { + if (pin.pin.in(id_PLLOUT_A, id_PLLOUT_B)) { // Is there a PLL there ? const CellInfo *pll_cell = getBoundBelCell(pin.bel); if (pll_cell == nullptr) |