mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
soc/interconnect/wishbone: Add Bypass mode on Cache when cachesize == 0 and similar data_widths.
This commit is contained in:
parent
5cd1a57080
commit
458e0057f2
1 changed files with 6 additions and 0 deletions
|
@ -659,6 +659,12 @@ class Cache(LiteXModule):
|
|||
if dw_to < dw_from and (dw_from % dw_to) != 0:
|
||||
raise ValueError("Master data width must be a multiple of {dw}".format(dw=dw_to))
|
||||
|
||||
# Bypass.
|
||||
# -------
|
||||
if (cachesize == 0) and (dw_to == dw_from):
|
||||
self.comb += master.connect(slave)
|
||||
return
|
||||
|
||||
# Address Split.
|
||||
# --------------
|
||||
# TAG | LINE NUMBER | LINE OFFSET.
|
||||
|
|
Loading…
Reference in a new issue