frontend/axi: same condition to connect connect wdata.we and wdata

This commit is contained in:
Florent Kermarrec 2018-11-13 10:37:54 +01:00
parent d10e2e9d97
commit 4459bd25ed
1 changed files with 4 additions and 2 deletions

View File

@ -195,8 +195,10 @@ class LiteDRAMAXI2NativeW(Module):
# Write Data
self.comb += [
axi.w.connect(w_buffer.sink),
If(id_buffer.source.valid, w_buffer.source.connect(port.wdata, omit={"strb"})),
port.wdata.we.eq(w_buffer.source.strb)
If(id_buffer.source.valid,
w_buffer.source.connect(port.wdata, omit={"strb"}),
port.wdata.we.eq(w_buffer.source.strb)
)
]