From: Luke Kenneth Casson Leighton Date: Wed, 20 Feb 2019 02:17:33 +0000 (+0000) Subject: reset allowed on FPop, not on FPNum X-Git-Tag: ls180-24jan2020~1861 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b2cc0192847d019a30d7f760a1ffb71319f4935b;p=ieee754fpu.git reset allowed on FPop, not on FPNum --- diff --git a/src/add/fpbase.py b/src/add/fpbase.py index ee8857c8..d6ac60eb 100644 --- a/src/add/fpbase.py +++ b/src/add/fpbase.py @@ -87,7 +87,7 @@ class FPNum: self.e_start = self.rmw - 1 self.e_end = self.rmw + self.e_width - 3 # for decoding - self.v = Signal(width) # Latched copy of value + self.v = Signal(width, reset_less=True) # Latched copy of value self.m = Signal(m_width, reset_less=True) # Mantissa self.e = Signal((e_width, True), reset_less=True) # Exponent: IEEE754exp+2 bits, signed self.s = Signal(reset_less=True) # Sign bit @@ -201,9 +201,9 @@ class FPOp: def __init__(self, width): self.width = width - self.v = Signal(width, reset_less=True) - self.stb = Signal(reset_less=True) - self.ack = Signal(reset_less=True) + self.v = Signal(width) + self.stb = Signal() + self.ack = Signal() def ports(self): return [self.v, self.stb, self.ack]