aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/x300/bin_to_coe.py
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2014-10-07 09:39:25 +0200
committerMartin Braun <martin.braun@ettus.com>2014-10-07 09:39:25 +0200
commit5bd58bc309e959537e3e820abfa39ee629b140a5 (patch)
tree81e3a611134e02d9118f0aa846b7146234849fe8 /firmware/x300/bin_to_coe.py
parent9f6a11173aef5e661100268bd746963d713adb91 (diff)
downloaduhd-5bd58bc309e959537e3e820abfa39ee629b140a5.tar.gz
uhd-5bd58bc309e959537e3e820abfa39ee629b140a5.tar.bz2
uhd-5bd58bc309e959537e3e820abfa39ee629b140a5.zip
Reorganized firmware/ subdirectory (x300->usrp3, zpu->usrp2)
Diffstat (limited to 'firmware/x300/bin_to_coe.py')
-rwxr-xr-xfirmware/x300/bin_to_coe.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/firmware/x300/bin_to_coe.py b/firmware/x300/bin_to_coe.py
deleted file mode 100755
index 332c705ae..000000000
--- a/firmware/x300/bin_to_coe.py
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/usr/bin/python
-
-import sys
-import binascii
-
-if __name__ == '__main__':
- bin_file = sys.argv[1]
- coe_file = sys.argv[2]
-
- #parse bin file into hex lines
- h = binascii.hexlify(open(bin_file).read()) + '0'*7
- d = [h[i*8:(i+1)*8] for i in range(len(h)/8)]
-
- #write output coe file
- out = open(coe_file, 'w')
- out.write('memory_initialization_radix=16;\n')
- out.write('memory_initialization_vector=\n')
- out.write(',\n'.join([h[i*8:(i+1)*8] for i in range(len(h)/8)]) + ';')