From 85d8a3ec42a5bf6c3700bb74600e01439d798b19 Mon Sep 17 00:00:00 2001 From: Jan Laukemann Date: Mon, 20 Aug 2018 10:50:54 +0200 Subject: [PATCH] fixed bug in parallel ld/st --- osaca/eu_sched.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/osaca/eu_sched.py b/osaca/eu_sched.py index 7e942d7..34710f3 100755 --- a/osaca/eu_sched.py +++ b/osaca/eu_sched.py @@ -58,8 +58,9 @@ class Scheduler(object): # Count the number of store instr if we schedule for an architecture with par ld/st if(self.en_par_ldst): for i, instrForm in enumerate(self.instrList): - if(isinstance(instrForm[1], MemAddr) and len(instrForm) > 3): - #print('({}) is st --> par_ldst = {}'.format(i, par_ldst + 1)) + if(isinstance(instrForm[1], MemAddr) and len(instrForm) > 3 + and not instrForm[0].startswith('cmp')): + #print('({}, {}) is st --> par_ldst = {}'.format(i, instrForm[0], par_ldst + 1)) par_ldst += 1 # Check if there's a port occupation stored in the CSV, otherwise leave the # occ_port list item empty