bugfixes for output

This commit is contained in:
Jan Laukemann
2017-10-04 15:48:51 +02:00
parent 71ba21c519
commit 221ecb5146
2 changed files with 3 additions and 4 deletions

View File

@@ -267,10 +267,10 @@ class Scheduler(object):
port_line += '\n'
cyc_line = '| Cycles |'
for i in range(len(port_bndg)):
space = ' '
space = ''
cyc = str(round(port_bndg[i], 2))
if(len(cyc) == 4):
space = ''
if(len(cyc) < 4):
space = ' ' * (4 - len(cyc))
cyc_line += ' {}{}|'.format(cyc, space)
cyc_line += '\n'
binding = header + horiz_line + port_line + horiz_line + cyc_line + horiz_line

View File

@@ -212,7 +212,6 @@ class Osaca(object):
False if file does not exist or is not an elf64 file
"""
print(self.filepath, os.path.isfile(self.filepath))
if(os.path.isfile(self.filepath)):
self.store_src_code_elf()
if('file format elf64' in self.srcCode[1].lower()):