fixed bug in parallel ld/st

This commit is contained in:
Jan Laukemann
2018-08-20 10:50:54 +02:00
parent 88e0c81591
commit 85d8a3ec42

View File

@@ -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