Milruwan
Member level 1
I need to convert a simple floating point function to fixed point in order to generate hdl code. Following is the function.
How to convert this function to fixed point. Please help me.
Code:
function y = fun(u)
%#codegen
if(u<0)
y=0;
else
y=u;
end
How to convert this function to fixed point. Please help me.
Last edited by a moderator: