MPC563XM Reference Manual, Rev. 1
Freescale Semiconductor
889
Preliminary—Subject to Change Without Notice
23.4.9.1.7
Semaphore Operations
Semaphore lock and free operations are available through eTPU microcode. For more information about
semaphores see
Section 23.4.4.4, “Hardware Semaphores
”. There are 2 microinstruction fields that control
semaphore operations: FL (1 bit) and SMPR (2 bits). Serviced channel sees 4 semaphores, selected by field
SMPR.
When freeing a semaphore, the field SMPR has no meaning. This is because only one semaphore can be
locked at a time by each engine, so when freeing a semaphore it is not necessary to specify its number.
NOTE
If microcode tries to lock a semaphore already locked for the same Engine,
the semaphore continues locked for the Engine and the SMLCK branch
condition resolves as true.
23.4.9.2
ALU/MDU Operations
ALU/MDU microoperations mostly comprises two sources, one destination and one operation. The
operation is generally selected through fields ALUOP, ALUOPI or SHF. In formats where there is no
operation selection field (ALUOP, ALUOPI or SHF), the operation performed is always addition;
however, it is possible to perform subtraction, increment or decrement using fields BINV (see
Section 23.4.9.2.4, “B-Source Inversion
Section 23.4.9.2.5, “Carry-in Control
23.4.9.2.1
Source and Destination Register Set Selection
Microcode field T4ABS allows selection of a source from either one of two register sets, shown in
. The same applies to T2ABD, used for ALU destination selection with other two register sets,
. Microinstruction fields ABSE and ABDE control the register set selection for
source and destination, respectively, when available at the format. In formats without ABSE/ABDE, the
field T4BBS determines the register sets used by T2ABD and T4ABS, as shown in
“Microinstructions Without Fields ABSE and ABDE
01
Pre-Decrement of DIOB
10
No Increment/Decrement (normal access)
11
No SPRAM Access
1
1
also disables Zero SPRAM operation.
Table 23-58. Semaphore Operations Fields
Field
Meaning
FL
0 = free semaphore,
1 = lock semaphore
SMPR
semaphore number selector
Table 23-57. DIOB Post-Increment / Pre-Decrement - STC
STC
Meaning