mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
fix double quotes in fstrings
This commit is contained in:
parent
ac6f65d5ba
commit
9b8aa188f8
@ -133,10 +133,10 @@ def random_hex(reg_name):
|
||||
pad = 0
|
||||
|
||||
if random_stimulus:
|
||||
return f"0x{"0"*pad}{random.getrandbits(size):x}"
|
||||
return f"0x{'0'*pad}{random.getrandbits(size):x}"
|
||||
else:
|
||||
data = 0xa5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5
|
||||
return f"0x{"0"*pad}{(data & (2**size-1)):x}"
|
||||
return f"0x{'0'*pad}{(data & (2**size-1)):x}"
|
||||
|
||||
|
||||
main()
|
||||
|
Loading…
Reference in New Issue
Block a user