Skip to content

Commit

Permalink
Merge pull request YosysHQ#253 from yrabbit/fix-bsrm-init-pack
Browse files Browse the repository at this point in the history
Relax BSRAM initialization data requirements
  • Loading branch information
yrabbit authored Jul 4, 2024
2 parents c7fa21f + 8c6e6f6 commit f19de52
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion apycula/gowin_pack.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,12 @@ def get_bits(init_data):

addr = -1
for init_row in range(0x40):
init_data = parms[f'INIT_RAM_{init_row:02X}']
row_name = f'INIT_RAM_{init_row:02X}'
# skip missing init rows
if row_name not in parms:
addr += 0x100
continue
init_data = parms[row_name]
#print(init_data)
for ptr_bit_inc in get_bits(init_data):
addr = ptr_bit_inc[2](addr)
Expand Down

0 comments on commit f19de52

Please sign in to comment.