mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
interconnect/axi: add connect_to_pads to full AXI
This commit is contained in:
parent
18e90234b0
commit
f26769eb4d
1 changed files with 10 additions and 1 deletions
|
@ -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 = []
|
||||
|
|
Loading…
Reference in a new issue