
























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

























R-type:
I-Type:
31 25 20 15 5 0 op Rs Rt Rd funct
op Rs Rt Immed 16
Type op funct ADDI 10 xx ADDIU 11 xx SLTI 12 xx SLTIU 13 xx ANDI 14 xx ORI 15 xx XORI 16 xx LUI 17 xx
Type op funct ADD 00 40 ADDU 00 41 SUB 00 42 SUBU 00 43 AND 00 44 OR 00 45 XOR 00 46 NOR 00 47
Type op funct 00 50 00 51 SLT 00 52 SLTU 00 53
Basic integer addition
(CarryOut) Sum
Sum = a • b • CarryIn + a • b • CarryIn + a • b • CarryIn + a • b • CarryIn = a ⊕ b ⊕ CarryI
(CarryIn)
CarryOut = a • b + a • CarryIn + b • CarryIn
a b
(LSB)
(MSB)
What should we set this to when Operation=10 (add)?
Less^3
Set to zero for all but LSB
What do we input here?
Docsity.com
Implementing Set Less Than (slt)
Less^3 Set
Only used for MSB Docsity.com
Overflow
Are these carries generated or propagated?