HDL code generation for FFT

I am using HDL coder for HDL code generation,i have made simulink model and i have used System objects,and Matlab function block in model,while converting into hdl coder using hdl workflow advisor ,there is an error is that system blocks and matlab function block,containing system objects are not supported for hdl code generation,when the block input have non-descrete sample time,in RTL code & Testbench option

3 件のコメント

John O'Sullivan
John O'Sullivan 2018 年 3 月 14 日
Please check that your Simulink model is set up to use discrete time simulation (see doc page https://www.mathworks.com/help/dsp/ug/discrete-time-signals.html).
If this does not help, can you share the exact error message you are seeing? Is the FFT you are referring to one that you have developed yourself, a Simulink block, or a MATLAB function system object?
DEEKSHA GUPTA
DEEKSHA GUPTA 2018 年 3 月 15 日
I have developed FFT using MATLAB function block,Simulink block and system object. exact error is.... "system blocks and matlab function block,containing system objects are not supported for hdl code generation,when the block input have non-discrete(constant or inf) sample time"
Bharath Venkataraman
Bharath Venkataraman 2018 年 3 月 20 日
Please put a snapshot of the model here, so we can look at it.
I suspect that you need to put in a Sample and Hold block in front of all the inputs.

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

回答 (1 件)

Kiran Kintali
Kiran Kintali 2023 年 10 月 7 日

0 投票

If you are looking for MATLAB coding style for generating HDL using HDL Coder you can find some samples here.

タグ

質問済み:

2018 年 3 月 14 日

回答済み:

2023 年 10 月 7 日

Community Treasure Hunt

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

Start Hunting!

Translated by