mirror of
https://github.com/lowRISC/ibex.git
synced 2025-04-22 04:47:25 -04:00
Fix debug breakpoints (dbg_set_npc)
This commit is contained in:
parent
0fcdbf130f
commit
a770811ad4
2 changed files with 3 additions and 1 deletions
|
@ -84,6 +84,7 @@ module riscv_if_stage
|
|||
|
||||
// from debug unit
|
||||
input logic [31:0] dbg_npc_i,
|
||||
input logic dbg_set_npc_i,
|
||||
|
||||
// pipeline stall
|
||||
input logic halt_if_i,
|
||||
|
@ -350,7 +351,7 @@ module riscv_if_stage
|
|||
|
||||
// take care of jumps and branches
|
||||
// only send one branch request per jump/branch
|
||||
if (branch_req_Q == 1'b0) begin
|
||||
if (dbg_set_npc_i || (branch_req_Q == 1'b0)) begin
|
||||
if (pc_set_i) begin
|
||||
valid = 1'b0;
|
||||
|
||||
|
|
|
@ -274,6 +274,7 @@ module riscv_core
|
|||
|
||||
// from debug unit
|
||||
.dbg_npc_i ( dbg_npc ),
|
||||
.dbg_set_npc_i ( dbg_set_npc ),
|
||||
|
||||
// Jump and branch target and decision
|
||||
.jump_in_id_i ( jump_in_id ),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue