litedram_gen: Enable Read-Modify-Write support with ECC.
This commit is contained in:
parent
095180be6a
commit
af94e8497a
|
@ -735,7 +735,11 @@ class LiteDRAMCore(SoCCore):
|
||||||
data_width = user_port.data_width,
|
data_width = user_port.data_width,
|
||||||
address_width = user_port.address_width + log2_int(user_port.data_width//8),
|
address_width = user_port.address_width + log2_int(user_port.data_width//8),
|
||||||
id_width = port["id_width"])
|
id_width = port["id_width"])
|
||||||
axi2native = LiteDRAMAXI2Native(axi_port, user_port)
|
axi2native = LiteDRAMAXI2Native(
|
||||||
|
axi = axi_port,
|
||||||
|
port = user_port,
|
||||||
|
with_read_modify_write = port.get("ecc", False)
|
||||||
|
)
|
||||||
self.submodules += axi2native
|
self.submodules += axi2native
|
||||||
platform.add_extension(get_axi_user_port_ios(name,
|
platform.add_extension(get_axi_user_port_ios(name,
|
||||||
axi_port.address_width,
|
axi_port.address_width,
|
||||||
|
|
Loading…
Reference in New Issue