fhdl.ast.Signal: fix typo.

This commit is contained in:
whitequark 2018-12-12 12:37:30 +00:00
parent aab01d9e59
commit 00f0b950f6

View 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