From: Luke Kenneth Casson Leighton Date: Fri, 1 Mar 2019 22:31:40 +0000 (+0000) Subject: connect corrections to pack without global z X-Git-Tag: ls180-24jan2020~1781 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=031369a527b2795212de74999128478b6c7face5;p=ieee754fpu.git connect corrections to pack without global z --- diff --git a/src/add/nmigen_add_experiment.py b/src/add/nmigen_add_experiment.py index f87ee7a9..825005ff 100644 --- a/src/add/nmigen_add_experiment.py +++ b/src/add/nmigen_add_experiment.py @@ -813,18 +813,18 @@ class FPADD: cor = self.add_state(FPCorrections(self.width)) cor.set_inputs({"z": rnz}) # XXX Z as output - cor.set_outputs({"z": rnz}) # XXX Z as output + #cor.set_outputs({"z": rnz}) # XXX Z as output cor.mod.setup(m, rnz, cor.out_z) m.submodules.corrections = cor.mod pa = self.add_state(FPPack(self.width)) - pa.set_inputs({"z": rnz}) # XXX Z as output - pa.set_outputs({"z": rnz}) # XXX Z as output - pa.mod.setup(m, rnz, pa.out_z) + pa.set_inputs({"z": cor.out_z}) # XXX Z as output + pa.set_outputs({"z": cor.out_z}) # XXX Z as output + pa.mod.setup(m, cor.out_z, pa.out_z) m.submodules.pack = pa.mod pz = self.add_state(FPPutZ("pack_put_z")) - pz.set_inputs({"z": rnz}) + pz.set_inputs({"z": cor.out_z}) pz.set_outputs({"out_z": self.out_z}) pz = self.add_state(FPPutZ("put_z"))