Forum: FPGA, VHDL & Verilog Clock manipulations without DCM

von Mark H. (Company: None) (marcvs)

Attached files:

Rate this post
0 useful
not useful
Hi, I'm Mark and I'm a VHDL newbie.
I need to generate 2 different signals from a 100 Mhz clock:

The first one will have 78 Mhz frequency and 50% Duty Cycle.
The second one 78 Mhz f and 70% DC.

I can't use DCM for this, just counters.

I attached a vhd source with a clock filter, I used this to get a 25 Mhz 
signal from a 100 Mhz clock with 50% D.C. It works fine, but it won't 
work as expected if the division between frequency_in and frequency_out 
is near 1, like in the 100/78 case.

: Edited by User
von Lothar M. (lkmiller) (Moderator)

Rate this post
0 useful
not useful
Clocks in FPGAs are generated by clock managers. Always.

That jittery derivative (named clock_out in your case) generated with a 
counter may be used as clock enables, but never ever as real clock.

Just read the manual of your FPGA. Chapter "Clocking".


Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [vhdl]VHDL code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]

Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.