Skip to content

Commit

Permalink
[rtl/controller] Remove redundant check in execption handling
Browse files Browse the repository at this point in the history
This commit turns the last case in the exception handling if/else block
from an `else if` to an `else`. This is not changing functional
behavior as the same condition is checked previously, but removes a
`MISSING_ELSE` coverage hole reported by @udinator.

Signed-off-by: Pirmin Vogel <[email protected]>
  • Loading branch information
vogelpi committed Nov 13, 2019
1 parent d538261 commit 6a5ee22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rtl/ibex_controller.sv
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ module ibex_controller (
exc_cause_o = EXC_CAUSE_STORE_ACCESS_FAULT;
csr_mtval_o = lsu_addr_last_i;

end else if (load_err_q) begin
end else begin // load_err_q
exc_cause_o = EXC_CAUSE_LOAD_ACCESS_FAULT;
csr_mtval_o = lsu_addr_last_i;
end
Expand Down

0 comments on commit 6a5ee22

Please sign in to comment.