From a734f233f44b53dc8b3c32a02fe7e9f977707bf4 Mon Sep 17 00:00:00 2001 From: Jan Laukemann Date: Wed, 4 Oct 2017 12:03:48 +0200 Subject: [PATCH] small bugfixes --- osaca/eu_sched.py | 6 +++++- osaca/osaca.py | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/osaca/eu_sched.py b/osaca/eu_sched.py index 1e6d09a..923ffad 100755 --- a/osaca/eu_sched.py +++ b/osaca/eu_sched.py @@ -265,7 +265,11 @@ class Scheduler(object): port_line += '\n' cyc_line = '| Cycles |' for i in range(len(port_bndg)): - cyc_line += ' {} |'.format(round(port_bndg[i], 2)) + space = ' ' + cyc = str(round(port_bndg[i], 2)) + if(len(cyc) == 4): + space = '' + cyc_line += ' {}{}|'.format(cyc, space) cyc_line += '\n' binding = header + horiz_line + port_line + horiz_line + cyc_line + horiz_line return binding diff --git a/osaca/osaca.py b/osaca/osaca.py index 5b2d0cc..36f0188 100755 --- a/osaca/osaca.py +++ b/osaca/osaca.py @@ -524,6 +524,7 @@ class Osaca(object): param_list[i] = str(op) param_list_types[i] = op # Add to list + instr = instr.rstrip() if(len(instr) > self.longestInstr): self.longestInstr = len(instr) instr_form = [mnemonic]+list(reversed(param_list_types))+[instr] @@ -700,6 +701,7 @@ class Osaca(object): op_ext_regs.append(False) if(True not in op_ext_regs): # No register in whole instr form. How can I find out what regsize we need? + print('test') print('Feature not included yet: ', end='') print(elem[0]+' for '+operands) tp = 0