summaryrefslogtreecommitdiff
path: root/rtl/core/control/coproc.sv
blob: f0b4169eeca5dfc0a2685aeaca66cf26813ca60f (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  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