From 1e17c6994897bc2edbde3b52db6a1e39d9a20f03 Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Sun, 23 Oct 2022 23:27:51 -0600 Subject: Move branch control signals to struct branch_decode --- rtl/core/control/control.sv | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'rtl/core/control/control.sv') diff --git a/rtl/core/control/control.sv b/rtl/core/control/control.sv index 0f5b067..81e7257 100644 --- a/rtl/core/control/control.sv +++ b/rtl/core/control/control.sv @@ -7,12 +7,11 @@ module core_control dec_undefined, dec_conditional, dec_uses_rn, - dec_branch, dec_writeback, dec_update_flags, - input ptr dec_branch_offset, - input snd_decode dec_snd, + input branch_decode dec_branch, input data_decode dec_data, + input snd_decode dec_snd, input ldst_decode dec_ldst, input ptr fetch_insn_pc, input psr_flags flags, @@ -178,8 +177,8 @@ module core_control bubble <= next_bubble; if(dec_execute & ~next_bubble) begin - branch <= dec_branch; - branch_target <= next_pc_visible + dec_branch_offset; + branch <= dec_branch.branch; + branch_target <= next_pc_visible + dec_branch.offset; alu <= dec_data.op; ra <= dec_data.rn; -- cgit v1.2.3