[ -n "${{platform._toolchain_env_var}}" ] && . "${{platform._toolchain_env_var}}"
{{emit_commands("sh")}}
""",
- # Vivado doesn't like constructs like (* keep = 32'd1 *), even though they mean the same
- # thing as (* keep = 1 *); use -decimal to work around that.
"{{name}}.v": r"""
/* {{autogenerated}} */
- {{emit_verilog(["-decimal"])}}
+ {{emit_verilog()}}
""",
"{{name}}.debug.v": r"""
/* {{autogenerated}} */
- {{emit_debug_verilog(["-decimal"])}}
+ {{emit_debug_verilog()}}
""",
"{{name}}.tcl": r"""
# {{autogenerated}}
def add_clock_constraint(self, clock, frequency):
super().add_clock_constraint(clock, frequency)
- clock.attrs["keep"] = 1
+ clock.attrs["keep"] = "TRUE"
def _get_xdr_buffer(self, m, pin, *, i_invert=False, o_invert=False):
def get_dff(clk, d, q):
[ -n "${{platform._toolchain_env_var}}" ] && . "${{platform._toolchain_env_var}}"
{{emit_commands("sh")}}
""",
- # Vivado doesn't like constructs like (* keep = 32'd1 *), even though they mean the same
- # thing as (* keep = 1 *); use -decimal to work around that.
"{{name}}.v": r"""
/* {{autogenerated}} */
- {{emit_verilog(["-decimal"])}}
+ {{emit_verilog()}}
""",
"{{name}}.debug.v": r"""
/* {{autogenerated}} */
- {{emit_debug_verilog(["-decimal"])}}
+ {{emit_debug_verilog()}}
""",
"{{name}}.tcl": r"""
# {{autogenerated}}
def add_clock_constraint(self, clock, frequency):
super().add_clock_constraint(clock, frequency)
- clock.attrs["keep"] = 1
+ clock.attrs["keep"] = "TRUE"
def _get_xdr_buffer(self, m, pin, *, i_invert=False, o_invert=False):
def get_dff(clk, d, q):