Permalink
Browse files

verilog: support for float parameters in instances

  • Loading branch information...
sbourdeauducq committed Dec 17, 2011
1 parent ee6ca72 commit ec4739401270bf0ad09360a0d00bbc29d250b3e3
Showing with 1 addition and 1 deletion.
  1. +1 −1 migen/fhdl/verilog.py
View
@@ -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] + "\""

0 comments on commit ec47394

Please sign in to comment.