interconnect/axi/axi_stream: Add clock_domain parameters.

Useful for wrapping IP and do checks or decide if CDC has to be inserted.
This commit is contained in:
Florent Kermarrec 2022-10-05 11:06:52 +02:00
parent 3836e8a36c
commit aa17c27eb9
1 changed files with 7 additions and 6 deletions

View File

@ -17,12 +17,13 @@ from litex.soc.interconnect.axi.axi_common import *
# AXI-Stream Definition ----------------------------------------------------------------------------
class AXIStreamInterface(stream.Endpoint):
def __init__(self, data_width=0, keep_width=None, id_width=0, dest_width=0, user_width=0, layout=None, name=None):
def __init__(self, data_width=0, keep_width=None, id_width=0, dest_width=0, user_width=0, clock_domain="sys", layout=None, name=None):
self.data_width = data_width
self.keep_width = data_width//8 if keep_width is None else keep_width
self.id_width = id_width
self.dest_width = dest_width
self.user_width = user_width
self.clock_domain = clock_domain
# Define Payload Layout.
if layout is not None: