1.2/19 Week4 Lecture 1
slt:set on less than
a(postive)<b(number) ? then rs<rt
ALU31 look the textbook
design trick:
divide and conquer
solve part of the problem and extend
take
OP and funct are instruction(data in regestier) ->need a decoder to decode-> then control come in ->then select the data
Function Specification ALU control (ALUop) 16种,只举例6种
design logic operation:and or add
substract , set-on-less-than, nor
finally,32-bit ALU
Overflow:result too big/small to represent
-8 <= 4-bit binary number
when adding operands with different signs,overflow cannot occur!
2 positive number and the sum is negative
2 negative … … is positive
number of bits is limit
over range
-6 not overflow 7 overflow in PPT
C