viyaaloth
Junior Member level 3
Hi ALL,
I need a clarification regarding frequency divider using counter.
Usually, If a counter with N bits, it will divide the frequency by 2^N.
From the above snippet, what will be the frequency of "clock"
I need a clarification regarding frequency divider using counter.
Usually, If a counter with N bits, it will divide the frequency by 2^N.
Code Verilog - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 reg [19:0] counter; always@(posedge clk) // clock frequency is 100MHZ begin if(!reset_n) counter <= 0; else begin counter <= counter + 1'b1; clock <= counter[16]; end end
From the above snippet, what will be the frequency of "clock"
Last edited by a moderator: