MATLAB: Getting Started with Targeting Xilinx Zynq Platform

HDL Coderip core generationxilinxzedboard

Hi,
I get the following error at : 3. Generate the IP Core.
Failed Task "Vivado IP Packager" unsuccessful. See log for details. Generated logfile: hdl_prj\hdlsrc\hdlcoder_led_blinking\workflow_task_VivadoIPPackager.log
Error using hdlturnkey.ip.IPEmitterVivado/packageVivadoIP
Task "Vivado IP Packager" unsuccessful. See log for details.
Generated logfile: hdl_prj\hdlsrc\hdlcoder_led_blinking\workflow_task_VivadoIPPackager.log
Error in hdlturnkey.ip.IPEmitterVivado/generateIPCore
Error in hdlturnkey.ip.IPDriver/generateIPCore
Error in hdlturnkey.TurnkeyDriver/makehdlturnkeycore
Error in hdlturnkey.TurnkeyDriver/makehdlturnkey
Error in slhdlcoder.HDLCoder/makehdlturnkey
Error in downstream.DownstreamIntegrationDriver/runIPCoreCodeGen
Error in generateIPCore
Error in Simulink.ModelAdvisor/executeCheckCallbackFct
Error in Simulink.ModelAdvisor/run
Error in Simulink.ModelAdvisor/runCheck
Error in ModelAdvisor.Node/runTaskAdvisor
Error in ModelAdvisor.Node.runtohere>runToBreakpoint
Error in ModelAdvisor.Node.runtohere
I am using Vivado 2018.2.
Accordingly, I set up the Xilinx Vivado synthesis tool path using the following command:
hdlsetuptoolpath('ToolName', 'Xilinx Vivado', 'ToolPath', 'C:\Xilinx\Vivado\2018.2\bin\vivado.bat');
Upon typing h = zynq in the command window I get:
h = zynq
h =
LinuxShell with properties:
IPAddress: '169.254.0.2'
Username: 'root'
Port: 22
Any help is much appreciated!
Thanks,
Vishnu
P.S.: Some additional images and dialogues are given in the comments below

Best Answer

Dear Team,
I had a meeting with J T Ferrara and Hoda Sharifi. J T suggested I try to invoke vivado from the command terminal. When I tried :
cd C:\Xilinx\Vivado\2018.2\bin
followed by the command
vivado&
vivado did not launch and there was an error message with code 0xc00000020.
Then, when we opened the file location of Vivado shortcut icon on desktop and tried to cd to the same directory.
J T noticed that the working Vivado installation was in a different folder.
Basically all the files including vivado.bat was present at two places - one in the folder "Xyl" and the other in "Xilinx" and the working one with the license was in "Xyl".
See command window output below:
Accordingly, we changed the matlab hdlsetuppath command to :
hdlsetuptoolpath('ToolName', 'Xilinx Vivado', 'ToolPath', 'C:\Xyl\Vivado\2018.2\bin\vivado.bat');
Now the IP core was successfully generated.
Thank you for all the help!
Sincerely,
Vishnu