Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why are 'opcode' field and 'funct' field apart in MIPS?

MIPS ISA has an R type instruction, and the R instruction has an opcode field at its first 6 bits and a funct field at its last 6 bits. So why are the ISA designed like this? How about combine them into a 12-bits field?

like image 824
Daidamai Avatar asked Oct 17 '25 05:10

Daidamai


1 Answers

MIPS instruction format

My idea is that the three kinds of instructions share a prefix of 6-bit opcode. And for R and I types, the next 5 bits decide source register. If we combine opcode and funct for R instruction, the instruction format is not so consistent between R and I, which may make processor's design complex.

like image 192
gcc17 Avatar answered Oct 20 '25 04:10

gcc17



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!