mirror of
https://github.com/lowRISC/ibex.git
synced 2025-04-22 04:47:25 -04:00
Make sure there are no two branches that are taken back-to-back
This commit is contained in:
parent
5da32ba5ec
commit
81a5e04a62
1 changed files with 9 additions and 0 deletions
|
@ -572,4 +572,13 @@ module riscv_controller
|
|||
assign perf_jr_stall_o = jr_stall_o;
|
||||
assign perf_ld_stall_o = load_stall_o;
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
// Assertions
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
// make sure that taken branches do not happen back-to-back, as this is not
|
||||
// possible without branch prediction in the IF stage
|
||||
assert property (
|
||||
@(posedge clk) (branch_taken_ex_i) |=> (~branch_taken_ex_i) );
|
||||
|
||||
endmodule // controller
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue