Skip to content

Commit

Permalink
interconnect/axi: add connect_to_pads to full AXI
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Binkowski committed Dec 18, 2020
1 parent 18e9023 commit f26769e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion litex/soc/interconnect/axi.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,16 @@ def __init__(self, data_width=32, address_width=32, id_width=1, clock_domain="sy
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 = []
Expand Down

0 comments on commit f26769e

Please sign in to comment.