It works!

This commit is contained in:
Sebastian Bugge 2024-11-01 03:32:59 +01:00
parent 800e7b6eb0
commit 804e1ed2e6
Signed by: kaholaz
GPG key ID: 2EFFEDEE03519691
4 changed files with 10 additions and 5 deletions

View file

@ -48,7 +48,7 @@ class InstructionFetch extends MultiIOModule {
*/
io.PC := PC
IMEM.io.instructionAddress := PC
PC := Mux(io.stall, PC, Mux(io.branch, io.branchAddress, PC + 4.U))
PC := Mux(io.branch, io.branchAddress, Mux(io.stall, PC, PC + 4.U))
val instruction = Wire(new Instruction)
instruction := IMEM.io.instruction.asTypeOf(new Instruction)