MATLAB Answers

hdlsetuptoolpath takes no effect on Windows

9 views (last 30 days)
legendbb
legendbb on 20 Aug 2012
Commented: AMAL NN on 19 Apr 2021
Playing with FIL demo. Tested both x32 and x64 on XP and Win7.
>> hdlsetuptoolpath('ToolName','Xilinx ISE','ToolPath','C:\Xilinx\13.1\ISE_DS\ISE\bin\nt\ise.exe')
Setting XILINX environment variable to:
C:\Xilinx\13.1\ISE_DS\ISE
Prepending following Xilinx ISE path(s) to the system path:
C:\Xilinx\13.1\ISE_DS\ISE\bin\nt;
>> which ise
'ise' not found.
Can only get FIL work by having 'C:\Xilinx\13.1\ISE_DS\ISE\bin\nt\' in system path before launching Matlab which means hdlsetuptoolpath doesn't take any effect. Or doesn't have the permission to change system path.
After calling hdlsetuptoolpath, >>path
doesn't print any appended path nor in system path.
Is it a bug or something weird on my setup?

Answers (1)

Tim McBrayer
Tim McBrayer on 20 Aug 2012
Edited: Tim McBrayer on 20 Aug 2012
The hdlsetuptoolpath command does not modify the MATLAB path; it modifies the system path, and only inside the MATLAB session that the command has been executed in, for the duration of that session. The easiest way to verify that your Xilinx install has been added to your MATLAB session's system path is to run:
>> !which ise
C:\Xilinx\13.1\ISE_DS\ISE\bin\nt\ise.exe
After you run hdlsetuptoolpath, this should return the above response. If the tool path is not set up properly, the !which system command will return nothing.
Another way to verify the path is set correctly is to examine the synthesis settings in the HDL Workflow Advisor. That tool will only show the synthesis tools that are available on the system path.
  3 Comments
AMAL NN
AMAL NN on 19 Apr 2021
I have setup hdlsetuptoolpath
hdlsetuptoolpath('ToolName', 'Xilinx ISE', 'ToolPath', 'C:\Xilinx\14.7\ISE_DS\ISE\bin\nt64\ise.exe');
and "!which ISE" command is giving the response.
C:\Xilinx\14.7\ISE_DS\ISE\bin\nt64\ise.EXE
But while building in FIL wizard it is showing the following error message
Error: Xilinx Vivado is not on system path. Use function "hdlsetuptoolpath" to configure Vivado for use with MATLAB
How to fix this?

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!