Skip to content

Commit

Permalink
vendor._gowin: Fix sdc syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
bl0x authored and whitequark committed Jul 22, 2024
1 parent c78806f commit 212cb2c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions amaranth/vendor/_gowin.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,9 +443,10 @@ def _osc_div(self):
create_clock -name {{signal.name|tcl_quote}} -period {{1000000000/frequency}} [get_nets {{signal|hierarchy("/")|tcl_quote}}]
{% endfor %}
{% for port, frequency in platform.iter_port_clock_constraints() -%}
create_clock -name {{port.name|tcl_quote}} -period {{1000000000/frequency}} [get_ports {{port.name|tcl_quote}}]
create_clock -name {{port.name|tcl_quote}} -period {{1000000000/frequency}} [get_ports
{{ "{" }}{{port.name}}{{ "}" }}]
{% endfor %}
{{get_override("add_constraints")|default("# (add_constraints placeholder)")}}
{{get_override("add_constraints")|default("// (add_constraints placeholder)")}}
""",
}
_gowin_command_templates = [
Expand Down

0 comments on commit 212cb2c

Please sign in to comment.