mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
fhdl: fix value_bv for operators
This commit is contained in:
parent
b4613d913f
commit
599ed8d470
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ def value_bv(v):
|
|||
elif isinstance(v, Signal):
|
||||
return v.bv
|
||||
elif isinstance(v, _Operator):
|
||||
obv = map(value_bv, v.operands)
|
||||
obv = list(map(value_bv, v.operands))
|
||||
if v.op == "+" or v.op == "-":
|
||||
return BV(max(obv[0].width, obv[1].width) + 1,
|
||||
obv[0].signed and obv[1].signed)
|
||||
|
|
Loading…
Reference in a new issue