Fujitsu MB91191 Home Theater Server User Manual


 
272
CHAPTER 19 Bit Search Module
Change Point Detection
Scans data that was written to the data register for detecting the point of change from bit 30 to LSB, and
compares it with the MSB value. Returns the position where the value different from the MSB was first
detected.
The detection result can be obtained by reading the detection result register.
The detected position and value to be returned are as per Table 19.3-1 .
When the change point does not exist, value of 32 is returned.
In the change point detection, 0 is not returned as the detection result.
[Execution example]
Figure 19.3-3 Execution example of change point detection
Table 19.3-1 Bit position and value to be returned (decimal)
Detected bit
position
Returned
value
Detected bit
position
Returned
value
Detected bit
position
Returned
value
Detected bit
position
Returned
value
31 0 23 8 15 16 7 24
30 1 22 9 14 17 6 25
29 2 21 10 13 18 5 26
28 3 20 11 12 19 4 27
27 4 19 12 11 20 3 28
26 5 18 13 10 21 2 29
25 6 17 14 9 22 1 30
24 7 16 15 8 23 0 31
-not exist32
00100000000000000000000000000000H (20000000B)
2
7
1 4
3 1
3 2
2 0
5
1
3 2
00000001001000110100010101100111
H (01234567B)
00000000000000111111111111111111
H (0003FFFFB)
00000000000000000000000000000001
H (00000001B)
00000000000000000000000000000000
H (00000000B)
11111111111111111111000000000000
H (FFFFF000B)
11111000010010011110000010101010H (F849E0AAB)
10000000000000101010101010101010H (8002AAAAB)
11111111111111111111111111111111H (FFFFFFFFB)
Program data Read data (decimal)