From: Luke Kenneth Casson Leighton Date: Wed, 20 Mar 2019 12:46:14 +0000 (+0000) Subject: add ospec function to SpecialCases Mod X-Git-Tag: ls180-24jan2020~1617 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cdd9861836aa25c9b158823f7181695790bd28b8;p=ieee754fpu.git add ospec function to SpecialCases Mod --- diff --git a/src/add/nmigen_add_experiment.py b/src/add/nmigen_add_experiment.py index 0b46b39f..aa046b91 100644 --- a/src/add/nmigen_add_experiment.py +++ b/src/add/nmigen_add_experiment.py @@ -264,12 +264,15 @@ class FPAddSpecialCasesMod: def __init__(self, width): self.width = width self.i = self.ispec() - self.out_z = FPNumOut(width, False) + self.out_z = self.ospec() self.out_do_z = Signal(reset_less=True) def ispec(self): return FPNumBase2Ops(self.width) + def ospec(self): + return FPNumOut(self.width, False) + def setup(self, m, in_a, in_b, out_do_z): """ links module to inputs and outputs """