Commit 5f206eb6 authored by Carmelo Magnafico's avatar Carmelo Magnafico
Browse files

created ouput file

parent 8e4020f6
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -37,8 +37,10 @@ class wrongMemoryType(Exception):
#Settings
datasplit = 224 #maximum length in byte for a single data sent in one command
dataword = 16 #bit of a word

output_folder = 'output/'
INT_BITS = 16


# Function to left
# rotate n by d bits
def leftRotate(n, d):
@@ -248,7 +250,7 @@ for i in range(2):
		

	#<type>_<source>_<plancycle>_<optional text>_<counter>.<EXT>
	outputfile = 'MDOR_'+'BPSA_'+'T000_'+'codepatch_'+('%04i'%(int(sequenceNum)+i))+'.bc'
	outputfile = output_folder+'MDOR_'+'BPSA_'+'T000_'+'codepatch_'+('%04i'%(int(sequenceNum)+i))+'.bc'
	tree.write(outputfile)
	print(outputfile+' correclty wrote')

+2 −1
Original line number Diff line number Diff line
@@ -37,6 +37,7 @@ class wrongMemoryType(Exception):
#Settings
datasplit = 224 #maximum length in byte for a single data sent in one command
dataword = 16 #bit of a word
output_folder = 'output/'


def is_number(s):
@@ -249,7 +250,7 @@ for c in templateXML.iter('command'):
	

#<type>_<source>_<plancycle>_<optional text>_<counter>.<EXT>
outputfile = 'MDOR_'+'BPSA_'+'T000_'+'generalpatch_'+sys.argv[3]+'.bc'
outputfile = output_folder+'MDOR_'+'BPSA_'+'T000_'+'generalpatch_'+sys.argv[3]+'.bc'
tree.write(outputfile)
print(outputfile+' correclty wrote')

+7041 −0

File added.

Preview size limit exceeded, changes collapsed.

+14049 −0

File added.

Preview size limit exceeded, changes collapsed.

+7041 −0

File added.

Preview size limit exceeded, changes collapsed.

Loading