Skip to content

Commit

Permalink
Merge pull request #910 from pascalgouedo/dev_dd_pgo_rtl
Browse files Browse the repository at this point in the history
Aligned ebreak and ecall management in controller states.
  • Loading branch information
davideschiavone authored Nov 27, 2023
2 parents 1d0ec8d + b94c429 commit 65b412e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rtl/cv32e40p_controller.sv
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ module cv32e40p_controller import cv32e40p_pkg::*;

ebrk_insn_i: begin
halt_if_o = 1'b1;
halt_id_o = 1'b1;
halt_id_o = 1'b0;

if (debug_mode_q)
// we got back to the park loop in the debug rom
Expand All @@ -778,15 +778,15 @@ module cv32e40p_controller import cv32e40p_pkg::*;

else begin
// otherwise just a normal ebreak exception
ctrl_fsm_ns = FLUSH_EX;
ctrl_fsm_ns = id_ready_i ? FLUSH_EX : DECODE_HWLOOP;
end

end

ecall_insn_i: begin
halt_if_o = 1'b1;
halt_id_o = 1'b1;
ctrl_fsm_ns = FLUSH_EX;
halt_id_o = 1'b0;
ctrl_fsm_ns = id_ready_i ? FLUSH_EX : DECODE_HWLOOP;
end

csr_status_i: begin
Expand Down

0 comments on commit 65b412e

Please sign in to comment.