From: Sebastien Bourdeauducq Date: Fri, 13 Jul 2012 15:40:49 +0000 (+0200) Subject: fhdl: fix value_bv for operators X-Git-Tag: 24jan2021_ls180~2099^2~862 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=599ed8d4700d76b36ab201b37aa0f41df1a7f248;p=litex.git fhdl: fix value_bv for operators --- diff --git a/migen/fhdl/tools.py b/migen/fhdl/tools.py index d27f23bb..a753d85e 100644 --- a/migen/fhdl/tools.py +++ b/migen/fhdl/tools.py @@ -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)