From bb7f500489045e75f091113bcd8fb7db2bd43071 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Tue, 9 Jun 2015 07:40:30 +0200 Subject: [PATCH] Removed unnecessary "jal" complexity --- picorv32.v | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/picorv32.v b/picorv32.v index 0c422b8..4f4462f 100644 --- a/picorv32.v +++ b/picorv32.v @@ -512,10 +512,7 @@ module picorv32 #( $display("DECODE: 0x%08x jal", current_pc); `endif mem_do_rinst <= 1; - if (latched_is_lu || latched_is_lh || latched_is_lb) - reg_next_pc <= current_pc + decoded_imm; - else - reg_next_pc <= current_pc + decoded_imm_uj; + reg_next_pc <= current_pc + decoded_imm_uj; latched_branch <= 1; end else begin mem_do_rinst <= 0;