m.d.comb += self.busy_o.eq(opc_l.q) # busy out
with m.If(self.go_rd_i):
- m.d.sync += self.counter.eq(1)
+ m.d.sync += self.counter.eq(2)
with m.If(self.counter > 0):
m.d.sync += self.counter.eq(self.counter - 1)
with m.If(self.counter == 1):
# readable output signal
g_rd = Signal(self.reg_width, reset_less=True)
ro = Signal(reset_less=True)
- m.d.comb += g_rd.eq((~self.g_wr_pend_i) & self.rd_pend_o)
+ m.d.comb += g_rd.eq(~self.g_wr_pend_i & self.rd_pend_o)
m.d.comb += ro.eq(g_rd.bool())
m.d.comb += self.readable_o.eq(ro)