nextpnr/xc7/carry_tests/counter.v
2018-08-11 14:35:49 -07:00

10 lines
214 B
Verilog

module top(input clk, cen, rst, ina, inb, output outa, outb, outc, outd);
reg [15:0] ctr = 0;
always @(posedge clk)
ctr <= ctr + 1'b1;
assign {outa, outb, outc, outd} = ctr[15:12];
endmodule