From b48ce87fd6186963e5d5b8d63b50f6ba8798228d Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 27 Apr 2019 14:57:50 +0100 Subject: [PATCH] add submodules --- src/add/test_fsm_experiment.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/add/test_fsm_experiment.py b/src/add/test_fsm_experiment.py index 782fc612..4d05bba8 100644 --- a/src/add/test_fsm_experiment.py +++ b/src/add/test_fsm_experiment.py @@ -19,7 +19,6 @@ class FPDIV(FPBase): self.width = width self.in_a = FPOpIn(width) - self.in_b = FPOpIn(width) self.out_z = FPOpOut(width) self.states = [] @@ -37,7 +36,9 @@ class FPDIV(FPBase): a = FPNumIn(None, self.width, False) z = FPNumOut(self.width, False) - m.submodules.in_a = a + m.submodules.in_a = self.in_a + m.submodules.out_z = self.out_z + m.submodules.a = a m.submodules.z = z m.d.comb += a.v.eq(self.in_a.v) -- 2.30.2