Borrar filtros
Borrar filtros

HDL Tool setup issue

16 visualizaciones (últimos 30 días)
aijaz
aijaz el 5 de Jun. de 2024
Comentada: Kiran Kintali el 12 de Jun. de 2024
hdlsetuptoolpath('ToolName','Xilinx Vivado','ToolPath',...
'E:\Xilinx\Vivado\2023.1\bin\vivado.bat');
Error using setupToolPath
File or directory path 'E:\Xilinx\Vivado\2023.1\bin\vivado.bat' does not exist from current working directory.
Error in setupToolPath
Error in hdlsetuptoolpath (line 48)
setupToolPath(varargin{:});
I am facing this issue while linking the Matlab with xilinx even i have compatible versions of Matlab and Xilinx Vivado but unable to get the compatibility between them, as well as while choosing the path from the matlab unable to get the VIVADO.bat file for matlab, i am facing this issue from so many days.

Respuestas (2)

Sachin Lodhi
Sachin Lodhi el 10 de Jun. de 2024
Editada: Sachin Lodhi el 10 de Jun. de 2024
Hi Aijaz,
As per my understanding, you are facing "setupToolPath" error while setting up HDL Coder using "hdlsetuptoolpath" function.
To use HDL Coder with one of the supported third-party FPGA synthesis tools, you need to add the tool to your system path using the "hdlsetuptoolpath" function before opening the HDL Workflow Advisor. If you already have the HDL Workflow Advisor open, then follow the below steps -
Simulink to HDL Workflow
  1. At the MATLAB® command line, use the "hdlsetuptoolpath" function to add the synthesis tool.
  2. In the HDL Workflow Advisor, in the Set Target > Set Target Device and Synthesis Tool step, to the right of Synthesis tool, click Refresh.The synthesis tool is now available.
MATLAB to HDL Workflow
  1. MATLAB to HDL code generation
  2. At the MATLAB command line, use the "hdlsetuptoolpath" function to add the synthesis tool.
  3. In the HDL Workflow Advisor, select Code Generation Workflow as MATLAB to HDL. In the Select Code Generation Target step, to the right of Synthesis tool, click Refresh list.The synthesis tool is now available.
  4. MATLAB to SystemC code generation
  5. At the MATLAB command line, use the "hdlsetuphlstoolpath" function to add the synthesis tool.
  6. In the HDL Workflow Advisor, select Code Generation Workflow as MATLAB to SystemC. In the Select Code Generation Target step, to the right of Synthesis tool, click Refresh list.The synthesis tool is now available.
Also please check the Synthesis Tool Setup before using "hdlsetuptoolpath" function. To check your Xilinx Vivado synthesis tool setup in MATLAB, try launching the tool with the following command:
!vivado
For more information on "hdlsetuptoolpath" function, kindly refer to the following documentation:

Kiran Kintali
Kiran Kintali el 11 de Jun. de 2024
Step1: First check if Vivado is on your system path in your command window. Find out the location of the vivado from within MATLAB.
>> !which vivado
E:/share/apps/HDLTools/Vivado/2023.1.2-mw-0/Win/Vivado/2023.1/bin/vivado
Step2: Now execute hdlsetuptoolpath https://www.mathworks.com/help/hdlcoder/gs/toolbox-setup.html using the above folder.
Note: if step1 returns empty then hdlsetuptoolpath would not work.
>> !which viva
which: no viva in <your path>
  2 comentarios
aijaz
aijaz el 12 de Jun. de 2024
!which vivado
'which' is not recognized as an internal or external command,
operable program or batch file.
This is the issue, because i am unable to find the batch.file in vivado folder.
Kiran Kintali
Kiran Kintali el 12 de Jun. de 2024
If you have windows subsystem for linux (WSL) then you would find /usr/bin in in windows system that contains standard linux commands and utilities like which.
However WSL is not critical. Having vivado on the windows path and that vivado executable visible within MATLAB is critical for finishing the downstream steps in HDL Coder.
  1. Install and setup Vivado.
  2. Make sure vivado is on the path
  3. Open a new In a command window check vivado is accessible
  4. Launch MATLAB in that environment and check the following launches vivado
  5. >>!vivado&

Iniciar sesión para comentar.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by