Crusoe Exposed: Transmeta TM5xxx Architecture 2

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

ALUs

Two ALUs are provided in Crusoe. It appears that ALU1 executes a superset of the operations available on ALU0. In particular, shifts are available only on ALU1 (a rather bizarre decision given the amount of bit manipulation CMS does). It is unknown if ALU0 also implements simpler bit extraction operations. Figure 3 below shows the formatting for instructions to the two ALUs.

CrusoeReport-Part2-fig3.gif - 16087 Bytes
Figure 3 – Crusoe ALU Instruction Format

Both ALUs may have an 8-bit signed immediate instead of register rb; this is determined by the opcode (see the opcode map). The ALU0 slot may optionally use a 32-bit immediate, but only in appropriate bundle types, and only when the opcode matches the pattern 11xxxx011.

Condition codes exactly mirror the x86 semantics, right down to their encodings (see the branch unit section). Any instruction in either ALU0 or ALU1 can optionally latch the resulting condition codes if specified by the opcode (see opcode map). However, obviously only one of the two ALU0|ALU1 slots per bundle can write the condition codes in a single cycle. Condition codes cannot be generated on the same cycle as a dependent branch (unlike as in IA-64), but must be ready the cycle before.

There appears to be a facility for combining the existing condition codes with a comparison result, a la the PowerPC crand/cror instructions. This may be used via the cmpand (opcode 000100000) instruction et al.

The ALU1 slot is also used for all floating point and MMX operations, as indicated by ALU1’s type select bits being something other than ’00’. Since FP and MMX are obviously not used by the core CMS code, little is known about the FP/MMX unit at this point.


Pages: « Prev   1 2 3 4 5 6 7 8 9 10 11 12 13 14 15   Next »

Discuss (6 comments)