Altera_Forum
Honored Contributor
16 years agoClock Divider
I have a input clock 128*Fs(Sampling Frequency). I need derived clocks of Fs, 2Fs, 4Fs, 8Fs, 16Fs ... 64Fs.
However, there are 2 ways in my mind to implement it. 1st: 1 module only and multiple output use modulus 128-counter: - if (count == 2, 4, 6, 8, ...) a = 1;//64*Fs - else if (count== 4, 8, 12,...) b =1; //32*Fs .... 2nd: Multiple Module and 1 output each module - modulus 2 counter - modulus 4 counter etc Which method is better? Besides, how to check the value is multiple of 4, 8 and 16? Thanks