From bdeb8c0805015fa086b88c5aa935f875a8cb3ec0 Mon Sep 17 00:00:00 2001 From: Jan Decaluwe Date: Sun, 20 Jun 2010 14:56:25 +0200 Subject: [PATCH] Solved edge inference bug --- myhdl/conversion/_analyze.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/myhdl/conversion/_analyze.py b/myhdl/conversion/_analyze.py index 92057902..c3487774 100644 --- a/myhdl/conversion/_analyze.py +++ b/myhdl/conversion/_analyze.py @@ -918,6 +918,8 @@ class _AnalyzeVisitor(ast.NodeVisitor, _ConversionMixin): def visit_Num(self, node): node.signed = False n = node.n + # assign to value attribute for backwards compatibility + node.value = n if n in (0, 1): node.obj = bool(n) elif isinstance(n, int):