From: Luke Kenneth Casson Leighton Date: Sat, 2 Mar 2019 13:58:45 +0000 (+0000) Subject: move put_z to PutZ class X-Git-Tag: ls180-24jan2020~1762 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a6e70cb6a24ebff8ca2b6fbc98c64c687523a9bc;p=ieee754fpu.git move put_z to PutZ class --- diff --git a/src/add/nmigen_add_experiment.py b/src/add/nmigen_add_experiment.py index 14f73052..f6d44509 100644 --- a/src/add/nmigen_add_experiment.py +++ b/src/add/nmigen_add_experiment.py @@ -761,7 +761,14 @@ class FPPack(FPState): class FPPutZ(FPState): def action(self, m): - self.put_z(m, self.z, self.out_z, "get_a") + m.d.sync += [ + self.out_z.v.eq(self.z.v) + ] + with m.If(self.out_z.stb & self.out_z.ack): + m.d.sync += self.out_z.stb.eq(0) + m.next = "get_a" + with m.Else(): + m.d.sync += self.out_z.stb.eq(1) class FPADD: