Forum Discussion
Altera_Forum
Honored Contributor
14 years agoPLL will work for sure if you dnt want to peep into count stuffs,but if you want to use LPM_COUNT then i think it wont work
Actually I feel that if you want to connect with counter policy then use logic,it will be more easy than using mega function reason: Suppose you take 5 bit count (0 to 31),and for the required output clock,you need to stop your count at 30,then using megafunction,how will you achieve this?because if your count is 5 bit then it will be reset only after 31 only not in between (in case of up counter) But using your own logic,you can provide condition to stop after some count to get exact frequency. After that you can create block symbol from that hdl file. i have attached one verilog file and test bench based on your question,i think it will work for 50 mhz input and 100 hz outputHope this will help you.