Hello, I'm trying to make a radiometer system using HDL Coder.
I am using MATLAB Function block as part of my system (Fig. 1), and I am getting a "delay required" error when generating HDL code, even though I have given the necessary delay for the blocks. I have tried changing the sampling time and the oversampling factor, but this does not solve the problem. Does anyone have a good idea to solve the block delay problem? If so, I would like to know.
I would like to use MATLAB Function block if possible without Deserializer block. The necessary delay is five.
Thanks.
Figure 1:
Code implemented in the above block (I made my own buffering).
function [ValidOut, DataOut] = Bufferring(DataIn, ValidIn, count)
A = zeros(1, N, 'like', p); //Initialize
a = zeros(N, 1, 'like', p); //Initialize
A(row,:) = [A(row,(end-mod(shift,m)+1):end) A(row,1:(end-mod(shift,m)))]; //circular shift
A(1, 1) = DataIn; //Input data
DataOut = A'; //Output data
DataOut = a; //Output data
DataOut = a; //Output data