From ec4739401270bf0ad09360a0d00bbc29d250b3e3 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sat, 17 Dec 2011 14:59:27 +0100 Subject: [PATCH] verilog: support for float parameters in instances --- migen/fhdl/verilog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] + "\"" -- 2.30.2