Prev: Writing Hex values to file in VHDL?
Next: Why hardware designers should stick to command line tools
From: jjplaw on 23 Mar 2010 08:23 Newbie here. I'm running a program that invokes a tcl file. I'm trying to execute the xilinx tcl commands from that tcl script. In the tcl script, i only have the following code. source $env(XILINX)/bin/xilinx-init.tcl But i received the following error when the script gets invoked: error reading package index file C:/Xilinx/10.1/ISE/bin/pkgIndex.tcl: load: Cannot match with any static package. Try "load_unsupported" to load dynamic packages into statically wrapped applications. error reading package index file C:/Xilinx/10.1/ISE/bin/pkgIndex.tcl: load: Cannot match with any static package. Try "load_unsupported" to load dynamic packages into statically wrapped applications. can't find package xilinx while executing "package require xilinx" (file "C:\Xilinx\10.1\ISE/bin/xilinx-init.tcl" line 30) invoked from within "source $env(XILINX)/bin/xilinx-init.tcl" ............ ..... Anyone here with experience dealing with xilinx tcl commands? Any idea how to solve this? Please advise.... --------------------------------------- Posted through http://www.FPGARelated.com
From: Alan Fitch on 23 Mar 2010 14:46 On 23/03/10 12:23, jjplaw wrote: > Newbie here. I'm running a program that invokes a tcl file. I'm trying to > execute the xilinx tcl commands from that tcl script. > > In the tcl script, i only have the following code. > > source $env(XILINX)/bin/xilinx-init.tcl > > But i received the following error when the script gets invoked: > > error reading package index file C:/Xilinx/10.1/ISE/bin/pkgIndex.tcl: load: > Cannot match with any static package. > Try "load_unsupported" to load dynamic packages into statically wrapped > applications. > error reading package index file C:/Xilinx/10.1/ISE/bin/pkgIndex.tcl: load: > Cannot match with any static package. > Try "load_unsupported" to load dynamic packages into statically wrapped > applications. > can't find package xilinx > while executing > "package require xilinx" > (file "C:\Xilinx\10.1\ISE/bin/xilinx-init.tcl" line 30) > invoked from within > "source $env(XILINX)/bin/xilinx-init.tcl" > ........... > .... > > Anyone here with experience dealing with xilinx tcl commands? > Any idea how to solve this? Please advise.... > What command are you using to execute the tcl? With Xilinx, I would expect you to be using xtclsh, regards Alan -- Alan Fitch
From: jjplaw on 23 Mar 2010 22:50 >What command are you using to execute the tcl? With Xilinx, I would >expect you to be using xtclsh, > >regards >Alan > >-- >Alan Fitch > Probably i'm asking the wrong question. I intend to run most the xilinx tcl commands from project creation to bitstream creation. But the script is being invoked from an exe file. When the script gets invoked, it's evaluated in a Tcl regular shell causing all the xilinx tcl commands to be undefined/no recognized. How do i load/initialize the xilinx tcl libraries into that script so that i can use the xilinx tcl commands. I tried using "source $env(XILINX)/bin/xilinx-init.tcl" which was taken from the Xilinx Development System Reference Guide document(Chapter 3, page 54) but i received the error above. Please advise. --------------------------------------- Posted through http://www.FPGARelated.com
From: Paul on 24 Mar 2010 13:10 > I intend to run most the xilinx tcl commands from project creation to > bitstream creation. But the script is being invoked from an exe file. When > the script gets invoked, it's evaluated in a Tcl regular shell causing all > the xilinx tcl commands to be undefined/no recognized. Is there a reason why you are running your script with tclsh from your exe, rather than using xtclsh? xtclsh understands the xilinx tcl commands.
From: Alan Fitch on 24 Mar 2010 16:52 On 23/03/10 12:23, jjplaw wrote: > Newbie here. I'm running a program that invokes a tcl file. I'm trying to > execute the xilinx tcl commands from that tcl script. > > In the tcl script, i only have the following code. > > source $env(XILINX)/bin/xilinx-init.tcl > > But i received the following error when the script gets invoked: > > error reading package index file C:/Xilinx/10.1/ISE/bin/pkgIndex.tcl: load: > Cannot match with any static package. > Try "load_unsupported" to load dynamic packages into statically wrapped > applications. > error reading package index file C:/Xilinx/10.1/ISE/bin/pkgIndex.tcl: load: > Cannot match with any static package. > Try "load_unsupported" to load dynamic packages into statically wrapped > applications. > can't find package xilinx > while executing > "package require xilinx" > (file "C:\Xilinx\10.1\ISE/bin/xilinx-init.tcl" line 30) > invoked from within > "source $env(XILINX)/bin/xilinx-init.tcl" > ........... > .... > OK, now I understand. I tried this on Linux (Fedora 12 with Xilinx 11.1) and it appeared to work. So I suggest you raise the issue with Xilinx, regards Alan P.S. This is what I did. The first 2 errors don't seem to have caused a problem. [apf(a)apfitch2 ~]$ tclsh % source $env(XILINX)/bin/xilinx-init.tcl ERROR:Scripting:2 - While trying to add a wrapper for TCL type int, an error occured: 1. This probably means that the TCL type has already been registered. ERROR:Scripting:2 - While trying to add a wrapper for TCL type int, an error occured: 1. This probably means that the TCL type has already been registered. % help project Tcl command: project (create and manage projects) The project command creates and manages ISE projects. A project contains all files and data related to a design. You can create a project to manage all of the design files and to enable different processes to work on the design. Syntax: % project <subcommand> Project subcommands: archive (archive all files belonging to the current ISE project) clean (remove system-generated project files) close (close the ISE project) get (get project properties) get_processes (get project processes) new (create a new ISE project) open (open an ISE project) properties (list project properties) save_as (save project as another ISE project) set (set project properties, values, and options) set device (set device) set family (set device family) set package (set device package) set speed (set device speed) set top (set the top-level module or entity) For help on a particular subcommand, type: % help project <subcommand> % -- Alan Fitch
|
Next
|
Last
Pages: 1 2 Prev: Writing Hex values to file in VHDL? Next: Why hardware designers should stick to command line tools |