We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 80f241d + eb9ef5e commit b3fc168Copy full SHA for b3fc168
modules/Control_Unit.v
@@ -8,6 +8,7 @@ module ControlUnit (
8
input write_done, // signal indicating if write is done
9
input trap_done, // signal indicating if Pre-Trap Handling is done
10
input csr_ready,
11
+ input IF_ID_stall,
12
input [6:0] opcode, // opcode from Instruction Decoder
13
input [2:0] funct3, // funct3 from Instruction Decoder
14
@@ -24,7 +25,7 @@ module ControlUnit (
24
25
);
26
27
always @(*) begin
- pc_stall = !write_done || !trap_done || !csr_ready;
28
+ pc_stall = (!write_done || !trap_done || !csr_ready || IF_ID_stall);
29
jump = 1'b0;
30
branch = 1'b0;
31
alu_src_A_select = `ALU_SRC_A_NONE;
0 commit comments