for instruction in instructions:
to_write.update(instruction['writes'])
# see if all writes can be done, otherwise stall
- writes_possible = self.cpu.writes_possible(to_write):
+ writes_possible = self.cpu.writes_possible(to_write)
if writes_possible != to_write:
stall = True
# retire the writes that are possible in this cycle (regfile writes)
# get current instruction
insn, writeregs, readregs = self.stages[0]
# check that the readregs are all available
- reads_possible = self.cpu.reads_possible(readregs):
+ reads_possible = self.cpu.reads_possible(readregs)
stall = reads_possible != readregs
# perform the "reads" that are possible in this cycle
readregs.difference_update(reads_possible)