From: Sebastien Bourdeauducq Date: Mon, 10 Jun 2013 20:49:33 +0000 (+0200) Subject: lasmi: fix minor problems X-Git-Tag: 24jan2021_ls180~2099^2~559 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fe54c687629f810ed5b2689f062eeb0aeb24cc23;p=litex.git lasmi: fix minor problems --- diff --git a/migen/actorlib/dma_lasmi.py b/migen/actorlib/dma_lasmi.py index 3a0956e9..41ac1f44 100644 --- a/migen/actorlib/dma_lasmi.py +++ b/migen/actorlib/dma_lasmi.py @@ -19,7 +19,7 @@ class Reader(Module): request_issued = Signal() self.comb += [ - self.bus.we.eq(0), + lasmim.we.eq(0), lasmim.stb.eq(self.address.stb & request_enable), lasmim.adr.eq(self.address.payload.a), self.address.ack.eq(lasmim.ack), diff --git a/migen/bus/wishbone2lasmi.py b/migen/bus/wishbone2lasmi.py index 2df26bbf..2aa48ff1 100644 --- a/migen/bus/wishbone2lasmi.py +++ b/migen/bus/wishbone2lasmi.py @@ -20,7 +20,7 @@ class WB2LASMI(Module): # TAG | LINE NUMBER | LINE OFFSET offsetbits = log2_int(lasmim.dw//32) addressbits = lasmim.aw + offsetbits - linebits = log2_int(self.cachesize) - offsetbits + linebits = log2_int(cachesize) - offsetbits tagbits = addressbits - linebits adr_offset, adr_line, adr_tag = split(self.wishbone.adr, offsetbits, linebits, tagbits) @@ -93,7 +93,7 @@ class WB2LASMI(Module): fsm.next_state(fsm.IDLE) ).Else( If(tag_do.dirty, - fsm.next_state(fsm.EVICT_ISSUE) + fsm.next_state(fsm.EVICT_REQUEST) ).Else( fsm.next_state(fsm.REFILL_WRTAG) ) @@ -120,6 +120,6 @@ class WB2LASMI(Module): If(lasmim.ack, fsm.next_state(fsm.REFILL_DATAD)) ) fsm.act(fsm.REFILL_DATA, - write_from_asmi.eq(1), + write_from_lasmi.eq(1), fsm.next_state(fsm.TEST_HIT) )