little things

This commit is contained in:
jose.rodriguezlabra
2019-03-24 16:04:55 -04:00
parent 27f6d24b88
commit ce2410e26c
3 changed files with 29 additions and 25 deletions

View File

@@ -117,7 +117,7 @@ module CPU9bits(
bit1_mux_2_1 BranMux( // BEQ MUX
.A(FU[0]),
.B(op0[0]),
.B(AluOut[0]),
.out(fetchBranch),
.switch(FU[2])); // FU[2] only goes high when BEQ

View File

@@ -118,7 +118,7 @@ module ControlUnit(
js <= 1'b0;
end
4'b0110: begin
aluOut <= 4'b0000;
aluOut <= 4'b1010;
addi <= 1'b1; // addi
RegEn <= 1'b0;
FU <= 3'b001; // Disable Branching