From 9f0aa878789ad928e8b531fceb6aba606cc72c1a Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 14 Feb 2019 14:49:17 +0000 Subject: [PATCH] corrections, out_z_* and friends are members of class --- src/add/nmigen_add_experiment.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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 -- 2.30.2