Corrected the set_user_id.py script.

This commit is contained in:
Tim Edwards 2022-04-12 15:48:14 -04:00
parent c52cd9b1e5
commit 078aabbfeb
1 changed files with 2 additions and 1 deletions

View File

@ -257,7 +257,7 @@ if __name__ == '__main__':
print('New string = "' + vianewposdata + '"')
# Replace the old data with the new
if viaoldposdata not in gdsdata:
if viaoldposdata not in magdata:
print('Error: via not found for bit position ' + str(i))
errors += 1
else:
@ -319,6 +319,7 @@ if __name__ == '__main__':
outdata = outdata.replace('LO(mask_rev[' + str(i) + ']',
'HI(mask_rev[' + str(i) + ']')
outdata = outdata.replace('HI(\\user_proj_id_low', 'LO(\\user_proj_id_low')
changed = True
if changed:
with open(vpath + '/gl/user_id_programming.v', 'w') as ofile: