From d29d2c09bbbfda4ce0b102c404b093548a143d8e Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 28 Aug 2023 16:02:41 +0200 Subject: [PATCH] interconnect/stream: Minor review/cleanup. --- litex/soc/interconnect/stream.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/litex/soc/interconnect/stream.py b/litex/soc/interconnect/stream.py index a0465a549..31c67a5a6 100644 --- a/litex/soc/interconnect/stream.py +++ b/litex/soc/interconnect/stream.py @@ -991,21 +991,22 @@ class BufferizeEndpoints(ModuleTransformer): def transform_instance(self, submodule): for name, direction in self.endpoint_dict.items(): endpoint = getattr(submodule, name) - # add buffer on sinks + # Add Buffer on Sinks. if direction == DIR_SINK: buf = Buffer( - endpoint.description, - pipe_valid=pipe_valid, - pipe_ready=pipe_ready + layout = endpoint.description, + pipe_valid = pipe_valid, + pipe_ready = pipe_ready, ) submodule.submodules += buf setattr(submodule, name, buf.sink) submodule.comb += buf.source.connect(endpoint) - # add buffer on sources + # Add Buffer on Sources. elif direction == DIR_SOURCE: - buf = Buffer(endpoint.description, - pipe_valid=pipe_valid, - pipe_ready=pipe_ready + buf = Buffer( + layout = endpoint.description, + pipe_valid = pipe_valid, + pipe_ready = pipe_ready, ) submodule.submodules += buf submodule.comb += endpoint.connect(buf.sink)