QortalOS Brooklyn for Raspberry Pi 4
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
415 B

`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