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