update load stall condition

This commit is contained in:
2026-09-20 18:45:42 -04:00
parent 5856ab3d7c
commit 4723f7ffaa
+9 -1
View File
@@ -59,8 +59,16 @@ module cpu_top (
logic ebreak_latch; logic ebreak_latch;
logic load_stall; logic load_stall;
logic load_stall_cycle;
assign stall_core = ebreak_latch | halted_o | ~en_i | load_stall; //when else would you stall? assign stall_core = ebreak_latch | halted_o | ~en_i;
always_ff @(posedge clk_i) begin
if (load_stall & ~load_stall_cycle) begin
stall_core <= 1'b1;
load_stall_cycle <= 1'b0;
end else if (load_stall & load_stall_cycle) stall_core <= 1'b0;
end
// === Instruction Fetch === // // === Instruction Fetch === //
// certain ports are tied off bc they depend on modulees you need to implement. // certain ports are tied off bc they depend on modulees you need to implement.