From 078aabbfeb9dee47c9c12a9a59890b266cbac5f6 Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Tue, 12 Apr 2022 15:48:14 -0400 Subject: [PATCH] Corrected the set_user_id.py script. --- scripts/set_user_id.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/set_user_id.py b/scripts/set_user_id.py index 7d659611..72656713 100755 --- a/scripts/set_user_id.py +++ b/scripts/set_user_id.py @@ -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: