icebox_hlc2asc: Allow io_X/GLOBAL_OUTPUT_BUFFER

This commit is contained in:
Tim 'mithro' Ansell 2018-06-22 21:42:50 -07:00
parent e2adc23681
commit a3ae94cbeb
1 changed files with 3 additions and 1 deletions

View File

@ -1006,7 +1006,9 @@ class IOBlock:
self.enable_input = True
elif fields == ['disable_pull_up'] and not self.disable_pull_up:
self.disable_pull_up = True
elif fields[0] == 'GLOBAL_BUFFER_OUTPUT' and fields[1] == '->' \
elif fields[0] in ('GLOBAL_BUFFER_OUTPUT',
'io_%d/GLOBAL_BUFFER_OUTPUT' % self.index) \
and fields[1] == '->' \
and fields[2].startswith('glb_netwk_'):
if GLB_NETWK_EXTERNAL_BLOCKS[int(fields[2][10:])] \
!= (self.tile.x, self.tile.y, self.index):