Skip to content

Commit

Permalink
bug fix for PR #304
Browse files Browse the repository at this point in the history
  • Loading branch information
ruck314 committed Nov 8, 2023
1 parent 530c950 commit a70e2f7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions vivado/proc/code_loading.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,8 @@ proc loadIpCore args {
if { ${fileExt} eq {.xci} ||
${fileExt} eq {.xcix} } {
# Check if file doesn't exist in project
if { [get_files -quiet $params(path)] == "" } {
set fbasename [file rootname [file tail $params(path)]]
if { [get_ips ${fbasename}] == "" } {
# Add the IP core file
import_ip -srcset sources_1 $params(path)
}
Expand Down Expand Up @@ -262,7 +263,8 @@ proc loadIpCore args {
if { ${list} != "" } {
foreach pntr ${list} {
# Check if file doesn't exist in project
if { [get_files -quiet ${pntr}] == "" } {
set fbasename [file rootname [file tail ${pntr}]]
if { [get_ips ${fbasename}] == "" } {
# Add the IP core file
import_ip -srcset sources_1 ${pntr}
}
Expand Down

0 comments on commit a70e2f7

Please sign in to comment.