mirror of https://github.com/Qortal/Brooklyn
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
391 B
24 lines
391 B
`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
|
|
|