fhdl/specials/Instance: _printintbool -> verilog_printexpr
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Sun, 24 Feb 2013 12:08:01 +0000 (13:08 +0100)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Sun, 24 Feb 2013 12:08:01 +0000 (13:08 +0100)
migen/fhdl/specials.py

index 981b2bd4b8b90c8286a3d2ff5fe881fc8e4c9f80..9d443aba9a1111cc6c377042b1df5ed2f96dfc80 100644 (file)
@@ -127,7 +127,7 @@ class Instance(Special):
                                firstp = False
                                r += "\t." + p.name + "("
                                if isinstance(p.value, (int, bool)):
-                                       r += _printintbool(p.value)[0]
+                                       r += verilog_printexpr(ns, p.value)[0]
                                elif isinstance(p.value, float):
                                        r += str(p.value)
                                elif isinstance(p.value, str):