prjxray/minitests/timing/top_counter.v

12 lines
163 B
Verilog

module top(input clk, stb, di, output do);
reg [31:0] counter = 0;
assign do = &counter;
always @(posedge clk) begin
counter <= counter + 1;
end
endmodule