Forum Discussion
Altera_Forum
Honored Contributor
13 years ago --- Quote Start --- thats pretty simple.. so all I have to do is multiply the clock with the amount of time I need? for example for a 2 sec tick its supposed to be 50MHz * 2 sec? --- Quote End --- Yes you're right, you would require 100 M clock cycles to generate this tick. It's rather simple - 50 MHz tells you that clock cycle is repeated 50 M times in one sec. So in 2 seconds you would have 100 M clock cycles, and 0.5 sec would be accomplished in 25 M cycles. Remeber that if you start counting as it usually occurs from zero, you have to count from 0 to (count_number - 1). This subtracion of 1 is irrelevant with such big numbers as 50 M clock cycles. but keep that in mind when making small counters, dividers, pulse generators etc. best regards