From: whitequark Date: Wed, 12 Dec 2018 12:37:30 +0000 (+0000) Subject: fhdl.ast.Signal: fix typo. X-Git-Tag: working~335 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=00f0b950f61dd3a642feeda1ca0cdb3e4062d3fc;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