Simulink tutorials/ examples for Zynq

6 views (last 30 days)
sunayana chakradhar
sunayana chakradhar on 5 Apr 2016
Answered: Kiran Kintali on 15 Dec 2018
Hello,
I have searched the internet and don't find sufficient examples of simulink for zynq (VHDL code generation). Kindly give me some tutorials/ examples from where I can learn this. I need a supporting document which explains interfacing matlab with vivado as well as I encountering some errors while doing this.

Answers (2)

Kat
Kat on 13 Dec 2018
Hi Sunayana,
TLDR; First I indicate how to set up a Zedboard for Matlab hdl, then I display a few tutorial links, like
https://www.mathworks.com/help/hdlcoder/examples/getting-started-with-hardware-software-codesign-workflow-for-xilinx-zynq-platform.html
I got a Zedboard because it's one of the standard soc/fpga boards Matlab uses in examples. I use Matlab R2018b. Matlab knows about a few predefined Zynq boards, and has tools for making definitions for other boards, but I haven't had much luck doing this. That's why I went with a Zedboard.
After you use the Add-Ons button, and the sub-menue Get Add-Ons to get all the hdl packages you need, you will need a new sd card (I use 8Gbytes) to load a "Matlab hdl" system onto the Zedboard (or other Zynq board) system sd card, as follows:
Matlab Home tab, Add-Ons button, and select Manage Add-Ons. Scroll down to Embedded Coder Support Package for Xilinx Zynq Platform, and push the little gear icon on the right of the page. This will start a setup script. The script will make the Zedboard system for an sd card attached to a computer, and then direct you as to how to start it on the Zedboard. It will also run many checks on your board.
For more certainty, I used the free program PUtty to connect to the Zedboard, but this is just to check of the Zeboard Matlab stuff is loaded. PUtty should be turned off before you have Matlab.
If the Matlab command
myboard = zynq()
works, you are ready to start.
Good Luck.

Kiran Kintali
Kiran Kintali on 15 Dec 2018
https://www.mathworks.com/hardware-support/zynq.html

Community Treasure Hunt

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

Start Hunting!