truncation of data at the output for arithmetic operations

2 views (last 30 days)
In fixed point environment truncation of output data is happenening for the arith blocks when we use "Inherit: via back propagation " as output datatype. The output is taking datatype of input sometimes.
if we keep "Inherit: vai internal rule" option the datatype is going to some data types like ufix40,ufix24 etc.
Our requirement is it should take ufix8,ufix16,ufix32,sfix8,sfix16,sfix32 dataypes. other datatypes is creating huge code while generating autocode.
This scenario i faced inside library blocks where we have to choose only one options which cannot be modified by the users.(using of local variable with resolving as the output whose resolution can be set as we want wont work since it is library.)
Can you help me on this ?
  1 Comment
Kaustubha Govind
Kaustubha Govind on 21 Aug 2013
Hi Rahul,
Please avoid sending personal messages, since all forum users participate in their leisure time and are not mandated to do so as an order of business.
Here are some resources that might help with unanswered questions:
If your license is on maintenance, please also note that you may contact MathWorks Tech Support as an alternate resource for urgent issues: http://www.mathworks.com/support/contact_us
Thank you for your consideration!

Sign in to comment.

Answers (0)

Categories

Find more on Simulink Functions in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!