From c9578125bcf126c9a81740da9ac59405afb561eb Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 1 Nov 2021 21:28:42 +0000 Subject: [PATCH] redo ReservationStations setup of pseudoalus --- src/nmutil/concurrentunit.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/nmutil/concurrentunit.py b/src/nmutil/concurrentunit.py index 9f3432a..e80ef30 100644 --- a/src/nmutil/concurrentunit.py +++ b/src/nmutil/concurrentunit.py @@ -128,13 +128,13 @@ class ReservationStations(Elaboratable): self.n = self.outpipe.n # use pipe in/out as this class in/out self._ports = self.inpipe.ports() + self.outpipe.ports() - def set_alu(self, alu): - """set_alu: sets self.alu and also establishes a suite of pseudo-alus + def setup_pseudoalus(self): + """setup_pseudoalus: establishes a suite of pseudo-alus that look to all pipeline-intents-and-purposes just like the original """ - self.alu, self.pseudoalus = alu, [] - for i in range(num_rows): - self.pseudoalus.append(ALUProxy(alu, self.p[i], self.n[i])) + self.pseudoalus = [] + for i in range(self.num_rows): + self.pseudoalus.append(ALUProxy(self.alu, self.p[i], self.n[i])) def elaborate(self, platform): m = Module() -- 2.30.2