How to use Matlab generated c code for High Level Synthesis ?

2 ビュー (過去 30 日間)
Shravankumar P
Shravankumar P 2014 年 6 月 18 日
回答済み: Kiran Kintali 2022 年 3 月 21 日
I wrote an algorithm for Fast Fourier Transform (FFT),then generated executable
c code for it. The settings done by me are :
1) Generate all Functions into single file.
2) included main.c - in Custom code \Additional source files .
Now I want to use that generated c code for High level synthesis using GAUT 2.4.3 build 17/02/2010 tool. when I try to compile the source file in GAUT it is showing some errors. Help me please.

採用された回答

Kiran Kintali
Kiran Kintali 2020 年 1 月 3 日
Hi Shravan,
I believe you are generating C code from MATLAB code using MATLAB Coder and trying it to take it through GAUT - High-Level Synthesis tool. I am not sure about the subset of language syntax and guidelines one has to follow to take C code through GAUT HLS tool. Please refer to documentation for GAUT for such questions.
Please note MathWorks recommended workflow for this is to generate HDL directly from MATLAB or Simulink using HDLCoder.
You can learn more about successful ASIC/FPGA development user stories with this workflow.
Thanks
  1 件のコメント
Santi Prats
Santi Prats 2020 年 4 月 28 日
There are functions such as mpcActiveSetSolver() that MATLAB HDL coder does not support. This function, allows C code generation with MATLAB coder btw. What would be the solution for this case if not using MATLAB coder and then Vivado HLS for instance?

サインインしてコメントする。

その他の回答 (2 件)

Kaustubha Govind
Kaustubha Govind 2014 年 6 月 18 日
If you're using a synthesis tool, don't you need HDL code, and not C code? You probably should be using HDL Coder instead.
  5 件のコメント
Kaustubha Govind
Kaustubha Govind 2014 年 6 月 20 日
Shravankumar: Sorry, this is not really a domain that I am familiar with. You want to try other forums that specialize in that domain.
Shravankumar P
Shravankumar P 2014 年 6 月 28 日
Anyway You tried to help me .Thank you

サインインしてコメントする。


Kiran Kintali
Kiran Kintali 2022 年 3 月 21 日
SystemC Code Generation from MATLAB
Generate Synthesizable SystemC Code from MATLAB® algorithms for use with Cadence Stratus HLS Workflows

カテゴリ

Help Center および File ExchangeCode Generation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by