Skip to content

Commit

Permalink
[VivadoSim] more robust quoting
Browse files Browse the repository at this point in the history
  • Loading branch information
kammoh committed Sep 27, 2024
1 parent e0127fc commit b44ef95
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/xeda/flows/vivado/templates/vivado_sim.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@ puts "\n===========================( Analyzing HDL Sources )====================
{%- for src in design.sim_sources %}
{%- if src.type.name == "Verilog" %}
puts "Analyzing Verilog file {{src.file}}"
if { [catch {eval exec xvlog ${analyze_flags} \"{{src.file}}\" } error]} {
if { [catch {eval exec xvlog ${analyze_flags} {" {{- src.file -}} "} } error]} {
errorExit $error
}
{%- elif src.type.name == "SystemVerilog" %}
puts "Analyzing SystemVerilog file {{src.file}}"
if { [catch {eval exec xvlog ${analyze_flags} -sv \"{{src.file}}\" } error]} {
if { [catch {eval exec xvlog ${analyze_flags} -sv {" {{- src.file -}} "} } error]} {
errorExit $error
}
{%- elif src.type.name == "Vhdl" %}
puts "Analyzing VHDL file {{src.file}} {% if design.language.vhdl.standard -%} [VHDL {{design.language.vhdl.standard}}]" {%- endif %}
if { [catch {eval exec xvhdl ${analyze_flags} {% if design.language.vhdl.standard == "08" %} -2008 {% elif design.language.vhdl.standard == "93" %} -93_mode {% endif %} \"{{src.file}}\" } error]} {
puts "Analyzing VHDL file {{src.file}} {% if design.language.vhdl.standard -%} [VHDL {{design.language.vhdl.standard}}] {%- endif %}"
if { [catch {eval exec xvhdl ${analyze_flags} {% if design.language.vhdl.standard == "08" %} -2008 {% elif design.language.vhdl.standard == "93" %} -93_mode {% endif %} {" {{- src.file -}} "} } error]} {
errorExit $error
}
{%- endif %}
Expand Down

0 comments on commit b44ef95

Please sign in to comment.