From: Christopher Fairbairn Subject: ISE WebPack under Linux (use of command line tools) Newsgroups: comp.arch.fpga Reply-To: ckf13@student.canterbury.ac.nz Lines: 26 User-Agent: KNode/0.7.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit Message-ID: <3auma.67221$jE3.1433454@news.xtra.co.nz> Date: Mon, 14 Apr 2003 20:20:05 +1200 NNTP-Posting-Host: 219.88.87.151 X-Complaints-To: newsadmin@xtra.co.nz X-Trace: news.xtra.co.nz 1050308351 219.88.87.151 (Mon, 14 Apr 2003 20:19:11 NZST) NNTP-Posting-Date: Mon, 14 Apr 2003 20:19:11 NZST Organization: Xtra Path: chonsp.franklin.ch!pfaff.ethz.ch!news-zh.switch.ch!news.imp.ch!news.imp.ch!newsfeed.stueberl.de!newsfeed.online.be!64.154.60.99.MISMATCH!c03.atl99!news.webusenet.com!news02.tsnz.net!newsfeed01.tsnz.net!news.xtra.co.nz!53ab2750!not-for-mail Xref: chonsp.franklin.ch comp.arch.fpga:27617 Hi, I'm wondering if someone has managed to get the esential parts of Xilinx's ISE WebPack 5.2i to run under WINE (or some other form of Win32 emulation) under a Linux host and would be willing to provide advice/tips on doing it. A web search seems to suggest people have had success (there is even some documentation on Xilinx's own website) and my initial attempts looks promising... I think i've almost achieved my goal, however I'm increasingly getting stuck. I'm not particulary interested in the GUI related components (although having as much of them as possible would be a benifit I suppose). I'd be happly content with utilsing the command line applications directly, and that's one of my problems... I don't even know where to start using them. I've just recently started (i.e. a few months ago) using FPGAs and have mainly used the GUI tools up until now, and relied upon them calling the command line orientated ones. For example using the tools in ISE WebPack, how would I go about getting a VHDL file (say "XYZ.vhdl") synthesied and end up with an image ready for use on say an Xilinx Spartan-II XC2S50. Thanks, Christopher Fairbairn. ###### From: Uwe Bonnes Newsgroups: comp.arch.fpga Subject: Re: ISE WebPack under Linux (use of command line tools) Date: Mon, 14 Apr 2003 12:27:55 +0000 (UTC) Organization: TU Darmstadt Lines: 54 Sender: Uwe Bonnes Message-ID: References: <3auma.67221$jE3.1433454@news.xtra.co.nz> NNTP-Posting-Host: hertz.ikp.physik.tu-darmstadt.de X-Trace: news.tu-darmstadt.de 1050323275 1511 130.83.24.91 (14 Apr 2003 12:27:55 GMT) X-Complaints-To: news@news.tu-darmstadt.de NNTP-Posting-Date: Mon, 14 Apr 2003 12:27:55 +0000 (UTC) User-Agent: tin/1.4.4-20000803 ("Vet for the Insane") (UNIX) (Linux/2.4.19-4GB-SMP (i686)) Path: chonsp.franklin.ch!pfaff.ethz.ch!news-zh.switch.ch!news.imp.ch!news.imp.ch!uni-erlangen.de!newsfeed.arcor-online.net!newsfeed.freenet.de!news.tu-darmstadt.de!not-for-mail Xref: chonsp.franklin.ch comp.arch.fpga:27614 Christopher Fairbairn wrote: : Hi, : I'm wondering if someone has managed to get the esential parts of Xilinx's : ISE WebPack 5.2i to run under WINE (or some other form of Win32 emulation) : under a Linux host and would be willing to provide advice/tips on doing it. A recent well configured wine with the prerequisited for Installshield 6 installers ( native stdole*.tbl) in the /windows directory should do the job. Installation will take some time ( wine directory handling in help/usenglish/newroot with it's 5499 files is not optimal) , show some errors and message box stacking may be wrong so that na "OK" buttom is hidden, but the installation should be useable. : A web search seems to suggest people have had success (there is even some : documentation on Xilinx's own website) and my initial attempts looks : promising... I think i've almost achieved my goal, however I'm increasingly : getting stuck. : I'm not particulary interested in the GUI related components (although : having as much of them as possible would be a benifit I suppose). : I'd be happly content with utilsing the command line applications directly, : and that's one of my problems... I don't even know where to start using : them. I've just recently started (i.e. a few months ago) using FPGAs and : have mainly used the GUI tools up until now, and relied upon them calling : the command line orientated ones. : For example using the tools in ISE WebPack, how would I go about getting a : VHDL file (say "XYZ.vhdl") synthesied and end up with an image ready for : use on say an Xilinx Spartan-II XC2S50. First run the GUI, set up a project and run the toolchain. After that, ISE has produced command files you may use in a script like this one for Verilog: export XILINX=l:\\webpack-5.2 /spare/bon/wine/wine -- /spare/bon/webpack-5.2/bin/nt/xst -quiet -ifn __projnav/pasamain.xst -ofn pasamain.syr /spare/bon/wine/wine -- /spare/bon/webpack-5.2/bin/nt/ngdbuild -quiet -dd h:\\work\\projekte\\alice\\pasa-astf\\fpga\\pasamain /_ngo -uc xilinx.ucf -aul -a -p xc2s200-pq208-5 pasamain.ngc pasamain.ngd /spare/bon/wine/wine -- /spare/bon/webpack-5.2/bin/nt/map -quiet -p xc2s200-pq208-5 -cm speed -detail -pr b -k 4 -c 100 -tx of f -o pasamain_map.ncd pasamain.ngd pasamain.pcf /spare/bon/wine/wine -- /spare/bon/webpack-5.2/bin/nt/par -w -ol 2 -t 1 -detail pasamain_map.ncd pasamain.ncd pasamain.pcf /spare/bon/wine/wine -- /spare/bon/webpack-5.2/bin/nt/bitgen -f pasamain.ut pasamain.ncd /spare/bon/wine/wine -- /spare/bon/webpack-5.2/bin/nt/impact -batch impact.cmd This script will not stop on arrors. Connecting the commands with "&&" should do that. Bye -- Uwe Bonnes bon@elektron.ikp.physik.tu-darmstadt.de Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt --------- Tel. 06151 162516 -------- Fax. 06151 164321 ---------- ###### From: Ian Stirling Newsgroups: comp.arch.fpga Subject: Re: ISE WebPack under Linux (use of command line tools) Date: Sat, 19 Apr 2003 19:35:10 +0000 (UTC) Lines: 23 Message-ID: References: <3auma.67221$jE3.1433454@news.xtra.co.nz> NNTP-Posting-Host: mauve.demon.co.uk X-Trace: news.demon.co.uk 1050780910 27372 158.152.209.66 (19 Apr 2003 19:35:10 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Sat, 19 Apr 2003 19:35:10 +0000 (UTC) User-Agent: tin/1.5.16-20030125 ("Bubbles") (UNIX) (Linux/2.4.20 (i686)) Path: chonsp.franklin.ch!pfaff.ethz.ch!news-zh.switch.ch!news.mailgate.org!newsfeed.icl.net!newsfeed.fjserv.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail Xref: chonsp.franklin.ch comp.arch.fpga:27863 Uwe Bonnes wrote: > Christopher Fairbairn wrote: > : Hi, > > : Uwe Bonnes wrote: > :> A recent well configured wine with the prerequisited for Installshield 6 > :> installers ( native stdole*.tbl) in the /windows directory should > :> do the job. Installation will take some time ( wine directory handling in > Now cd to the webpack base directory and run "wine bin/nt/ise.exe". It > should work. Set the wine version to a windows version required by > webpack. Running with native msvcrt is needed at least for the CPLD verilog > flow. I'm in the process of attempting an install, and have it at least installed. I'm now trying to find out which DLLs it needs, and what versions. (I do not have an install of windows on any of my machines). Can you program CPLDs under wine? -- http://inquisitor.i.am/ | mailto:inquisitor@i.am | Ian Stirling. ---------------------------+-------------------------+-------------------------- "Looks like his brainwaves crash a little short of the beach..." - Duckman. ###### From: Christopher Fairbairn Subject: Re: ISE WebPack under Linux (use of command line tools) Newsgroups: comp.arch.fpga Reply-To: ckf13@student.canterbury.ac.nz References: <3auma.67221$jE3.1433454@news.xtra.co.nz> Lines: 57 User-Agent: KNode/0.7.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit Message-ID: <%pvoa.12576$mZ4.152500@news.xtra.co.nz> Date: Sun, 20 Apr 2003 23:24:08 +1200 NNTP-Posting-Host: 219.88.86.170 X-Complaints-To: newsadmin@xtra.co.nz X-Trace: news.xtra.co.nz 1050837755 219.88.86.170 (Sun, 20 Apr 2003 23:22:35 NZST) NNTP-Posting-Date: Sun, 20 Apr 2003 23:22:35 NZST Organization: Xtra Path: chonsp.franklin.ch!pfaff.ethz.ch!news-zh.switch.ch!news.mailgate.org!newsfeed.icl.net!newsfeed.fjserv.net!c03.atl99!news.webusenet.com!news02.tsnz.net!newsfeed01.tsnz.net!news.xtra.co.nz!53ab2750!not-for-mail Xref: chonsp.franklin.ch comp.arch.fpga:27861 Hi, Uwe Bonnes wrote: > :> A recent well configured wine with the prerequisited for Installshield > :> 6 > :> installers ( native stdole*.tbl) in the /windows directory > :> should do the job. Installation will take some time ( wine directory > :> handling in help/usenglish/newroot with it's 5499 files is not optimal) > :> , show some errors and message box stacking may be wrong so that na > :> "OK" buttom is hidden, but the installation should be useable. Finally got some time to look at this again and it's working like a charm! Thank for all the great advice. For others (a couple have emailed me) here's what I finally did and what I found out along the way... 1) I had no luck with the version of wine that I was using (sorry can't remember what it was now) so I upgraded to Wine 20030408 and things immediatly started to look better. I've configured WINE as a "fake windows" rather than telling it where my real windows installation is. 2) I changed my copy of ~/.wine/config to set the windows version to nt40. 2) You should be able to start the installation of webpack via a command such as "wine WebPACK_52_fcfull_i.exe". On my setup at least (I'm not sure if by design, as I've only run the installer under WINE) the wizard skipped right past the page which allowed you to select which modules you wanted to install. It is important to go to this page and explictly deselect the programming device driver options as attempting to install these will fail. You can explictly select which page of the wizard you want by clicking on it's title on the left hand side of the screen. The installation should then go smoothly up the stage where it attempts to run the SUN Java Runtime Envirionment installation. At this stage it will quickly dump into winedbg. Exiting winedbg (type quit) will cause the installation to continue (it might appear to not be doing anything at all for a little while). 4) set the XILINX environment variable to the installation directory for Webpack (in my case C:\xilinx). This should allow you to execute most of the executables, all located in $XILINX\bin\nt\. For example "wine C:\xilinx\bin\nt\par.exe", or ise.exe. However you will most likly get errors with respect to msvcirt.dll. 5) I copied msvcirt.dll over from my Win2k machine and placed it in ~/c/windows/system32 Following these steps allows me to use the command line utilties and the ISE GUI (ise.exe) and with my limited testing so far I haven't seen any major problems. As for board programming support I don't know what the options are there, as I have a board specific application to do this in my case. Hope it helps, Christopher Fairbairn