X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=prescaler.v;h=86a445fc1eba5a4635814e8b94c3fb9914b37a12;hb=9e30ab0cd6964785b3e01e2f3343e1fe4ee49462;hp=368a94fe0c5d1bdd9e7912f7e959307bb4a8482b;hpb=a051754e2f539c6ed180e93ecf31cdcb95950896;p=yule.git diff --git a/prescaler.v b/prescaler.v index 368a94f..86a445f 100644 --- a/prescaler.v +++ b/prescaler.v @@ -1,15 +1,11 @@ // Prescalar with default 16 bit division module PRESCALER #(parameter BITS = 16) (input clk, output out); - reg [BITS-1:0] counter = 0; - - always @ (posedge clk) begin - + + always @ (posedge clk) begin counter <= counter + 1; - end assign out = counter[BITS-1]; - endmodule