OpenFPGA/openfpga_flow/benchmarks/micro_benchmark/SAPone/PC.v

16 lines
206 B
Coq
Raw Normal View History

2020-07-22 13:33:52 -05:00
module PC(
output reg [3:0] pc_out,
input cp,
input clk,
input clr_
);
always @(posedge clk)
begin
if(~clr_) pc_out <= 0;
else if (cp) pc_out <= pc_out + 1;
end
endmodule