5 proc findRtfPath { relativePath } {
7 if { [info exists ::env(XILINX) ]} {
8 if { [info exists ::env(MYXILINX)]} {
9 set xilenv [
join [list $::env(MYXILINX) $::env(XILINX)] $::xilinx::path_sep ]
11 set xilenv $::env(XILINX)
14 foreach path [ split $xilenv $::xilinx::path_sep ] {
15 set fullPath [
file join $path $relativePath ]
16 if { [ file exists $fullPath ]} {
23 source [
findRtfPath "data/projnav/scripts/dpm_cgUtils.tcl" ]
25 set result [ run_cg_edit "ethernet_FIFO" xc4vlx25-10ff668 VHDL ]
28 puts "Core Generator edit command completed successfully."
29 }
elseif { $result == 1} {
30 puts "Core Generator edit command failed."
31 }
elseif { $result == 3 || $result == 4} {
33 set result [
expr $result - 3 ]
35 puts "Core Generator edit cancelled."