interconnect/axi: add connect_to_pads to full AXI

This commit is contained in:
Piotr Binkowski 2020-12-16 17:30:04 +01:00
parent 18e90234b0
commit f26769eb4d

View file

@ -140,7 +140,16 @@ class AXIInterface:
self.r = stream.Endpoint(r_description(data_width, id_width))
def connect_to_pads(self, pads, mode="master"):
return connect_to_pads(self, pads, mode)
r = connect_to_pads(self, pads, mode)
if mode == "master":
r.append(pads.wlast.eq(self.w.last))
r.append(self.r.last.eq(pads.rlast))
else:
r.append(pads.rlast.eq(self.r.last))
r.append(self.w.last.eq(pads.wlast))
return r
def get_ios(self, bus_name="wb"):
subsignals = []