mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
verilog: support for float parameters in instances
This commit is contained in:
parent
ee6ca729a2
commit
ec47394012
1 changed files with 1 additions and 1 deletions
|
@ -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] + "\""
|
||||
|
|
Loading…
Reference in a new issue