mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
report cachesize in wishbone2lasmi
This commit is contained in:
parent
54a8a52e90
commit
225a2d4704
1 changed files with 3 additions and 1 deletions
|
@ -1,12 +1,14 @@
|
|||
from migen.fhdl.std import *
|
||||
from migen.bus import wishbone
|
||||
from migen.bank.description import *
|
||||
from migen.genlib.fsm import FSM, NextState
|
||||
from migen.genlib.misc import split, displacer, chooser
|
||||
from migen.genlib.record import Record, layout_len
|
||||
|
||||
# cachesize (in 32-bit words) is the size of the data store, must be a power of 2
|
||||
class WB2LASMI(Module):
|
||||
class WB2LASMI(Module, AutoCSR):
|
||||
def __init__(self, cachesize, lasmim):
|
||||
self._cachesize = CSRStatus(8, reset=log2_int(cachesize))
|
||||
self.wishbone = wishbone.Interface()
|
||||
|
||||
###
|
||||
|
|
Loading…
Reference in a new issue