From 9678f15f0c77d58649d1064e5d7268905da16937 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sun, 10 Mar 2019 03:37:36 +0000 Subject: [PATCH] allow code-creation --- src/add/nmigen_add_experiment.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/add/nmigen_add_experiment.py b/src/add/nmigen_add_experiment.py index d37de7ae..0ca1a05e 100644 --- a/src/add/nmigen_add_experiment.py +++ b/src/add/nmigen_add_experiment.py @@ -1493,10 +1493,10 @@ class FPADD(FPID): if __name__ == "__main__": 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]) + main(alu, ports=alu.rs[0][0].ports() + \ + alu.rs[0][1].ports() + \ + alu.rs[0][2].ports() + \ + [alu.ids.in_mid, alu.ids.out_mid]) else: alu = FPADDBase(width=32, id_wid=5, single_cycle=True) main(alu, ports=[alu.in_a, alu.in_b] + \ -- 2.30.2