168
2) Operands
Soft element address need compare
Soft element address need compare
3) Suitable soft components
*Notes: D includes D, HD; TD includes TD, HTD; CD includes CD, HCD, HSCD, HSD; DM
includes DM, DHM; DS includes DS, DHS. M includes M, HM, SM; S includes S, HS; T
includes T, HT; C includes C, HC.
<32 bits operation>
ECMP D10 D20 M0
M0
M1
M2
X0
D·S1· S2·
The instruction will compare the two source data S1 and S2. The result is stored in three bits
from D.
Before the instruction is executed, the comparison data must be all floating numbers (if it is
an integer, it can be converted by FLT instructions); otherwise, the execution result will be
wrong.
If a constant K or H used as source data, the value is converted to floating value.
(D11,D10):(D21,D20) → M0,M1,M2
Binary FloatingBinary Floating
(D11,D10) > (D21<D20)
Binary Floating Binary Floating
(D11,D10) = (D21<D20)
Binary Floating Binary Floating
(D11,D10) < (D21<D20)
Binary Floating Binary Floating
When X0 is OFF, even ECMP doesn’t run, M0~M2 will keep the
status before X0 is OFF.
tudonghoatoancau.com