Skip to content

Commit 1a6a78d

Browse files
authored
Merge pull request #250 from yrabbit/unpack
Fix IO unpack
2 parents a0f7069 + 90ddb29 commit 1a6a78d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

apycula/gowin_unpack.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,11 @@ def parse_tile_(db, row, col, tile, default=True, noalias=False, noiostd = True)
542542

543543
# elvds IO uses the B bel bits
544544
for name in skip_bels:
545-
bel_a = bels[f'{name[:-1]}A']
545+
bel_a_name = f'{name[:-1]}A'
546+
if bel_a_name not in bels:
547+
continue
548+
549+
bel_a = bels[bel_a_name]
546550
if not bel_a.intersection({'ELVDS_IBUF', 'ELVDS_OBUF', 'ELVDS_IOBUF', 'ELVDS_TBUF',
547551
'TLVDS_IBUF', 'TLVDS_OBUF', 'TLVDS_IOBUF', 'TLVDS_TBUF'}):
548552
mode = bels[name].intersection({'ELVDS_IBUF', 'ELVDS_OBUF', 'ELVDS_IOBUF', 'ELVDS_TBUF'})

0 commit comments

Comments
 (0)