Skip to content

Commit

Permalink
script: Adjust synopsys script to follow synopsys error syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
micprog committed Nov 16, 2023
1 parent c8e460b commit c178976
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/script_fmt/synopsys_tcl.tera
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set search_path $search_path_initial
{% for incdir in group.incdirs %}{# Add group's include directories
#}lappend search_path "$ROOT{{ incdir | replace(from=root, to='') }}"
{% endfor %}
{% if abort_on_error %}if {[catch { {% endif %}{# Catch errors immediately
{% if abort_on_error %}if {0 == [{% endif %}{# Catch errors immediately
#}analyze -format {% if group.file_type == 'verilog' %}sv{% elif group.file_type == 'vhdl' %}vhdl{% endif %} \{# Analyze command for SystemVerilog or VHDL #}
{% for define in group.defines %}{# Add group's defines
#}{% if loop.first %}-define { \
Expand All @@ -18,15 +18,15 @@ set search_path $search_path_initial
{% for file in group.files %}{# Add group's files
#}{{ ' ' }}"{{ file | replace(from=root, to='$ROOT') }}" \
{% endfor %}]
{% if abort_on_error %}}]} {return 1}{% endif %}
{% if abort_on_error %}]} {return 1}{% endif %}
{% endfor %}
{% else %}{# compilation_mode == 'common' #}{# Common block for all files
#}{% for file in all_verilog %}{# Loop over verilog files
#}{% if loop.first %}set search_path $search_path_initial
{% for incdir in all_incdirs %}{# Add all include directories
#}lappend search_path "$ROOT{{ incdir | replace(from=root, to='') }}"
{% endfor %}
{% if abort_on_error %}if {[catch { {% endif %}{# Catch errors immediately
{% if abort_on_error %}if {0 == [{% endif %}{# Catch errors immediately
#}analyze -format sv \{# Analyze command for SystemVerilog #}
{% for define in all_defines %}{# Add all defines
}
Expand All @@ -37,14 +37,14 @@ set search_path $search_path_initial
{% endif %}{% endfor %}[list \
{% endif %}{{ ' ' }}"{{ file | replace(from=root, to='$ROOT') }}" \{# Add all verilog files #}
{% if loop.last %}]
{% if abort_on_error %}}]} {return 1}{% endif %}
{% if abort_on_error %}]} {return 1}{% endif %}
{% endif %}{% endfor %}
{% for file in all_vhdl %}{% if loop.first %}{# Loop over all VHDL files
#}{% if abort_on_error %}if {[catch { {% endif %}{# Catch errors immediately
#}{% if abort_on_error %}if {0 == [{% endif %}{# Catch errors immediately
#}analyze -format vhdl \{# Analyze command for VHDL #}
[list \
{% endif %}{{ ' ' }}"{{ file | replace(from=root, to='$ROOT') }}" \{# Add all VHDL files #}
{% if loop.last %}]
{% if abort_on_error %}}]} {return 1}{% endif %}
{% if abort_on_error %}]} {return 1}{% endif %}
{% endif %}{% endfor %}
{% endif %}set search_path $search_path_initial

0 comments on commit c178976

Please sign in to comment.