From 0242003ad6948764f337df73329d76aaf6802bb7 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 2 Mar 2019 11:22:58 +0000 Subject: [PATCH] tidyup, remove unneeded intermediate --- src/add/nmigen_add_experiment.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/add/nmigen_add_experiment.py b/src/add/nmigen_add_experiment.py index 6c1bda9d..d9672ca3 100644 --- a/src/add/nmigen_add_experiment.py +++ b/src/add/nmigen_add_experiment.py @@ -834,12 +834,10 @@ class FPADD: add1 = self.add_state(FPAddStage1(self.width)) add1.setup(m, add0.out_tot, add0.out_z) - az = add1.out_z - n1 = self.add_state(FPNorm1(self.width)) - n1.set_inputs({"z": az, "of": add1.out_of}) # XXX Z as output - n1.set_outputs({"z": az}) # XXX Z as output - n1.setup(m, az, add1.out_of, add1.norm_stb) + n1.set_inputs({"z": add1.out_z, "of": add1.out_of}) # XXX Z as output + n1.set_outputs({"z": add1.out_z}) # XXX Z as output + n1.setup(m, add1.out_z, add1.out_of, add1.norm_stb) rn = self.add_state(FPRound(self.width)) rn.setup(m, n1.out_z, add1.out_of) -- 2.30.2