Automated tests with Xilinx ISIM on windows - Page 1
Forum section: electronics / general

author: steve_sky
author_rank: Newbie
timestamp: August 13, 2015, 01:14:05 am
content: Hi all!I'm doing a computer vision project on a xilinx fpga. For testing I have created a testbench; which read an image from file, processes it and then dump the result to a new file. And it works perfectly. (I’m using ISE (the FPGAs I have is not supported in vivado))At the moment I’m using a .tcl script to run the testbench, with the "source test.tcl" command in ISIM. But it is getting a bit tedious having to open the ISIM gui every time I run the simulation when I’m only using the ISIM command line.So I would be really nice if it was possible to run the simulation without the gui but instead with a scripting interface (e.g. a bat file or similar).I have look through the "ISIM User Guide"" and "ISE Simulator (ISIM) in-depth tutorial" and google searches but without any luck. except this one:http://www.xilinx.com/support/documentation/sw_manuals/xilinx11/ism_c_modes_operation_overview.htmBut unfortunately i can’t get it to work:I tried the fuse command in cmd but just get this messege "'fuse' is not recognized as an internal or external command,operable program or batch file."I also tried to use the .exe generated by ISIM when the gui is used (projectname_isim_beh.exe). but just gives me the "projectname_isim_beh.exe has stopped working" window, where Windows tried to find a solution but with no result.I guess I'm doing something wrong or skipping a step. So if you know of any more detailed documentation or a step-by-step guide i would really appreciate it.Best regards

author: 6thimage
author_rank: Regular Contributor
timestamp: August 13, 2015, 02:12:38 am
content: For ISE in linux, there is a settings file you have to source that adds the xilinx folders to the system's path variable. I'm going to guess it is similar on windows (I've never used ISE on windows). So it might be worth having a look if there is a settings.bat file (or similar) in the top directory of the xilinx program folder (on linux it is at Xilinx/14.7/ISE_DS/).

author: steve_sky
author_rank: Newbie
timestamp: August 13, 2015, 02:53:07 am
content: There is a settings64.bat (and settings32.bat) in C:\Xilinx\14.7\ISE_DS\. However adding it to the system environmentPATHvariable made no difference - the .exe still fails when I run it...

author: 6thimage
author_rank: Regular Contributor
timestamp: August 13, 2015, 03:51:09 am
content: Sorry - I wasn't very clear. What you will need to do is run 'call c:\Xilinx\14.7\ISE_DS\settings64.bat' in a command prompt prior to running any of the ISE programs (fuse, isim etc.). This will need to be done every time you open a command prompt window you want to use for ISE.This settings script will alter the path variable that the command prompt uses so the ISE programs can be found. In linux, this is called sourcing a script.

author: steve_sky
author_rank: Newbie
timestamp: August 13, 2015, 11:29:35 am
content: That did the trick!! Thank you so much, you just saved me for a lot of tedious work

author: steve_sky
author_rank: Newbie
timestamp: August 13, 2015, 11:32:51 am
content: by the way, is there a way to mark a topic as solved in this forum? (I'm new here)