Add diagrams and pictures
[clump.git] / prescaler.v
CommitLineData
a051754e
MG
1// Prescalar with default 16 bit division
2
3module PRESCALER #(parameter BITS = 16) (input clk, output out);
a051754e 4 reg [BITS-1:0] counter = 0;
9e30ab0c
MG
5
6 always @ (posedge clk) begin
a051754e 7 counter <= counter + 1;
a051754e
MG
8 end
9
10 assign out = counter[BITS-1];
a051754e 11endmodule
This page took 0.009517 seconds and 4 git commands to generate.