Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 2 commits
  • 3 files changed
  • 0 comments
  • 1 contributor
2  migen/actorlib/dma_lasmi.py
@@ -19,7 +19,7 @@ def __init__(self, lasmim, fifo_depth=None):
19 19
 		request_issued = Signal()
20 20
 
21 21
 		self.comb += [
22  
-			self.bus.we.eq(0),
  22
+			lasmim.we.eq(0),
23 23
 			lasmim.stb.eq(self.address.stb & request_enable),
24 24
 			lasmim.adr.eq(self.address.payload.a),
25 25
 			self.address.ack.eq(lasmim.ack),
6  migen/bus/wishbone2lasmi.py
@@ -20,7 +20,7 @@ def __init__(self, cachesize, lasmim):
20 20
 		# TAG | LINE NUMBER | LINE OFFSET
21 21
 		offsetbits = log2_int(lasmim.dw//32)
22 22
 		addressbits = lasmim.aw + offsetbits
23  
-		linebits = log2_int(self.cachesize) - offsetbits
  23
+		linebits = log2_int(cachesize) - offsetbits
24 24
 		tagbits = addressbits - linebits
25 25
 		adr_offset, adr_line, adr_tag = split(self.wishbone.adr, offsetbits, linebits, tagbits)
26 26
 		
@@ -93,7 +93,7 @@ def __init__(self, cachesize, lasmim):
93 93
 				fsm.next_state(fsm.IDLE)
94 94
 			).Else(
95 95
 				If(tag_do.dirty,
96  
-					fsm.next_state(fsm.EVICT_ISSUE)
  96
+					fsm.next_state(fsm.EVICT_REQUEST)
97 97
 				).Else(
98 98
 					fsm.next_state(fsm.REFILL_WRTAG)
99 99
 				)
@@ -120,6 +120,6 @@ def __init__(self, cachesize, lasmim):
120 120
 			If(lasmim.ack, fsm.next_state(fsm.REFILL_DATAD))
121 121
 		)
122 122
 		fsm.act(fsm.REFILL_DATA,
123  
-			write_from_asmi.eq(1),
  123
+			write_from_lasmi.eq(1),
124 124
 			fsm.next_state(fsm.TEST_HIT)
125 125
 		)
2  migen/genlib/fsm.py
@@ -20,7 +20,7 @@ def __init__(self, *states, delayed_enters=[]):
20 20
 				self.actions.append([self.next_state(target_state)])
21 21
 			else:
22 22
 				# alias
23  
-				setattr(self, name, getattr(self, target_state))
  23
+				setattr(self, name, target_state)
24 24
 	
25 25
 	def reset_state(self, state):
26 26
 		self._state.reset = state

No commit comments for this range

Something went wrong with that request. Please try again.