From 092ff66da081ea5908f540cb6ff2cf57b0825862 Mon Sep 17 00:00:00 2001 From: "D. Mitch Bailey" Date: Tue, 5 Dec 2023 16:05:25 -0800 Subject: [PATCH] Correct user_id bit order in gl verilog and layout. --- scripts/set_user_id.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/set_user_id.py b/scripts/set_user_id.py index 905d1675..f9523832 100755 --- a/scripts/set_user_id.py +++ b/scripts/set_user_id.py @@ -132,7 +132,7 @@ def usage(): # Convert to binary try: user_id_int = int('0x' + user_id_value, 0) - user_id_bits = '{0:032b}'.format(user_id_int) + user_id_bits = '{0:032b}'.format(user_id_int)[::-1] except: user_project_path = arguments[0] @@ -170,7 +170,7 @@ def usage(): try: user_id_int = int('0x' + user_id_value, 0) - user_id_bits = '{0:032b}'.format(user_id_int) + user_id_bits = '{0:032b}'.format(user_id_int)[::-1] except: print('Error: Cannot parse user ID "' + user_id_value + '" as an 8-digit hex number.') sys.exit(1)