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

module core_psr
(
	input  logic     clk,
	input  psr_flags alu_flags,

	output psr_flags flags,
	                 next_flags
);

	assign next_flags = alu_flags; //TODO

	always_ff @(posedge clk)
		flags <= next_flags;

	initial flags = 4'b0000;

endmodule