Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addresses IObundle/iob-soc#146 #238

Merged
merged 1 commit into from
Nov 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions software/python/get_memsize.py

This file was deleted.

2 changes: 1 addition & 1 deletion software/python/hex_split.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python2
#!/usr/bin/python3

import string
from sys import argv
Expand Down
11 changes: 6 additions & 5 deletions software/python/makehex.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python2
#!/usr/bin/python3

from sys import argv

Expand All @@ -11,10 +11,11 @@
assert len(bindata) <= mem_size
assert len(bindata) % 4 == 0

for i in range(mem_size/4):
if i < (len(bindata)/4):
w = bindata
print('%02x%02x%02x%02x' % (ord(w[4*i+3]), ord(w[4*i+2]), ord(w[4*i+1]), ord(w[4*i+0])))
num_hex_lines = len(bindata)//4

for i in range(mem_size//4):
if i < (num_hex_lines):
print('%02x%02x%02x%02x' % (bindata[4*i+3], bindata[4*i+2], bindata[4*i+1], bindata[4*i+0]))
else:
print("00000000")

154 changes: 0 additions & 154 deletions software/python/memwrapper_make.py

This file was deleted.