From 6b4e7b50b82809ea9be6d7e981c3d622e86ed321 Mon Sep 17 00:00:00 2001 From: whitequark Date: Wed, 12 Dec 2018 12:37:30 +0000 Subject: [PATCH] fhdl.ast.Signal: fix typo. --- nmigen/fhdl/ast.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2