Operations Of Type "Single Bit - ETAS MDA V8.6 User Manual

Table of Contents

Advertisement

ETAS
9.1.3

Operations of type "Single Bit"

What
Single
Bit
MDA V8.6 – User Guide
MDA V7 and MDA V8 have different values for the rint/RoundInt
l
function. The rint function in MDA V7 has a specific "Asymmetric
round half up" rounding convention, while MDA V8 has a "Sym-
metric round half up".
In MDA V7 the Shift (>>, <<) and binary operations (&, |, ^) use the
l
raw value of a signal. MDA V8 will emulate this by calling the Raw
() function. However, this emulation does not work properly for
nested calculated signals, i.e. when the argument is a calculated
signal which has a measure signal inside.
Calculated signals of integer type in MDA V7 will be converted
l
into double type in MDA V8. This leads to differences in handling
of arithmetical overflow. E.g. the value '-1' in MDA V7 is rep-
resented as '4294967295.00' which is ((uint32)'-1'), and in
MDA V8 is real '-1.00'.
MDA V7
double((long(rint(sig-
nal)) >> shift_value) &
and_value)
Migrated for-
Comment
mula in MDA V8
If a measure sig-
All measure signal argu-
nal is used:
ments are wrapped by the
Raw function.
Raw(signal) >>
shift_value &
and_value
If a value is
used:
value >> shift_
value & and_
value
9 Appendix
134

Advertisement

Table of Contents
loading

Table of Contents