From: Luke Kenneth Casson Leighton Date: Fri, 8 Mar 2019 12:59:11 +0000 (+0000) Subject: main on FPADD not on FPADDBase X-Git-Tag: ls180-24jan2020~1719 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5e20d7a6fb0f8b623634951b64a932e5f2e97a0f;p=ieee754fpu.git main on FPADD not on FPADDBase --- diff --git a/src/add/nmigen_add_experiment.py b/src/add/nmigen_add_experiment.py index c45967b8..4a9119d5 100644 --- a/src/add/nmigen_add_experiment.py +++ b/src/add/nmigen_add_experiment.py @@ -1275,11 +1275,18 @@ class FPADD(FPID): if __name__ == "__main__": - alu = FPADDBase(width=32, id_wid=5, single_cycle=True) - main(alu, ports=[alu.in_a, alu.in_b] + \ - alu.in_t.ports() + \ - alu.out_z.ports() + \ - [alu.in_mid, alu.out_mid]) + if True: + alu = FPADD(width=32, id_wid=5, single_cycle=True) + main(alu, ports=alu.in_a.ports() + \ + alu.in_b.ports() + \ + alu.out_z.ports() + \ + [alu.in_mid, alu.out_mid]) + else: + alu = FPADDBase(width=32, id_wid=5, single_cycle=True) + main(alu, ports=[alu.in_a, alu.in_b] + \ + alu.in_t.ports() + \ + alu.out_z.ports() + \ + [alu.in_mid, alu.out_mid]) # works... but don't use, just do "python fname.py convert -t v"