How to convert ANN Simulink model to Xilinx Model
2 views (last 30 days)
Show older comments
Indraneel Mukhopadhyay
on 5 Dec 2011
Commented: Wisal Adnan
on 29 Sep 2020
I am trying to convert a Simulink Model using Artificial Neural Network into a VHDL code to implement it in Xilinx. The model is working fine in Simulink but when we try to generate the vhdl we are getting warnings that "cannot find implementation for the block..." Please help
0 Comments
Accepted Answer
Walter Roberson
on 5 Dec 2011
Does your Simulink model try to train a network using the Neural Network toolbox? If so you cannot generate code for that, not even to compile that to an executable that relies on MCR ("MATLAB Compiler")
If you were using only pre-trained networks, then those could be compiled with the MATLAB Compiler, but the executable produced would not be at all suitable for hardware code generation.
MATLAB Coder (the product that can produce C/C++ code that could be compiled in to VHDL) is not able to compile any of the Neural Network Toolbox functions; see http://www.mathworks.com/help/toolbox/eml/ug/bq1h2z8-12.html.
3 Comments
Hammam
on 14 Sep 2015
Edited: Hammam
on 14 Sep 2015
Hello Indraneel and Walter, I'll appreciate if you could explain the solution for your problem since I have exactly the same problem. I already generate my trained ANN into simulink, and now I want to configure it with Xilinx for FPGA implementation. I downloaded the Xilinx blockset and I used the "system generator" block but the errors appeared is due to the "gateway in" blocks.
Wisal Adnan
on 29 Sep 2020
hi
how can make network in xsg do you have the block daigram can send it to me ?
More Answers (1)
Tim McBrayer
on 14 Sep 2015
Xilinx System Generator is a separate product made by Xilinx and is focused only on Xilinx FPGAs. As I understand it, the entire portion of your design destined for HDL must be rewritten to use only Xilinx System Generator blocks, if you with to use this tool.
The MathWorks solution is to use HDL Coder, which for Simulink generates portable, bit-true and cycle-accurate HDL code from a Simulink design. HDL Coder's Simulink modeling capabilities center around the basic blocks that ship with Simulink, although a selection of blocks in other toolboxes (comm/dsp/video toolboxes) are supported as well. HDL Coder does not support any blocks in the Neural Network toolbox.
0 Comments
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!