fhdl/specials/Instance: _printintbool -> verilog_printexpr

This commit is contained in:
Sebastien Bourdeauducq 2013-02-24 13:08:01 +01:00
parent c2d54f481f
commit 55ab01f928
1 changed files with 1 additions and 1 deletions

View File

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