8 input [31:0] write_data,
13 output reg regfile_write,
14 output reg [3:0] regfile_write_reg,
15 output reg [31:0] regfile_write_data,
17 output reg [31:0] outcpsr,
18 output reg [31:0] outspsr,
21 output reg [31:0] jmppc);
23 reg [31:0] last_outcpsr = 0, last_outspsr = 0;
27 outcpsr = last_outcpsr;
33 outspsr = last_outspsr;
40 regfile_write_reg = 4'hx;
41 regfile_write_data = 32'hxxxxxxxx;
46 if (write_reg && (write_num != 15))
49 regfile_write_reg = write_num;
50 regfile_write_data = write_data;
51 end else if (write_reg && (write_num == 15)) begin
60 last_outspsr <= outspsr;
61 last_outcpsr <= outcpsr;