Brooklyn/arch/arm/mm/Status_Reg.v
Scare Crowe d2ebfd0519 QortalOS Titan 5.60.12
Screw the description like that inbred T3Q
2022-03-05 21:17:59 +05:00

25 lines
391 B
Verilog

`include "settings.h"
module Status_Reg
(
input clk,
input rst,
input load,
input [3:0] status_in,
output reg [3:0] status
);
always @(negedge clk or posedge rst) begin
if(rst) begin
status <= 0;
end
else if(load) begin
status <= status_in;
end
else begin
status <= status;
end
end
endmodule