fhdl: fix value_bv for operators

This commit is contained in:
Sebastien Bourdeauducq 2012-07-13 17:40:49 +02:00
parent b4613d913f
commit 599ed8d470
1 changed files with 1 additions and 1 deletions

View File

@ -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)