09-12-2016, 10:16 AM
Some suggestions:
What about a 2 operand IS with a 4 bit opcode? A as source and destination and B only as source.
Register 4 could be a stack to handle the load immidiates and memory operations if you dont want to deal with 2-word instructions.
If you want to start on pipelines, best is to keep to 2 stages. A fetch/decode and Execute so you dont have to deal with forwarding/stack inconsistensies.
It also makes conditional jumps right in line with the conditions from the previous instruction, so no flushing of wrong instructions is needed.
Hope that helps out
What about a 2 operand IS with a 4 bit opcode? A as source and destination and B only as source.
Register 4 could be a stack to handle the load immidiates and memory operations if you dont want to deal with 2-word instructions.
If you want to start on pipelines, best is to keep to 2 stages. A fetch/decode and Execute so you dont have to deal with forwarding/stack inconsistensies.
It also makes conditional jumps right in line with the conditions from the previous instruction, so no flushing of wrong instructions is needed.
Hope that helps out