From 59ac9d6289f3a45ec2d705adc494d48f21cf98e0 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 27 Feb 2019 13:30:36 +0000 Subject: [PATCH] try some more chaining of inputs to outputs --- src/add/nmigen_add_experiment.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/add/nmigen_add_experiment.py b/src/add/nmigen_add_experiment.py index 555ea377..57a7f40e 100644 --- a/src/add/nmigen_add_experiment.py +++ b/src/add/nmigen_add_experiment.py @@ -619,14 +619,14 @@ class FPADD: m.submodules.normalise_1 = n1.mod n2 = self.add_state(FPNorm2(self.width)) - n2.set_inputs({"z": z, "of": of}) # XXX Z as output - n2.set_outputs({"z": z}) # XXX Z as output - n2.mod.setup(m, z, n2.out_z, of, n2.out_of, n2.out_norm) + n2.set_inputs({"z": n1.out_z, "of": of}) + n2.set_outputs({"z": z}) + n2.mod.setup(m, n1.out_z, n2.out_z, of, n2.out_of, n2.out_norm) m.submodules.normalise_2 = n2.mod rn = self.add_state(FPRound(self.width)) - rn.set_inputs({"z": n2.out_z, "of": of}) # XXX Z as output - rn.set_outputs({"z": z}) # XXX Z as output + rn.set_inputs({"z": n2.out_z, "of": of}) + rn.set_outputs({"z": z}) rn.mod.setup(m, n2.out_z, rn.out_z, of) m.submodules.roundz = rn.mod -- 2.30.2