Clock manipulations without DCM

OP (Company: None) #4866298
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.
Attached files:
Moderator (Company: Titel) #4866707
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".

Reply

A question of your own? This thread is over 9 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [vhdl]VHDL-Code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.