From b3258052150f290f97093bb7b7b861761adc3bc3 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 3 Aug 2019 10:49:31 +0100 Subject: [PATCH] give names to muxer submodules --- src/nmutil/multipipe.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nmutil/multipipe.py b/src/nmutil/multipipe.py index 14d532d3..c0d9127c 100644 --- a/src/nmutil/multipipe.py +++ b/src/nmutil/multipipe.py @@ -180,7 +180,7 @@ class CombMultiOutPipeline(MultiOutControlBase): m = MultiOutControlBase.elaborate(self, platform) if hasattr(self.n_mux, "elaborate"): # TODO: identify submodule? - m.submodules += self.n_mux + m.submodules.n_mux = self.n_mux # need buffer register conforming to *input* spec r_data = _spec(self.stage.ispec, 'r_data') # input type @@ -260,7 +260,7 @@ class CombMultiInPipeline(MultiInControlBase): def elaborate(self, platform): m = MultiInControlBase.elaborate(self, platform) - m.submodules += self.p_mux + m.submodules.p_mux = self.p_mux # need an array of buffer registers conforming to *input* spec r_data = [] -- 2.30.2