From: whitequark Date: Wed, 12 Dec 2018 12:37:30 +0000 (+0000) Subject: fhdl.ast.Signal: fix typo. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6b4e7b50b82809ea9be6d7e981c3d622e86ed321;p=nmigen.git fhdl.ast.Signal: fix typo. --- diff --git a/nmigen/fhdl/ast.py b/nmigen/fhdl/ast.py index 0c832fe..1f87e39 100644 --- a/nmigen/fhdl/ast.py +++ b/nmigen/fhdl/ast.py @@ -541,7 +541,7 @@ class Signal(Value, DUID): elif isinstance(bits_sign, int): if not (min is None or max is None): raise ValueError("Only one of bits/signedness or bounds may be specified") - self.nbits, self.signed = 1, False + self.nbits, self.signed = bits_sign, False else: self.nbits, self.signed = bits_sign