From 41b263bb39478393a302b284643a590779902f6c Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Mon, 31 Oct 2022 16:05:15 -0600 Subject: Add MUL control cycle --- rtl/core/control/cycles.sv | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'rtl/core/control/cycles.sv') diff --git a/rtl/core/control/cycles.sv b/rtl/core/control/cycles.sv index f804e93..e9bc2da 100644 --- a/rtl/core/control/cycles.sv +++ b/rtl/core/control/cycles.sv @@ -3,10 +3,12 @@ module core_control_cycles ( input logic clk, + mul, ldst, bubble, exception, mem_ready, + mul_ready, pop_valid, trivial_shift, ldst_writeback, @@ -38,13 +40,21 @@ module core_control_cycles else if(ldst_writeback) next_cycle = BASE_WRITEBACK; + MUL: + if(!mul_ready) + next_cycle = MUL; + default: ; endcase if(bubble) next_cycle = ISSUE; - else if(next_cycle == ISSUE && ldst) - next_cycle = TRANSFER; + else if(next_cycle == ISSUE) begin + if(ldst) + next_cycle = TRANSFER; + else if(mul) + next_cycle = MUL; + end end always_ff @(posedge clk) -- cgit v1.2.3