yosys/examples/mimas2/example.v

15 lines
170 B
Coq
Raw Normal View History

2019-07-24 11:41:39 -05:00
module example(
input wire CLK,
output wire [7:0] LED
);
reg [27:0] ctr;
initial ctr = 0;
always @(posedge CLK)
ctr <= ctr + 1;
assign LED = ctr[27:20];
endmodule