soc_sdram: remove axi usecase, this was only useful to do some preliminary axi tests.
Proper AXI support will be added in the future for SoCs.
This commit is contained in:
parent
e8e57b4f87
commit
3d257d7266
|
@ -11,7 +11,6 @@ from litex.soc.interconnect import wishbone
|
||||||
from litex.soc.integration.soc_core import *
|
from litex.soc.integration.soc_core import *
|
||||||
|
|
||||||
from litedram.frontend.wishbone import *
|
from litedram.frontend.wishbone import *
|
||||||
from litedram.frontend.axi import *
|
|
||||||
from litedram.core import LiteDRAMCore
|
from litedram.core import LiteDRAMCore
|
||||||
|
|
||||||
__all__ = ["SoCSDRAM", "soc_sdram_args", "soc_sdram_argdict"]
|
__all__ = ["SoCSDRAM", "soc_sdram_args", "soc_sdram_argdict"]
|
||||||
|
@ -21,7 +20,7 @@ __all__ = ["SoCSDRAM", "soc_sdram_args", "soc_sdram_argdict"]
|
||||||
class SoCSDRAM(SoCCore):
|
class SoCSDRAM(SoCCore):
|
||||||
csr_map = {
|
csr_map = {
|
||||||
"sdram": 8,
|
"sdram": 8,
|
||||||
"l2_cache": 9
|
"l2_cache": 9,
|
||||||
}
|
}
|
||||||
csr_map.update(SoCCore.csr_map)
|
csr_map.update(SoCCore.csr_map)
|
||||||
|
|
||||||
|
@ -41,7 +40,7 @@ class SoCSDRAM(SoCCore):
|
||||||
raise FinalizeError
|
raise FinalizeError
|
||||||
self._wb_sdram_ifs.append(interface)
|
self._wb_sdram_ifs.append(interface)
|
||||||
|
|
||||||
def register_sdram(self, phy, geom_settings, timing_settings, use_axi=False, use_full_memory_we=True, **kwargs):
|
def register_sdram(self, phy, geom_settings, timing_settings, use_full_memory_we=True, **kwargs):
|
||||||
assert not self._sdram_phy
|
assert not self._sdram_phy
|
||||||
self._sdram_phy.append(phy) # encapsulate in list to prevent CSR scanning
|
self._sdram_phy.append(phy) # encapsulate in list to prevent CSR scanning
|
||||||
|
|
||||||
|
@ -86,14 +85,6 @@ class SoCSDRAM(SoCCore):
|
||||||
self.config["L2_SIZE"] = l2_size
|
self.config["L2_SIZE"] = l2_size
|
||||||
|
|
||||||
# L2 Cache <--> LiteDRAM bridge --------------------------------------------------------
|
# L2 Cache <--> LiteDRAM bridge --------------------------------------------------------
|
||||||
if use_axi:
|
|
||||||
axi_port = LiteDRAMAXIPort(
|
|
||||||
data_width = port.data_width,
|
|
||||||
address_width = port.address_width + log2_int(port.data_width//8))
|
|
||||||
axi2native = LiteDRAMAXI2Native(axi_port, port)
|
|
||||||
self.submodules += axi2native
|
|
||||||
self.submodules.wishbone_bridge = LiteDRAMWishbone2AXI(self.l2_cache.slave, axi_port)
|
|
||||||
else:
|
|
||||||
self.submodules.wishbone_bridge = LiteDRAMWishbone2Native(self.l2_cache.slave, port)
|
self.submodules.wishbone_bridge = LiteDRAMWishbone2Native(self.l2_cache.slave, port)
|
||||||
|
|
||||||
def do_finalize(self):
|
def do_finalize(self):
|
||||||
|
|
Loading…
Reference in New Issue