esmeco
Mar 24th, 2008, 11:32 PM
Hello!
After studying a bit I managed to code the instructions for ble:
slt $t0, $s2, $s1
beq $t0, $zero, less_equal
and for sgt:
slt $t0, $s2, $s1
what I'm having problems now is with defining the datapath and block used for ble and sgt instructions.I have no idea how would it look like in the datapath to reverse the registers and how to compute both instructions in ble(slt and beq),so any help is very appreciated!Thanks in advance!
After studying a bit I managed to code the instructions for ble:
slt $t0, $s2, $s1
beq $t0, $zero, less_equal
and for sgt:
slt $t0, $s2, $s1
what I'm having problems now is with defining the datapath and block used for ble and sgt instructions.I have no idea how would it look like in the datapath to reverse the registers and how to compute both instructions in ble(slt and beq),so any help is very appreciated!Thanks in advance!