diff options
Diffstat (limited to 'ice40/chip.h')
-rw-r--r-- | ice40/chip.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ice40/chip.h b/ice40/chip.h index cedc89b6..760ef3b1 100644 --- a/ice40/chip.h +++ b/ice40/chip.h @@ -586,6 +586,11 @@ struct Chip bool checkPipAvail(PipId pip) const { assert(pip != PipId()); + if (args.type == ChipArgs::UP5K) { + int x = chip_info.pip_data[pip.index].x; + if (x == 0 || x == (chip_info.width - 1)) + return false; + } return !switches_locked[chip_info.pip_data[pip.index].switch_index]; } |