Skip to content

Commit 54aaca3

Browse files
committed
vendor.lattice_machxo_2_3l: fix sdc generation
1 parent c1ed908 commit 54aaca3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

nmigen/vendor/lattice_machxo_2_3l.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,12 @@ class LatticeMachXO2Or3LPlatform(TemplatedPlatform):
104104
{{get_override("add_preferences")|default("# (add_preferences placeholder)")}}
105105
""",
106106
"{{name}}.sdc": r"""
107+
set_hierarchy_separator {/}
107108
{% for net_signal, port_signal, frequency in platform.iter_clock_constraints() -%}
108109
{% if port_signal is not none -%}
109-
create_clock -name {{port_signal.name|tcl_escape}} -period {{1000000000/frequency}} [get_ports {{port_signal.name|tcl_escape}}]
110+
create_clock -name {{port_signal.name|tcl_quote}} -period {{1000000000/frequency}} [get_ports {{port_signal.name|tcl_quote}}]
110111
{% else -%}
111-
create_clock -name {{net_signal.name|tcl_escape}} -period {{1000000000/frequency}} [get_nets {{net_signal|hierarchy("/")|tcl_escape}}]
112+
create_clock -name {{net_signal.name|tcl_quote}} -period {{1000000000/frequency}} [get_nets {{net_signal|hierarchy("/")|tcl_quote}}]
112113
{% endif %}
113114
{% endfor %}
114115
{{get_override("add_constraints")|default("# (add_constraints placeholder)")}}

0 commit comments

Comments
 (0)