mirror of
https://github.com/lowRISC/ibex.git
synced 2025-04-22 04:47:25 -04:00
Update pc counters, branches taken were wrong
This commit is contained in:
parent
79cff74dfd
commit
2b8fdcd6d3
1 changed files with 3 additions and 3 deletions
|
@ -281,9 +281,9 @@ module riscv_cs_registers
|
|||
assign PCCR_in[4] = imiss_i & (~pc_set_i); // cycles waiting for instruction fetches, excluding jumps and branches
|
||||
assign PCCR_in[5] = mem_load_i; // nr of loads
|
||||
assign PCCR_in[6] = mem_store_i; // nr of stores
|
||||
assign PCCR_in[7] = jump_i & id_valid_q; // nr of jumps (unconditional)
|
||||
assign PCCR_in[8] = branch_i & id_valid_q; // nr of branches (conditional)
|
||||
assign PCCR_in[9] = branch_taken_i & id_valid_q; // nr of taken branches (conditional)
|
||||
assign PCCR_in[7] = jump_i & id_valid_q; // nr of jumps (unconditional)
|
||||
assign PCCR_in[8] = branch_i & id_valid_q; // nr of branches (conditional)
|
||||
assign PCCR_in[9] = branch_i & branch_taken_i & id_valid_q; // nr of taken branches (conditional)
|
||||
assign PCCR_in[10] = id_valid_i & is_decoding_i & is_compressed_i; // compressed instruction counter
|
||||
|
||||
// assign external performance counters
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue