MATLAB Answers

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

27 views (last 30 days)
Shravankumar P
Shravankumar P on 18 Jun 2014
Commented: Santi Prats on 28 Apr 2020
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.


Sign in to comment.

Answers (3)

Kaustubha Govind
Kaustubha Govind on 18 Jun 2014
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.


Show 2 older comments
Shravankumar P
Shravankumar P on 19 Jun 2014
Then can I use the c or cpp code in Vivado HLS for RTL generation.Please I need to be solved ,help me.
Kaustubha Govind
Kaustubha Govind on 20 Jun 2014
Shravankumar: Sorry, this is not really a domain that I am familiar with. You want to try other forums that specialize in that domain.

Sign in to comment.

Dismas Ezechukwu
Dismas Ezechukwu on 3 Jan 2020
Please can you help me with getting the gaut 2.4.3 software? you can send a link to me here;


Sign in to comment.

Kiran Kintali
Kiran Kintali on 3 Jan 2020
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.

  1 Comment

Santi Prats
Santi Prats on 28 Apr 2020
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?

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!