mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
cpu/naxriscv: Prepare for data_width conversion in LiteX (not yet enabled).
This commit is contained in:
parent
6788f3b9cb
commit
8dbb572b7a
1 changed files with 5 additions and 5 deletions
|
@ -301,17 +301,17 @@ class NaxRiscv(CPU):
|
|||
soc.bus.add_slave("clint", clintbus, region=soc_region_cls(origin=soc.mem_map.get("clint"), size=0x10000, cached=False))
|
||||
|
||||
def add_memory_buses(self, address_width, data_width):
|
||||
assert data_width == 128 # FIXME: For now only support 16-bit/DDR3 config, add NaxRiscv automatic generation or LiteX conversion.
|
||||
|
||||
from litedram.common import LiteDRAMNativePort
|
||||
nax_data_width = 128
|
||||
assert data_width == nax_data_width # FIXME: No conversion.
|
||||
#assert data_width >= nax_data_width # FIXME: Only supporting up-conversion for now.
|
||||
|
||||
ibus = axi.AXIInterface(
|
||||
data_width = data_width,
|
||||
data_width = nax_data_width,
|
||||
address_width = 32,
|
||||
id_width = 1,
|
||||
)
|
||||
dbus = axi.AXIInterface(
|
||||
data_width = data_width,
|
||||
data_width = nax_data_width,
|
||||
address_width = 32,
|
||||
id_width = 4,
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue