| | |
MIPS Shift Data Path
![]() |
•
•
Join Date: Sep 2006
Posts: 2
Reputation:
Solved Threads: 0
Hi I'm new and have a question regarding MIPS hardware single cycle datapath. I've search and looked through many textbooks and I couldn't find the answer to my question. My question is how does a shift instruction (srl, sll, etc.) get interpreted and travel through a single cycle datapath. Everything I come across acknowledges various R type, J type and I type instructions, but never explains the shift instruction in particular, which doesn't seem to be compatible with all the single cycle data path models given. There is a 16 bit immediate field into an extender for I type instructions, so the only way it even seems remotely possible for a shift instruction to work is if the 5 bit shift amount field somehow goes into this extender. So basically, my question is where does the 5 bit shift amount field go into in a single cycle datapath. Here is an example of a model, all models I've looked at follow this similar structure. http://www.cse.lehigh.edu/~mschulte/...data%20path%22
What I'm leaning towards thinking is that there is a separate module that is not presented that handles shift instruction. Any help or clarification would be greatly appreciated, thanks.
What I'm leaning towards thinking is that there is a separate module that is not presented that handles shift instruction. Any help or clarification would be greatly appreciated, thanks.
To be honest, I don't exactly remember how it works. I doubt it uses the 16-bit extender, though, since it's not an I type instruction. I want to say that there's a mux (and probably a 5-to-32 bit extender) between the register file and the ALU, but I really can't remember for sure. I do know that it uses the ALU for the operation though.
![]() |
Similar Threads
- memory management in wndows 2000 (Windows NT / 2000 / XP)
- Beginner working with tab-delimited text file (Perl)
- Upgrading Memory corrupted my WXP (Windows NT / 2000 / XP)
- Multimedia Player (Visual Basic 4 / 5 / 6)
- mac specifications (Apple Hardware)
Other Threads in the Assembly Forum
- Previous Thread: n00b question linked to bits :rolleyes:
- Next Thread: Need Help with NASM program
| Thread Tools | Search this Thread |






