diff options
author | Paul Selkirk <paul@psgd.org> | 2015-07-17 11:57:51 -0400 |
---|---|---|
committer | Paul Selkirk <paul@psgd.org> | 2015-07-17 11:57:51 -0400 |
commit | 1acddf19bb8c39f5202d80af068b5ffd14797f4b (patch) | |
tree | 5369e18a361f4e88b4c0f751fe5f202e566d31f3 /src/rtl/ipcore/edit_multiplier_s6.tcl |
Initial commit
Diffstat (limited to 'src/rtl/ipcore/edit_multiplier_s6.tcl')
-rw-r--r-- | src/rtl/ipcore/edit_multiplier_s6.tcl | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/rtl/ipcore/edit_multiplier_s6.tcl b/src/rtl/ipcore/edit_multiplier_s6.tcl new file mode 100644 index 0000000..b2357d5 --- /dev/null +++ b/src/rtl/ipcore/edit_multiplier_s6.tcl @@ -0,0 +1,37 @@ +##
+## Core Generator Run Script, generator for Project Navigator edit command
+##
+
+proc findRtfPath { relativePath } {
+ set xilenv ""
+ if { [info exists ::env(XILINX) ] } {
+ if { [info exists ::env(MYXILINX)] } {
+ set xilenv [join [list $::env(MYXILINX) $::env(XILINX)] $::xilinx::path_sep ]
+ } else {
+ set xilenv $::env(XILINX)
+ }
+ }
+ foreach path [ split $xilenv $::xilinx::path_sep ] {
+ set fullPath [ file join $path $relativePath ]
+ if { [ file exists $fullPath ] } {
+ return $fullPath
+ }
+ }
+ return ""
+}
+
+source [ findRtfPath "data/projnav/scripts/dpm_cgUtils.tcl" ]
+
+set result [ run_cg_edit "multiplier_s6" xc6slx45-3csg324 Verilog ]
+
+if { $result == 0 } {
+ puts "Core Generator edit command completed successfully."
+} elseif { $result == 1 } {
+ puts "Core Generator edit command failed."
+} elseif { $result == 3 || $result == 4 } {
+ # convert 'version check' result to real return range, bypassing any messages.
+ set result [ expr $result - 3 ]
+} else {
+ puts "Core Generator edit cancelled."
+}
+exit $result
|