Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 2 commits
  • 3 files changed
  • 0 commit comments
  • 1 contributor
2  migen/actorlib/dma_lasmi.py
View
@@ -19,7 +19,7 @@ def __init__(self, lasmim, fifo_depth=None):
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),
6 migen/bus/wishbone2lasmi.py
View
@@ -20,7 +20,7 @@ def __init__(self, cachesize, lasmim):
# 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 @@ def __init__(self, cachesize, lasmim):
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 @@ def __init__(self, cachesize, lasmim):
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)
)
2  migen/genlib/fsm.py
View
@@ -20,7 +20,7 @@ def __init__(self, *states, delayed_enters=[]):
self.actions.append([self.next_state(target_state)])
else:
# alias
- setattr(self, name, getattr(self, target_state))
+ setattr(self, name, target_state)
def reset_state(self, state):
self._state.reset = state

No commit comments for this range

Something went wrong with that request. Please try again.