MATLAB: I do not get a fixed point out from a FFT HDL optimized block in simulink

simulinksimulink hdl fft fixed-point

I am creating a HDL model on simulink,
using a fixed-point input on FFT HDL Optimized i get a double output, and the block parameters does not have the option of "scaling" or modify the output data type.
I am running a 2015b matlab version

Best Answer

  • I may need the model to do further debugging. In the meantime, I created a simple FFT model in R2018b which seems to do the right thing in terms of datatypes. One change from your model is that the values are sent in serially to the FFT rather than all at once. I have also attached a model created in 15b.
    I defined the input fftIn as:
    fftIn = complex(rand(128,1),rand(128,1));