You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have this issue that if a conditional branch instruction (A) has an instruction following it (B), then B will not be executed properly. It will stay in the instruction for only one cycle. In that cycle hold and jump will both be 0.
This makes the Program Counter to jump to the next instruction after one cycle only.
I do not want to change the code in the PC.v file, by adding more ports, but, if it is absolutely necessary, then fine. I believe it is a problem with how I implemented the FSM for the branch instructions (with only 1 state - where I assign the jump and jumpLine values), but I don't know how to modify the FSM to avoid this problem.
The text was updated successfully, but these errors were encountered:
I have this issue that if a conditional branch instruction (A) has an instruction following it (B), then B will not be executed properly. It will stay in the instruction for only one cycle. In that cycle
hold
andjump
will both be 0.This makes the Program Counter to jump to the next instruction after one cycle only.
I do not want to change the code in the
PC.v
file, by adding more ports, but, if it is absolutely necessary, then fine. I believe it is a problem with how I implemented the FSM for the branch instructions (with only 1 state - where I assign thejump
andjumpLine
values), but I don't know how to modify the FSM to avoid this problem.The text was updated successfully, but these errors were encountered: