How to convert ANN Simulink model to Xilinx Model

7 次查看(过去 30 天)
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

采纳的回答

Walter Roberson
Walter Roberson 2011-12-5
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 个评论
Hammam
Hammam 2015-9-14
编辑:Hammam 2015-9-14
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
Wisal Adnan 2020-9-29
hi
how can make network in xsg do you have the block daigram can send it to me ?

请先登录,再进行评论。

更多回答(1 个)

Tim McBrayer
Tim McBrayer 2015-9-14
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.

类别

Help CenterFile Exchange 中查找有关 HDL Coder 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by