diff options
author | David Shah <davey1576@gmail.com> | 2018-06-10 17:20:29 +0200 |
---|---|---|
committer | David Shah <davey1576@gmail.com> | 2018-06-10 17:20:29 +0200 |
commit | d3f1112580b1920cae8684d95e0c5eb65c785efe (patch) | |
tree | 2dafe3ec1ee4ac104a91053810cedab6369252f4 /ice40/chip.h | |
parent | 458a13456a2ebea77da496a6a9ba9ed1aba7d5b2 (diff) | |
download | nextpnr-d3f1112580b1920cae8684d95e0c5eb65c785efe.tar.gz nextpnr-d3f1112580b1920cae8684d95e0c5eb65c785efe.tar.bz2 nextpnr-d3f1112580b1920cae8684d95e0c5eb65c785efe.zip |
Improving 5k support
Signed-off-by: David Shah <davey1576@gmail.com>
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]; } |