Author Topic: Automated tests with Xilinx ISIM on windows  (Read 3560 times)

0 Members and 1 Guest are viewing this topic.

Offline steve_skyTopic starter

  • Newbie
  • Posts: 5
  • Country: dk
Automated tests with Xilinx ISIM on windows
« on: August 13, 2015, 01:14:05 am »
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.htm

But 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
 

Offline 6thimage

  • Regular Contributor
  • *
  • Posts: 181
  • Country: gb
Re: Automated tests with Xilinx ISIM on windows
« Reply #1 on: August 13, 2015, 02:12:38 am »
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/).
 

Offline steve_skyTopic starter

  • Newbie
  • Posts: 5
  • Country: dk
Re: Automated tests with Xilinx ISIM on windows
« Reply #2 on: August 13, 2015, 02:53:07 am »
There is a settings64.bat (and settings32.bat) in C:\Xilinx\14.7\ISE_DS\. However adding it to the system environment PATH variable made no difference - the .exe still fails when I run it...
 

Offline 6thimage

  • Regular Contributor
  • *
  • Posts: 181
  • Country: gb
Re: Automated tests with Xilinx ISIM on windows
« Reply #3 on: August 13, 2015, 03:51:09 am »
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.
 

Offline steve_skyTopic starter

  • Newbie
  • Posts: 5
  • Country: dk
Re: Automated tests with Xilinx ISIM on windows
« Reply #4 on: August 13, 2015, 11:29:35 am »
That did the trick!! Thank you so much, you just saved me for a lot of tedious work  :D
 

Offline steve_skyTopic starter

  • Newbie
  • Posts: 5
  • Country: dk
Re: Automated tests with Xilinx ISIM on windows
« Reply #5 on: August 13, 2015, 11:32:51 am »
by the way, is there a way to mark a topic as solved in this forum? (I'm new here)
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf