Need help with ALU design instructions

  • Thread starter Thread starter esmeco
  • Start date Start date
  • Tags Tags
    Alu Design
Click For Summary
SUMMARY

The discussion focuses on implementing "branch if greater than or equal" (bge) and "set if less than" (slt) instructions in a 16-bit ALU designed for MIPS architecture. The user proposes using XOR to handle overflow for the slt operation and seeks clarification on combining the slt and beq (branch if equal) instructions to achieve the bge functionality. Key insights include the necessity of integrating the slt output with the beq logic to effectively implement the bge instruction within the ALU.

PREREQUISITES
  • Understanding of MIPS architecture and instruction set
  • Familiarity with ALU design principles
  • Knowledge of binary operations, specifically XOR and NOR
  • Experience with pseudo-instructions in assembly language
NEXT STEPS
  • Research MIPS ALU design and implementation techniques
  • Study the mechanics of pseudo-instructions in MIPS
  • Learn about handling overflow in arithmetic operations
  • Explore the integration of multiple ALU operations for complex instructions
USEFUL FOR

This discussion is beneficial for computer engineering students, hardware designers, and anyone involved in MIPS architecture development or ALU design projects.

esmeco
Messages
144
Reaction score
0

Homework Statement




Hello!

I need to implement a "branch if greater than or equal" and a "set if less than" in my 16-bit ALU (MIPS architecture),but I'm having some difficulties with it.




Homework Equations



The "set if less than" I think,if one considers overflow,it could be implemented XOR-ing the signal bit with the overflow and then,connecting it to the less input (setting all less bits less the LSB to 0) of ALU 0,right?


The Attempt at a Solution



The "branch if greater than or equal" is what giving me some troubles.
I know that a "branch if greater than or equal" is a pseudo-instruction that can be done as a slt and a beq.
But how do I mplement that in my ALU?If the slt above mentioned is correct and considering I also have designed a beq(NOR dos bits do resultado),how do I put these 2 together in order to create a bge?

Thanks in advance for all the help!
 
Physics news on Phys.org
I really need some help on this!
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
3K
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 16 ·
Replies
16
Views
12K
  • · Replies 1 ·
Replies
1
Views
13K
Replies
2
Views
741
  • · Replies 2 ·
Replies
2
Views
9K
  • · Replies 4 ·
Replies
4
Views
21K
  • · Replies 23 ·
Replies
23
Views
4K
Replies
17
Views
5K