summaryrefslogtreecommitdiff
path: root/rtl/core/control/coproc.sv
blob: b0c8beaff1e2cf9ba7017dcb6cf913659442cbf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
`include "core/uarch.sv"

module core_control_coproc
(
	input  logic       clk,

	input  insn_decode dec,

	input  ctrl_cycle  next_cycle,
	input  logic       issue,

	output logic       coproc
);

	always_ff @(posedge clk)
		if(next_cycle == ISSUE && issue)
			coproc <= dec.ctrl.coproc;

	initial
		coproc = 0;

endmodule