B
benn
Guest
I have a 25Mhz clock that I wish to divide down to around 1.5Mhz..
I tried looking for examples, but it seems they all use PLLs! Is
something like this the way its normally done:
wire oClk_1p5MHz;
reg [16:0] Counter;
always@ (posedge iClk_25Mhz)
begin
Counter <= Counter + 1'b1;
End
assign oClk_1p5MHz = Counter[3]; // Counter[0] = Input/2, Counter[1]
= Input/4, Counter[2]/8; Counter[3]/16
Is this normally considered the preferred (safe) method, or will this
blow up when things wrap around?
I tried looking for examples, but it seems they all use PLLs! Is
something like this the way its normally done:
wire oClk_1p5MHz;
reg [16:0] Counter;
always@ (posedge iClk_25Mhz)
begin
Counter <= Counter + 1'b1;
End
assign oClk_1p5MHz = Counter[3]; // Counter[0] = Input/2, Counter[1]
= Input/4, Counter[2]/8; Counter[3]/16
Is this normally considered the preferred (safe) method, or will this
blow up when things wrap around?