Forum Discussion
VHDL Help
Please help me to generate a clock in VHDL synchronised with rising edges of two external clocks.
External clocks are: 100Mhz and 124 Hz Clock to be generated: 10MHz The 10MHz clock is to be generated using 100MHz clock startin g from rising edge of 124Hz clock.22 Replies
- Altera_Forum
Honored Contributor
whats wrong with clock enables?
- Altera_Forum
Honored Contributor
--- Quote Start --- whats wrong with clock enables? --- Quote End --- clock enable is not working in this case since the 10MHz is to be synchronized with two un-synchronized clocks 100MHz and 124Hz - Altera_Forum
Honored Contributor
you cant syncrhonise 100Mhz and 124 Mhz.
- Altera_Forum
Honored Contributor
yes because both are from separate sources...then how to generate a new clock synchronised with these two
- Altera_Forum
Honored Contributor
you cant. Why do you need them synchronised? are you trying to send data across the boundary? why not use a DC fifo?
- Altera_Forum
Honored Contributor
i am beginner in VHDL...kindly elaborate...my requirement is to generate a clock synchronised with two un-synchronised clocks
- Altera_Forum
Honored Contributor
you cant synchronise a clock to two completly unreleated clocks. You may be able to synchronise it every few thousand clocks. But generating clocks with logic is NOT a good idea.
- Altera_Forum
Honored Contributor
then what shall i do to solve the problem?
- Altera_Forum
Honored Contributor
Why do you need this clock? what is the ultimate aim? a clock on its own is no use to anyone. What is the system doing?
- Altera_Forum
Honored Contributor
Actually i need to generate a clock for a sensor....i chose 100Mhz crystal for generating this clock on my pcb...but there is an external clock 124 Hz coming to the pcb and this 10Mhz clock, generated from 100Mhz clock, shall start at the rising edge of 124Hz clock