diff --git a/litex/gen/fhdl/verilog.py b/litex/gen/fhdl/verilog.py index 0e34af26f..e1bd8da4e 100644 --- a/litex/gen/fhdl/verilog.py +++ b/litex/gen/fhdl/verilog.py @@ -210,7 +210,8 @@ def _printattr(attr, attr_translate): if not firsta: r += ", " firsta = False - r += attr_name + " = \"" + attr_value + "\"" + const_expr = "\"" + attr_value + "\"" if not isinstance(attr_value, int) else str(attr_value) + r += attr_name + " = " + const_expr if r: r = "(* " + r + " *)" return r