From f3b18ead59ae02f95dabbf0a1dea40873a816975 Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Sun, 21 Jan 2024 06:23:46 -0600 Subject: rtl: refactor filenames and directory hierarchy --- rtl/core/control/branch.sv | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 rtl/core/control/branch.sv (limited to 'rtl/core/control/branch.sv') diff --git a/rtl/core/control/branch.sv b/rtl/core/control/branch.sv deleted file mode 100644 index 0298b95..0000000 --- a/rtl/core/control/branch.sv +++ /dev/null @@ -1,30 +0,0 @@ -`include "core/uarch.sv" - -module core_control_branch -( - input logic clk, - rst_n, - - input insn_decode dec, - - input ctrl_cycle next_cycle, - input logic issue, - input ptr next_pc_visible, - - output logic branch, - output ptr branch_target -); - - always_ff @(posedge clk or negedge rst_n) - if(!rst_n) begin - branch <= 1; - branch_target <= {$bits(branch_target){1'b0}}; - end else begin - branch <= 0; - if(next_cycle.issue && issue) begin - branch <= dec.ctrl.branch; - branch_target <= next_pc_visible + dec.branch.offset; - end - end - -endmodule -- cgit v1.2.3