From: Sebastien Bourdeauducq Date: Sat, 17 Dec 2011 13:59:27 +0000 (+0100) Subject: verilog: support for float parameters in instances X-Git-Tag: 24jan2021_ls180~2099^2~1131 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ec4739401270bf0ad09360a0d00bbc29d250b3e3;p=litex.git verilog: support for float parameters in instances --- diff --git a/migen/fhdl/verilog.py b/migen/fhdl/verilog.py index cb43810b..ac9892f3 100644 --- a/migen/fhdl/verilog.py +++ b/migen/fhdl/verilog.py @@ -90,7 +90,7 @@ def _printinstances(ns, i, clk, rst): r += ",\n" firstp = False r += "\t." + p[0] + "(" - if isinstance(p[1], int) or isinstance(p[1], Constant): + if isinstance(p[1], int) or isinstance(p[1], float) or isinstance(p[1], Constant): r += str(p[1]) elif isinstance(p[1], str): r += "\"" + p[1] + "\""