MATLAB Answers


i want to generate VHDL code from a simulink model using hdl coder but whenever i want to run the hdl path tool on my command window in matlab i got undefined function

Asked by kaou
on 26 May 2014
Latest activity Commented on by kaou
on 27 May 2014
i am using ISE Xilinx 13.1 and matlab 2010b and i don t know how to generate VHDL from my simulink blocks. i think i have first to run this command on matlab command window: hdlsetuptoolpath('ToolName','XilinxISE','ToolPath','C:\Xilinx\13.1\ISE_DS\ISE\bin\nt64\ise.exe') but i get :??? Undefined function or method 'hdlsetuptoolpath' for input arguments of type 'char'. "" i also tried to type this command : fpgaBoardManager and i get again: ??? Undefined function or variable 'fpgaBoardManager'.i ll be so gratefull if anybody could help. i am still biginner on matlab. PS: my current folder is C:\Program Files\MATLAB\R2010b


Sign in to comment.

1 Answer

Answer by Tim McBrayer on 27 May 2014

Your problems stem from the use of a fairly old version of MATLAB. R2010b is 7 releases old, and many features have been added over the intervening time. Both commands that you cannot find are newer than the R2010b release if Simulink HDL Coder. You can access the documentation installed with your copy of MATLAB to see specifically what features and capabilities you have available.
hdlsetuptoolpath is a utility added in R2011a; it is not part of R2010b. It is used to help set up the path to third party synthesis tools inside your MATLAB environment. It is not necessary; if you can launch your third-party tool (Xilinx ISE in this case) from a Windows command line, or verify that ISE is installed on your Windows path, then there is no need for 'hdlsetuptoolpath' at all.
fpgaBoardManager was originally released in R2012b, so it is not available in R2010b either. HDL Coder comes populated with a predefined set of supported FPGA boards; if the board you wish to use is part of the predefined set, fpgaBoardManager is not needed.
There are at least 4 different methods available to run HDL Coder. The most common and beginner-friendly is to use the HDL Workflow Advisor GUI. If you prefer command line access, you will want to use makehdl. I encourage you to read the installed documentation for your particular release and work through the provided examples.
As a word of advice, never, for any program, attempt to use c:\Program Files or a directory underneath it as your working directory. This is not a MATLAB suggestion; it's simply good computing practice for any usage of Windows at all. Working in or under c:\Program Files will typically either fail to work properly (because you don't have write privileges), or runs the extreme risk of corrupting your installed software (because you are running with administrative privileges and have permission to modify or delete any and all installed program files on disk).

  1 Comment

Sign in to comment.