pipeline GW: clean up buffer

This commit is contained in:
morgan 2025-01-09 15:57:04 +08:00
parent 40647b46a2
commit c5760a5528

View File

@ -580,7 +580,7 @@ class Trigger_Ack_Checker(Module, AutoCSR):
)
class Buffer(Module):
def __init__(self, layout, omits=None):
def __init__(self, layout):
self.sink = stream.Endpoint(layout)
self.source = stream.Endpoint(layout)
@ -588,7 +588,7 @@ class Buffer(Module):
self.sync += [
If((~self.source.stb | self.source.ack),
self.sink.connect(self.source, omit={"ack"}.union(omits) if omits else {"ack"}),
self.sink.connect(self.source, omit={"ack"}),
),
]
self.comb += [