for i, fu in enumerate(il):
fn_issue_l.append(fu.issue_i)
fn_busy_l.append(fu.busy_o)
- # XXX sync, so as to stop a simulation infinite loop
m.d.comb += fu.issue_i.eq(issueunit.i.fn_issue_o[i])
m.d.comb += fu.dest_i.eq(issueunit.i.dest_i)
m.d.comb += fu.src1_i.eq(issueunit.i.src1_i)
m.d.comb += fu.src2_i.eq(issueunit.i.src2_i)
- m.d.comb += issueunit.i.busy_i[i].eq(fu.busy_o)
+ # XXX sync, so as to stop a simulation infinite loop
+ m.d.sync += issueunit.i.busy_i[i].eq(fu.busy_o)
#---------
# connect Function Units
def elaborate(self, platform):
m = Module()
m.submodules.rd_l = rd_l = SRLatch(sync=False)
- m.submodules.wr_l = wr_l = SRLatch(sync=True)
+ m.submodules.wr_l = wr_l = SRLatch(sync=False)
m.submodules.dest_d = dest_d = Decoder(self.reg_width)
m.submodules.src1_d = src1_d = Decoder(self.reg_width)
m.submodules.src2_d = src2_d = Decoder(self.reg_width)