cxp GW: update docs

This commit is contained in:
morgan 2025-02-07 15:03:22 +08:00
parent 65cc7f0902
commit dd5a71517b

View File

@ -287,7 +287,7 @@ class CXP_Frame_Pipeline(Module, AutoCSR):
class CXP_Grabber(Module, AutoCSR):
# optimal stream packet size is 2 KiB - Section 9.5.2 (CXP-001-2021)
def __init__(self, host, roi_engine_count=8, res_width=16, count_width=31):
def __init__(self, host, roi_engine_count=1, res_width=16, count_width=31):
assert count_width <= 31
self.crc_error = CSR()
@ -319,7 +319,7 @@ class CXP_Grabber(Module, AutoCSR):
# select which roi engine can output rtio_input signal
self.gate_data = rtlink.Interface(
rtlink.OInterface(roi_engine_count),
# the 32th bits is for sentinel (gate detection)
# the extra MSB bits is for sentinel
rtlink.IInterface(count_width+1, timestamped=False)
)