mirror of
https://github.com/openhwgroup/cvw
synced 2025-01-24 21:44:29 +00:00
db76878581
mv qemu patches to tests directory.
14 lines
284 B
Python
Executable File
14 lines
284 B
Python
Executable File
#!/usr/bin/python3
|
|
|
|
asciiBinFile = 'ram.txt'
|
|
binFile = 'ram.bin'
|
|
|
|
asciiBinFP = open(asciiBinFile, 'r')
|
|
binFP = open (binFile, 'wb')
|
|
|
|
for line in asciiBinFP.readlines():
|
|
binFP.write(int(line, 16).to_bytes(8, byteorder='little', signed=False))
|
|
|
|
asciiBinFP.close()
|
|
binFP.close()
|