bigcheesefuzz
New Contributor
7 years agoLong counter (30s) in VHDL, balancing a clock divide and counter size
I need to add a timer to an application running on a Cyclone V with a long (30s) period.
I can easily write an integer counter that counts the clock (30MHz) x 30s = 90,000,000 which uses ~150 LUTs.
However I'm looking to reduce the amount of LUTs, I can divide the 30MHz clock down (say 100 or 1000) and the my counter only need to count the equivalent amount.
Are there any rules / guides to the ratio of clock divide-to- counter size to best implement a design ? Particularly for the smallest amount of LUTs ?
Plus running the counter slower would surely better from a timing perspective ?