Forum Discussion
Altera_Forum
Honored Contributor
14 years ago --- Quote Start --- I second Kaz on this, with a minor modification. I have always used a modulo counter for clock division. So you can use a counter to count the cycles, thus increase it by one each cycle, and once a value is reached, set the clock high. In this way you won't need the adder and subtractor in Kaz's code (incrementor is cheaper in terms of HW). --- Quote End --- Hi turhank, you can count cycles and then raise clken if you are dividing by integer. but in our case it is fractional 83/125 so you can't count 125 of clcok and generate 83 clk en. The modulo adder is itself doing the division of 83/125