fhdl.ast.Signal: fix typo.
authorwhitequark <cz@m-labs.hk>
Wed, 12 Dec 2018 12:37:30 +0000 (12:37 +0000)
committerwhitequark <cz@m-labs.hk>
Wed, 12 Dec 2018 12:37:30 +0000 (12:37 +0000)
nmigen/fhdl/ast.py

index 0c832fe9e60567519c1ba0df66a172da2c27beb6..1f87e391929658740d026ad0cb9a0cf10dcd9803 100644 (file)
@@ -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