Skip to content

Commit

Permalink
Correct user_id bit order in gl verilog and layout.
Browse files Browse the repository at this point in the history
  • Loading branch information
d-m-bailey committed Dec 6, 2023
1 parent 05baf48 commit 092ff66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/set_user_id.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 092ff66

Please sign in to comment.