brunoaduarte
Newbie level 6
xc9536
Hi, i have a 100 MHz clock source and want to divide it by 11 to obtain 9.091 MHz and by 22 to obtain 4.54 MHz on different clock outputs, how can i do it ?
If i could replace that always statement to something like
i think it could work, but i can't, i get error
Hi, i have a 100 MHz clock source and want to divide it by 11 to obtain 9.091 MHz and by 22 to obtain 4.54 MHz on different clock outputs, how can i do it ?
Code:
module clkdiv(clk,q);
input clk;
output q;
reg [1:0] COUNT;
initial COUNT=0;
assign q=COUNT[1];
always @(posedge clk)
begin
COUNT = COUNT + 1;
end
endmodule
If i could replace that always statement to something like
Code:
always @(posedge clk or negedge clk)