Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

verilog: support for float parameters in instances

  • Loading branch information...
commit ec4739401270bf0ad09360a0d00bbc29d250b3e3 1 parent ee6ca72
@sbourdeauducq sbourdeauducq authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  migen/fhdl/verilog.py
View
2  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] + "\""
Please sign in to comment.
Something went wrong with that request. Please try again.