Jump (jmp) in microcode with fetch, decode, execute and writeback

78 Views Asked by At

I was assigned to do a jump or not conditional jump ("jmp") in which it receives the OP code and a constant "k" variable in which it stores how many lines have to be added to Program Counter to jump to the direction. Something as you can see in the picture.

enter image description here

I need to do just like a RISC pipeline (Fetch, Decode, Execute, Write back) for the jmp command. But actually Im not sure how to do this. Im pretty sure that the program counter has to be assigned the program counter and add the constant to it but how does this table would have to look like?. The problem is that this operations are created by my professor himself so this makes it even more confusing.

enter image description here

This is what I tried at first, but Im sure that MBR_i (Memory Buffer Input) can't be added to the PC (Program Counter) so this was just a failed try. I asked my professor and he said that decode is not optional but im not sure about the other ones, is execute and memory not optional too?. This is very confuse for me, I don't know nothing about assembly so sorry if the question may look not very professional but it is just for an assignment.

enter image description here

0

There are 0 best solutions below