mirror of https://github.com/efabless/caravel.git
Corrected the set_user_id.py script.
This commit is contained in:
parent
c52cd9b1e5
commit
078aabbfeb
|
@ -257,7 +257,7 @@ if __name__ == '__main__':
|
||||||
print('New string = "' + vianewposdata + '"')
|
print('New string = "' + vianewposdata + '"')
|
||||||
|
|
||||||
# Replace the old data with the new
|
# 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))
|
print('Error: via not found for bit position ' + str(i))
|
||||||
errors += 1
|
errors += 1
|
||||||
else:
|
else:
|
||||||
|
@ -319,6 +319,7 @@ if __name__ == '__main__':
|
||||||
outdata = outdata.replace('LO(mask_rev[' + str(i) + ']',
|
outdata = outdata.replace('LO(mask_rev[' + str(i) + ']',
|
||||||
'HI(mask_rev[' + str(i) + ']')
|
'HI(mask_rev[' + str(i) + ']')
|
||||||
outdata = outdata.replace('HI(\\user_proj_id_low', 'LO(\\user_proj_id_low')
|
outdata = outdata.replace('HI(\\user_proj_id_low', 'LO(\\user_proj_id_low')
|
||||||
|
changed = True
|
||||||
|
|
||||||
if changed:
|
if changed:
|
||||||
with open(vpath + '/gl/user_id_programming.v', 'w') as ofile:
|
with open(vpath + '/gl/user_id_programming.v', 'w') as ofile:
|
||||||
|
|
Loading…
Reference in New Issue