Merge pull request #1480 from Icenowy/axifull-downconv-fix

interconnect/axi/axi_full: Fix AXIDownConverter compilation.
This commit is contained in:
enjoy-digital 2022-10-30 21:17:10 +01:00 committed by GitHub
commit 59d10b8672
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -265,9 +265,11 @@ class AXIDownConverter(Module):
description_to = [("data", dw_to), ("strb", dw_to//8)],
)
self.submodules += w_converter
self.comb += axi_from.w.connect(w_converter.sink, omit={"id"})
self.comb += axi_from.w.connect(w_converter.sink, omit={"id", "dest", "user"})
self.comb += w_converter.source.connect(axi_to.w)
self.comb += axi_to.w.id.eq(axi_from.w.id)
self.comb += axi_to.w.dest.eq(axi_from.w.dest)
self.comb += axi_to.w.user.eq(axi_from.w.user)
# B Channel.
self.comb += axi_to.b.connect(axi_from.b)
@ -287,9 +289,11 @@ class AXIDownConverter(Module):
description_to = [("data", dw_from)],
)
self.submodules += r_converter
self.comb += axi_to.r.connect(r_converter.sink, omit={"id", "resp"})
self.comb += axi_to.r.connect(r_converter.sink, omit={"id", "dest", "user", "resp"})
self.comb += r_converter.source.connect(axi_from.r)
self.comb += axi_from.r.resp.eq(axi_to.r.resp)
self.comb += axi_from.r.user.eq(axi_to.r.user)
self.comb += axi_from.r.dest.eq(axi_to.r.dest)
self.comb += axi_from.r.id.eq(axi_to.r.id)