From: Luke Kenneth Casson Leighton Date: Thu, 14 Feb 2019 14:49:17 +0000 (+0000) Subject: corrections, out_z_* and friends are members of class X-Git-Tag: ls180-24jan2020~1991 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9f0aa878789ad928e8b531fceb6aba606cc72c1a;p=ieee754fpu.git corrections, out_z_* and friends are members of class --- diff --git a/src/add/nmigen_add_experiment.py b/src/add/nmigen_add_experiment.py index 15c72103..599a5d0f 100644 --- a/src/add/nmigen_add_experiment.py +++ b/src/add/nmigen_add_experiment.py @@ -344,13 +344,11 @@ class FPADD: with m.State("put_z"): m.next = "get_a" m.d.sync += [ - s_out_z_stb.eq(1), - s_out_z.eq(z) + self.out_z_stb.eq(1), + self.out_z.eq(z.v) ] - with m.If(s_out_z_stb & out_z_ack): - m.d.sync += [ - s_out_z_stb.eq(0) - ] + with m.If(self.out_z_stb & self.out_z_ack): + m.d.sync += self.out_z_stb.eq(0) return m