ALU當(dāng)然是處理器內(nèi)核的一個重要單元,我們來看圖說話:
再來一張放大圖:
ALU的全稱是Arithmetic Logic Unit!中文是不是應(yīng)該叫算術(shù)邏輯單元?還是來英文吧。
Two 40-bit ALUs operating on 16-bit, 32-bit, and 40-bit input operands and output 16-bit, 32-bit, and 40-bit results.
Functions
- Fixed-point addition and subtraction
- Addition and subtraction of immediate values
- Accumulator and subtraction of multiplier results
- Logical AND, OR, NOT, XOR, bitwise_XOR, Negate
- Functions: ABS, MAX, MIN, Round, division primitives
- Supports conditional instructions
Four 8-bit video ALUs :Explained in more detail as part of Advanced Instructions section
ALU Operations :Conditional Code (CC) Bit in ASTAT
CC bit is used in several instructions
- Action taken in the instruction depends on the value of CC
- If cc jump here; //if cc = 1, jump to label “here”
- If cc r3 = r0; // perform move if cc=1
CC bit value is based on a comparison of two registers, pointers or accumulators;CC bit can be moved to and from a data register or ASTAT bit;CC bit can be negated;
下一篇就準(zhǔn)備簡單說一下MAC,全稱:MULTIPLY-ACCUMULATORS |