PDA

View Full Version : Need ALU design help


esmeco
Apr12-08, 11:15 AM
1. The problem statement, all variables and given/known data
Hello!


I need to implement a set greater than and a branch less or equal in my 16 bit ALU design(MIPS architecture),but I'm having many difficulties.


2. Relevant equations



3. The attempt at a solution

I know that in a set greater than a>b equals a-b>0 ,but I don't know how to work out from that and implement it in my design(which type of gates to use and that).
The same happens with branch less or equal.I already have a branch equal,but I don't know how to use it in order to get a ble.
Any help is really appreciated!

esmeco
Apr13-08, 08:08 AM
These are,respectively the implementation of the sgt instruction and ble instruction:


http://img174.imageshack.us/img174/715/sgtop2.jpg


http://img405.imageshack.us/img405/6933/blegy6.jpg