Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers

Counter in VHDL

Altera_Forum
Honored Contributor II
1,508 Views

Hi, 

I want to design a 16 bit counter with 1uSec resulution.  

I have only 40MHz clock and can't use neither PLL or frequency divider. 

I can use only the 40MHz global clock. 

Can somebody recommend for VHDL design for 16 bit counter with resulution adjustment? 

 

THX 

 

GUY.
0 Kudos
5 Replies
Altera_Forum
Honored Contributor II
463 Views

run another counter at 40MHz. When it reaches a given number generate an enable that increases the main 16 bit counter.

0 Kudos
Altera_Forum
Honored Contributor II
463 Views

Thank you! 

 

I want to implement it in minimum hardware. You think this is the most minimized option?  

 

Guy.
0 Kudos
Altera_Forum
Honored Contributor II
463 Views

Possibly. 

If you come up with other ideas, give them a go too and look at resource usages.
0 Kudos
Altera_Forum
Honored Contributor II
463 Views

Thank you .

0 Kudos
Altera_Forum
Honored Contributor II
463 Views

You will need 16+6 flops and some logic at the minimum.

0 Kudos
Reply