From 6e6e7a1add425af55f2f64f84cc312c231f9db45 Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Sun, 6 Nov 2022 15:51:39 -0600 Subject: Move CP15 logic out of control.sv --- rtl/core/control/coproc.sv | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 rtl/core/control/coproc.sv (limited to 'rtl/core/control/coproc.sv') diff --git a/rtl/core/control/coproc.sv b/rtl/core/control/coproc.sv new file mode 100644 index 0000000..f0b4169 --- /dev/null +++ b/rtl/core/control/coproc.sv @@ -0,0 +1,22 @@ +`include "core/uarch.sv" + +module core_control_coproc +( + input logic clk, + + input datapath_decode dec, + + input ctrl_cycle next_cycle, + input logic issue, + + output logic coproc +); + + always_ff @(posedge clk) + if(next_cycle == ISSUE && issue) + coproc <= dec.coproc; + + initial + coproc = 0; + +endmodule -- cgit v1.2.3