1
0
mirror of synced 2026-01-25 20:06:27 +00:00
Files
YosysHQ.yosys/tests/opt/opt_rmdff_sat.v
2019-08-12 12:06:45 -07:00

13 lines
167 B
Verilog

module top (
input clk,
output reg [7:0] cnt
);
initial cnt = 0;
always @(posedge clk) begin
if (cnt < 20)
cnt <= cnt + 1;
else
cnt <= 0;
end
endmodule