frontend/axi: remove write buffer reservation (not needed)

This commit is contained in:
Florent Kermarrec 2018-09-19 10:53:15 +02:00
parent ea1ac4d6d7
commit b9aadf11d1
1 changed files with 3 additions and 8 deletions

View File

@ -145,8 +145,6 @@ class LiteDRAMAXI2NativeW(Module):
# # # # # #
can_write = Signal()
ashift = log2_int(port.data_width//8) ashift = log2_int(port.data_width//8)
# Burst to Beat # Burst to Beat
@ -160,9 +158,6 @@ class LiteDRAMAXI2NativeW(Module):
w_buffer = stream.SyncFIFO(w_description(axi.data_width), buffer_depth) w_buffer = stream.SyncFIFO(w_description(axi.data_width), buffer_depth)
self.submodules += w_buffer self.submodules += w_buffer
# Write Buffer reservation
self.comb += can_write.eq(w_buffer.sink.ready)
# Write ID Buffer & Response # Write ID Buffer & Response
id_buffer = stream.SyncFIFO([("id", axi.id_width)], buffer_depth) id_buffer = stream.SyncFIFO([("id", axi.id_width)], buffer_depth)
resp_buffer = stream.SyncFIFO([("id", axi.id_width), ("resp", 2)], buffer_depth) resp_buffer = stream.SyncFIFO([("id", axi.id_width), ("resp", 2)], buffer_depth)
@ -181,10 +176,10 @@ class LiteDRAMAXI2NativeW(Module):
# Command # Command
self.comb += [ self.comb += [
self.cmd_request.eq(aw.valid & can_write), self.cmd_request.eq(aw.valid),
If(self.cmd_grant, If(self.cmd_grant,
port.cmd.valid.eq(aw.valid & can_write), port.cmd.valid.eq(aw.valid),
aw.ready.eq(port.cmd.ready & can_write), aw.ready.eq(port.cmd.ready),
port.cmd.we.eq(1), port.cmd.we.eq(1),
port.cmd.addr.eq(aw.addr >> ashift) port.cmd.addr.eq(aw.addr >> ashift)
) )