1
0
Fork 0

pipeline GW: fix compilation error

This commit is contained in:
morgan 2024-09-19 14:43:11 +08:00
parent 925237face
commit 47b6dcf973
1 changed files with 23 additions and 0 deletions

View File

@ -382,6 +382,29 @@ class Receiver_Path(Module, AutoCSR):
# TODO: # TODO:
self.packet_type = Signal(8) self.packet_type = Signal(8)
# # #
self.submodules.trig_ack_checker = trig_ack_checker = CXP_Trig_Ack_Checker()
self.submodules.packet_decoder= packet_decoder = CXP_Data_Packet_Decode()
self.sync += [
If(trig_ack_checker.ack,
self.trig_ack.eq(1),
).Elif(self.trig_clr,
self.trig_ack.eq(0),
)
]
pipeline = [ trig_ack_checker, packet_decoder ]
for s, d in zip(pipeline, pipeline[1:]):
self.comb += s.source.connect(d.sink)
self.sink = pipeline[0].sink
self.source = pipeline[-1].source
class CXP_Data_Packet_Decode(Module): class CXP_Data_Packet_Decode(Module):
def __init__(self): def __init__(self):