hdlsetuptoolpath takes no effect on Windows

15 visualizaciones (últimos 30 días)
legendbb
legendbb el 20 de Ag. de 2012
Comentada: AMAL NN el 19 de Abr. de 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?

Respuestas (1)

Tim McBrayer
Tim McBrayer el 20 de Ag. de 2012
Editada: Tim McBrayer el 20 de Ag. de 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 comentarios
Tim McBrayer
Tim McBrayer el 21 de Ag. de 2012
The obvious next step is to ask that you confirm the correctness of your path. Does running the following command start ISE when run before hdlsetuptoolpath? (This is the path you provided to hdlsetuptoolpath in your question.)
>> !C:\Xilinx\13.1\ISE_DS\ISE\bin\nt\ise.exe
I'm glad that you aren't blocked, but hdlsetuptoolpath should work an all platforms supported by HDL Coder. It works as expected for me on Windows. After running the tool, Xilinx ISE shows up as an available synthesis tool in the HDL Workflow Advisor, and I can invoke ISE from the command line without using the full path:
>> !ise
The only notable difference between my invocation and the results you reported are that I get two directories added to the path: ...\ISE\bin\nt and ...\ISE\lib\nt. Do you get the lib directory being reported as added to the path? You can examine your path at any point with:
>> getenv('PATH')
AMAL NN
AMAL NN el 19 de Abr. de 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?

Iniciar sesión para comentar.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by