frontend/axi: expose aw_burst2beat/ar_burst2beat
This commit is contained in:
parent
da65a804be
commit
0d5e5543fb
|
@ -82,7 +82,7 @@ class LiteDRAMAXIBurst2Beat(Module):
|
||||||
|
|
||||||
# # #
|
# # #
|
||||||
|
|
||||||
count = Signal(8)
|
self.count = count = Signal(8)
|
||||||
size = Signal(8 + 4)
|
size = Signal(8 + 4)
|
||||||
offset = Signal(8 + 4)
|
offset = Signal(8 + 4)
|
||||||
|
|
||||||
|
@ -151,10 +151,11 @@ class LiteDRAMAXI2NativeW(Module):
|
||||||
|
|
||||||
# Burst to Beat
|
# Burst to Beat
|
||||||
aw_buffer = stream.Buffer(ax_description(axi.address_width, axi.id_width))
|
aw_buffer = stream.Buffer(ax_description(axi.address_width, axi.id_width))
|
||||||
|
self.submodules += aw_buffer
|
||||||
self.comb += axi.aw.connect(aw_buffer.sink)
|
self.comb += axi.aw.connect(aw_buffer.sink)
|
||||||
aw = stream.Endpoint(ax_description(axi.address_width, axi.id_width))
|
aw = stream.Endpoint(ax_description(axi.address_width, axi.id_width))
|
||||||
aw_burst2beat = LiteDRAMAXIBurst2Beat(aw_buffer.source, aw)
|
aw_burst2beat = LiteDRAMAXIBurst2Beat(aw_buffer.source, aw)
|
||||||
self.submodules += aw_buffer, aw_burst2beat
|
self.submodules.aw_burst2beat = aw_burst2beat
|
||||||
|
|
||||||
# Write Buffer
|
# Write Buffer
|
||||||
w_buffer = stream.SyncFIFO(w_description(axi.data_width), buffer_depth)
|
w_buffer = stream.SyncFIFO(w_description(axi.data_width), buffer_depth)
|
||||||
|
@ -215,10 +216,11 @@ class LiteDRAMAXI2NativeR(Module):
|
||||||
|
|
||||||
# Burst to Beat
|
# Burst to Beat
|
||||||
ar_buffer = stream.Buffer(ax_description(axi.address_width, axi.id_width))
|
ar_buffer = stream.Buffer(ax_description(axi.address_width, axi.id_width))
|
||||||
|
self.submodules += ar_buffer
|
||||||
self.comb += axi.ar.connect(ar_buffer.sink)
|
self.comb += axi.ar.connect(ar_buffer.sink)
|
||||||
ar = stream.Endpoint(ax_description(axi.address_width, axi.id_width))
|
ar = stream.Endpoint(ax_description(axi.address_width, axi.id_width))
|
||||||
ar_burst2beat = LiteDRAMAXIBurst2Beat(ar_buffer.source, ar)
|
ar_burst2beat = LiteDRAMAXIBurst2Beat(ar_buffer.source, ar)
|
||||||
self.submodules += ar_buffer, ar_burst2beat
|
self.submodules.ar_burst2beat = ar_burst2beat
|
||||||
|
|
||||||
# Read buffer
|
# Read buffer
|
||||||
r_buffer = stream.SyncFIFO(r_description(axi.data_width, axi.id_width), buffer_depth)
|
r_buffer = stream.SyncFIFO(r_description(axi.data_width, axi.id_width), buffer_depth)
|
||||||
|
|
Loading…
Reference in New Issue