mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
soc/interconnect/axi/AXIStreamInterface: manage user as param.
This commit is contained in:
parent
cb8a30944f
commit
043cfc5df7
1 changed files with 4 additions and 3 deletions
|
@ -241,10 +241,11 @@ class AXIStreamInterface(stream.Endpoint):
|
||||||
def __init__(self, data_width=32, user_width=0):
|
def __init__(self, data_width=32, user_width=0):
|
||||||
self.data_width = data_width
|
self.data_width = data_width
|
||||||
self.user_width = user_width
|
self.user_width = user_width
|
||||||
axi_layout = [("data", data_width)]
|
payload_layout = [("data", data_width)]
|
||||||
|
param_layout = []
|
||||||
if self.user_width:
|
if self.user_width:
|
||||||
axi_layout += [("user", user_width)]
|
param_layout += [("user", user_width)]
|
||||||
stream.Endpoint.__init__(self, axi_layout)
|
stream.Endpoint.__init__(self, stream.EndpointDescription(payload_layout, param_layout))
|
||||||
|
|
||||||
def get_ios(self, bus_name="axi"):
|
def get_ios(self, bus_name="axi"):
|
||||||
subsignals = [
|
subsignals = [
|
||||||
|
|
Loading…
Reference in a new issue