Jum-And-Link (Mips)
CASTalk.com Forum Index CASTalk.com
Discussion of DSP, FPGA, storage and embedded system.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web castalk.com
Jum-And-Link (Mips)

 
Post new topic   Reply to topic    CASTalk.com Forum Index -> Computer Architecture
Author Message
Paminu
Guest





Posted: Thu Aug 25, 2005 4:15 pm    Post subject: Jum-And-Link (Mips) Reply with quote

I am drawing a diagram of a singlecycle CPU architecture. I am trying to
draw JAL (Jump-And-Link) which is defined as:

R[31] = PC+4
PC = JumpAddr

I have drawn the Jump instruction so its just:

R[31] = PC+4 that I am missing.

I have made a Register that has a "Write register" and "Write Data" input.
When I want to do JAL I just drive 31 to the "Write Register" input but I
guess "Write Data" (the value) has to be PC+4.

Do I just take PC+4 and put into the "Write Data" input?

Where can I find some more info/diagrams on this instruction?
Back to top
Guest






Posted: Fri Aug 26, 2005 12:15 am    Post subject: Re: Jum-And-Link (Mips) Reply with quote

The front end of the decoder has already computed the PC+4, so all you
have to do is pipeline this value to the end of the ALU and miltiplex
it onto the result bus, while you multiplex the R31 onto the register
file write decoder port.
Back to top
 
Post new topic   Reply to topic    CASTalk.com Forum Index -> Computer Architecture All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




VoIP Electronics Powered by phpBB