Skip to content

Commit

Permalink
Update spyglass-project.prj.j2
Browse files Browse the repository at this point in the history
Added goal_options section. Also, in the section where the SystemVerilog (SV09) support is configured, it has been changed to SV for flexibility and generalization
  • Loading branch information
amal-araweelo authored Nov 1, 2024
1 parent 74a96fd commit 3ad3503
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions edalize/templates/spyglass/spyglass-project.prj.j2
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,22 @@


set_option projectwdir .
set_option language_mode mixed
set_option designread_enable_synthesis yes
set_option designread_disable_flatten no

### Options ###

# Make no only FATAL messages return a non-zero exit code, but also ERRORs and
# WARNINGs
set_option enable_pass_exit_codes yes

{% for option in tool_options.spyglass_options %}
set_option {{ option }}
{% endfor %}

### Files ###
{% for src_file in src_files if src_file|src_file_filter%}
{{ src_file|src_file_filter }}
{% endfor %}


{% if vlogparam -%}
set_option param {
{%- for k, v in vlogparam.items() %}{{ k }}={{ v|param_value_str }} {% endfor -%}
Expand All @@ -42,14 +42,17 @@ set_option incdir [list {{ incdirs|join(' ') }}]
set_option top {{ toplevel }}
{%- endif %}

{% if has_systemVerilog -%}
set_option enableSV09 yes
{%- endif %}

set_option active_methodology $SPYGLASS_HOME/{{ tool_options.methodology }}

current_methodology $SPYGLASS_HOME/{{ tool_options.methodology }}
{% if has_systemVerilog -%} # Modified such that it is not a specifc SV version
set_option enableSV yes
{%- endif %}

### Rule parameters ###
{% for rule_param in tool_options.rule_parameters %}
set_parameter {{ rule_param }}
{% endfor %}

### Goal options ###
{% for goal_option in tool_options.goal_options %}
set_goal_option {{ goal_option }}
{% endfor %}

0 comments on commit 3ad3503

Please sign in to comment.