ice40: Fix SPRAM and other primitives in corners other than (0, 0)

Signed-off-by: David Shah <davey1576@gmail.com>
This commit is contained in:
David Shah 2018-07-24 11:16:33 +02:00
parent 139f7e0903
commit a09f95bb06

View File

@ -662,7 +662,7 @@ for tile_xy, tile_type in sorted(tiles.items()):
add_bel_ec(ec) add_bel_ec(ec)
for ec in sorted(extra_cells.keys()): for ec in sorted(extra_cells.keys()):
if ec[1] == 0 and ec[2] == 0: if ec[1] in (0, dev_width - 1) and ec[2] in (0, dev_height - 1):
add_bel_ec(ec) add_bel_ec(ec)
class BinaryBlobAssembler: class BinaryBlobAssembler: