Milruwan
Member level 1
- Joined
- Jan 20, 2013
- Messages
- 35
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,286
- Activity points
- 1,546
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: