Skip to content

Commit

Permalink
openflow: add missing comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigomelo9 committed Aug 23, 2024
1 parent b2cd5cb commit e87cde8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pyfpga/templates/openflow.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ $DOCKER hdlc/ghdl:yosys /bin/bash -c "
{% if hooks %}{{ hooks.presyn | join('\n') }}{% endif %}
yosys -Q -m ghdl -p '

{% if includes %}
{% if includes %}# Verilog Includes
verilog_defaults -add{% for path in includes %} -I{{ path }}{% endfor %}
{% endif %}

{% if defines %}
{% if defines %}# Verilog Defines
verilog_defines{% for key, value in defines.items() %} -D{{ key }}={{ value }}{% endfor %}
{% endif %}

{% if files %}
{% if files %}# Files inclusion
{% for name, attr in files.items() %}
{% if attr.hdl == "vlog" %}
read_verilog -defer {{ name }}
Expand All @@ -33,11 +33,11 @@ read_verilog -defer -sv {{ name }}
{% endfor %}
{% endif %}

{% if params %}
{% if params %}# Verilog Parameters / VHDL Generics
chparam{% for key, value in params.items() %} -set {{ key }} {{ value }}{% endfor %}
{% endif %}

{% if top %}
{% if top %}# Top-level specification
synth -top {{ top }}
{% endif %}

Expand Down

0 comments on commit e87cde8

Please sign in to comment.