Skip to content

Commit

Permalink
Update pulp_riscv_dbg to pulp-platform/riscv-dbg@138d74b
Browse files Browse the repository at this point in the history
Update code from upstream repository https://github.com/pulp-
platform/riscv-dbg to revision
138d74bcaa90c70180c12215db3776813d2a95f2

Signed-off-by: Marno van der Maas <mvdmaas+git@lowrisc.org>
  • Loading branch information
marnovandermaas committed Apr 24, 2024
1 parent 8feaf3a commit 99e6490
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions vendor/pulp_riscv_dbg/src/dm_mem.sv
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,8 @@ module dm_mem #(
// write data in csr register
data_valid_o = 1'b0;
exception = 1'b0;
halted_aligned = '0;
going = 1'b0;
halted_aligned = 1'b1;
going = 1'b1;

// The resume ack signal is lowered when the resume request is deasserted
if (clear_resumeack_i) begin
Expand All @@ -254,12 +254,6 @@ module dm_mem #(
GoingAddr: begin
going = 1'b1;
end
ResumingAddr: begin
// clear the halted flag as the hart resumed execution
halted_d_aligned[wdata_hartsel] = 1'b0;
// set the resuming flag which needs to be cleared by the debugger
resuming_d_aligned[wdata_hartsel] = 1'b1;
end
// an exception occurred during execution
ExceptionAddr: exception = 1'b1;
// core can write data registers
Expand Down Expand Up @@ -342,7 +336,7 @@ module dm_mem #(

if (ndmreset_i) begin
// When harts are reset, they are neither halted nor resuming.
halted_d_aligned = '0;
halted_d_aligned = 1'b1;
resuming_d_aligned = '0;
end

Expand Down Expand Up @@ -533,7 +527,7 @@ module dm_mem #(

always_ff @(posedge clk_i or negedge rst_ni) begin
if (!rst_ni) begin
halted_q <= 1'b0;
halted_q <= 1'b1;
resuming_q <= 1'b0;
end else begin
halted_q <= SelectableHarts & halted_d;
Expand Down

0 comments on commit 99e6490

Please sign in to comment.