MATLAB Answers

hdl code generation for function block

4 views (last 30 days)
DEEKSHA GUPTA on 15 Mar 2018
I am using MATLAB function block for doing bit reversal in simulink model,I want to convert this simulink model into HDL code,then it is showing error that.. "Matlab function block is unsupported for hdl code generation while using native floating point" how to resolve this error.


Sign in to comment.

Answers (1)

Tim McBrayer
Tim McBrayer on 15 Mar 2018
Are you attempting to process single data types with your MATLAB Function block? This isn't supported by HDL Coder. In addition, as a single is a number and not a bit pattern to Simulink, it won't even have bits to reverse.


Show 3 older comments
Bharath Venkataraman
Bharath Venkataraman on 20 Mar 2018
Do you have access to R2018a? Bit natural output was enabled for vectored FFT in R2018a.
Bharath Venkataraman
Bharath Venkataraman on 20 Mar 2018
Just to check - can you stream the samples into the FFT one at a time? What is prompting the move to send in multiple samples into the FFT at a time?

Sign in to comment.

Translated by