3
0
mirror of https://github.com/Qortal/Brooklyn.git synced 2025-02-12 02:05:54 +00:00
Scare Crowe d2ebfd0519 QortalOS Titan 5.60.12
Screw the description like that inbred T3Q
2022-03-05 21:17:59 +05:00

24 lines
415 B
Verilog

`include "settings.h"
module PC
(
input clk,
input rst,
input freeze,
input [`WORD_WIDTH-1:0] pc_in,
output reg [`WORD_WIDTH-1:0] pc
);
always @(posedge clk or posedge rst) begin
if(rst) begin
pc <= 0;
end
else if(~freeze) begin
pc <= pc_in;
end
else begin
pc <= pc;
end
end
endmodule