Skip to content

Commit 212cb2c

Browse files
bl0xwhitequark
authored andcommitted
vendor._gowin: Fix sdc syntax.
1 parent c78806f commit 212cb2c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

amaranth/vendor/_gowin.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -443,9 +443,10 @@ def _osc_div(self):
443443
create_clock -name {{signal.name|tcl_quote}} -period {{1000000000/frequency}} [get_nets {{signal|hierarchy("/")|tcl_quote}}]
444444
{% endfor %}
445445
{% for port, frequency in platform.iter_port_clock_constraints() -%}
446-
create_clock -name {{port.name|tcl_quote}} -period {{1000000000/frequency}} [get_ports {{port.name|tcl_quote}}]
446+
create_clock -name {{port.name|tcl_quote}} -period {{1000000000/frequency}} [get_ports
447+
{{ "{" }}{{port.name}}{{ "}" }}]
447448
{% endfor %}
448-
{{get_override("add_constraints")|default("# (add_constraints placeholder)")}}
449+
{{get_override("add_constraints")|default("// (add_constraints placeholder)")}}
449450
""",
450451
}
451452
_gowin_command_templates = [

0 commit comments

Comments
 (0)