Skip to content

Commit 71627cf

Browse files
committedJun 19, 2015
bus/wishbone: remove size CSR from Cache (L2 size will be reported to the software as a constant)
1 parent 7d8f4d1 commit 71627cf

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed
 

Diff for: ‎migen/bus/wishbone.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
from migen.genlib.misc import split, displacer, optree, chooser
55
from migen.genlib.misc import FlipFlop, Counter
66
from migen.genlib.fsm import FSM, NextState
7-
from migen.bank.description import *
87
from migen.bus.transactions import *
98

109
_layout = [
@@ -409,14 +408,13 @@ def __init__(self, master, slave):
409408
Record.connect(master, slave)
410409

411410

412-
class Cache(Module, AutoCSR):
411+
class Cache(Module):
413412
"""Cache
414413
415414
This module is a write-back wishbone cache that can be used as a L2 cache.
416415
Cachesize (in 32-bit words) is the size of the data store and must be a power of 2
417416
"""
418417
def __init__(self, cachesize, master, slave):
419-
self._size = CSRStatus(8, reset=log2_int(cachesize))
420418
self.master = master
421419
self.slave = slave
422420

0 commit comments

Comments
 (0)
Please sign in to comment.