From: Sebastien Bourdeauducq Date: Wed, 19 Dec 2012 15:21:57 +0000 (+0100) Subject: pytholite: fix bug with constant assignment to register X-Git-Tag: 24jan2021_ls180~2099^2~710 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=47f5fc70e48ba0ed9745cdb728c6ee723172e992;p=litex.git pytholite: fix bug with constant assignment to register --- diff --git a/migen/pytholite/compiler.py b/migen/pytholite/compiler.py index 2d437bc1..1faf1e10 100644 --- a/migen/pytholite/compiler.py +++ b/migen/pytholite/compiler.py @@ -70,7 +70,7 @@ class _Compiler: return self.visit_assign_special(sa, node, statements) else: value = self.ec.visit_expr(node.value) - if isinstance(value, Value): + if isinstance(value, (int, bool, Value)): r = [] for target in node.targets: if isinstance(target, ast.Attribute) and target.attr == "store":