mirror of https://github.com/efabless/caravel.git
Corrected the set_user_id.py script to put the bits in the correct
direction when casting from an integer to a binary string. This is the same correction that was made to caravel-gf180mcu some time ago. Thanks to Mitch Bailey for finding and reporting the issue.
This commit is contained in:
parent
05baf48756
commit
d479ca1e69
|
@ -170,7 +170,7 @@ if __name__ == '__main__':
|
||||||
|
|
||||||
try:
|
try:
|
||||||
user_id_int = int('0x' + user_id_value, 0)
|
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:
|
except:
|
||||||
print('Error: Cannot parse user ID "' + user_id_value + '" as an 8-digit hex number.')
|
print('Error: Cannot parse user ID "' + user_id_value + '" as an 8-digit hex number.')
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
Loading…
Reference in New Issue