Skip to content

Commit

Permalink
hot fix for recent changes to loadZipIpCore()
Browse files Browse the repository at this point in the history
  • Loading branch information
ruck314 committed Dec 11, 2023
1 parent 004c852 commit 4b0bd4d
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions vivado/proc/code_loading.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -228,16 +228,15 @@ proc loadIpCore args {
set fileExt [file extension $params(path)]
if { ${fileExt} eq {.xci} ||
${fileExt} eq {.xcix} } {
# Check if file doesn't exist in project
set fbasename [file rootname [file tail $params(path)]]
if { [get_ips ${fbasename}] == "" } {
# Add the IP core file
import_ip -srcset sources_1 $params(path)
}
# Update the global list
set strip [file rootname [file tail $params(path)]]
set ::IP_LIST "$::IP_LIST ${strip}"
set ::IP_FILES "$::IP_FILES $params(path)"
# Check if file doesn't exist in project
if { [get_ips ${strip}] eq "" } {
# Add the IP core file
import_ip -srcset sources_1 $params(path)
}
} else {
puts "\n\n\n\n\n********************************************************"
puts "loadIpCore: $params(path) does not have a \[.xci,.xcix\] file extension"
Expand All @@ -262,16 +261,15 @@ proc loadIpCore args {
# Load all the IP core files
if { ${list} != "" } {
foreach pntr ${list} {
# Check if file doesn't exist in project
set fbasename [file rootname [file tail ${pntr}]]
if { [get_ips ${fbasename}] == "" } {
# Add the IP core file
import_ip -srcset sources_1 ${pntr}
}
# Update the global list
set strip [file rootname [file tail ${pntr}]]
set ::IP_LIST "$::IP_LIST ${strip}"
set ::IP_FILES "$::IP_FILES ${pntr}"
# Check if file doesn't exist in project
if { [get_ips ${strip}] eq "" } {
# Add the IP core file
import_ip -srcset sources_1 ${pntr}
}
}
} else {
puts "\n\n\n\n\n********************************************************"
Expand Down

0 comments on commit 4b0bd4d

Please sign in to comment.