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_create "xilinx.com:ip:blk_mem_gen:7.3" "ADCFiFo" "Block Memory Generator" "Block Memory Generator (xilinx.com:ip:blk_mem_gen:7.3) generated by Project Navigator" xc4vlx25-10ff668 VHDL ]
28 puts "Core Generator create command completed successfully."
29 }
elseif { $result == 1} {
30 puts "Core Generator create command failed."
31 }
elseif { $result == 3 || $result == 4} {
33 set result [
expr $result - 3 ]
35 puts "Core Generator create cancelled."