文件
palladium_z2_demo/design/top.v
T
Wang Xuejin f5bf2e30fc maste
2025-09-22 15:30:52 +08:00

14 行
264 B
Verilog

`timescale 1ns/1ps
module top (
input clk,
input reset_n,
output [31:0] pc_out
);
reg [31:0] pc;
always @(posedge clk or negedge reset_n) begin
if (!reset_n) pc <= 0;
else pc <= pc + 4;
end
assign pc_out = pc;
endmodule