Download Fixed-Point Blockset User`s Guide

Transcript
4
Arithmetic Operations
The figure below shows the fixed-point model used to generate the above data.
4
ufix8_En3
ufix8_En3
double
FixPt
Gateway Out
FixPt
Gain
6.625
Out
26.5
Display
Shift bits two places to
the left but leave radix
point unchanged
FixPt
Constant
0.25
ufix8_En3
FixPt
Gain1
Out
double
FixPt
Gateway Out1
1.625
Display1
Shift bits two places to
the right but leave radix
point unchanged
Refer to Chapter 9, “Block Reference” for more information about the FixPt
Gain block.
4-44