EDA_hg81
Advanced Member level 2
In my design, a local clock is generated by a clock divider, which looks like follow:
My question is:
What is the proper way to do those ideas? What I should do to keep those data are valid when they transfer clock domain.
I can not use buffer which is driven by two clocks.
Thanks.
But I have to capture data generated in ARM7_CLOCK domain and have to send data back to ARM7 clock domain.process ( iARM7_CLK )
begin
if ( rising_edge( iARM7_CLK ) ) then
spiclkcon <= spiclkcon + 1;
if ( spiclkcon = spiclk_gen ) then
spiclkcon <= x"00";
spiclk <= not spiclk;
elsif ( spiclkcon = x"32" and spiclk = '0' ) then
.. check the data from ARM7 CLOCK domain…
My question is:
What is the proper way to do those ideas? What I should do to keep those data are valid when they transfer clock domain.
I can not use buffer which is driven by two clocks.
Thanks.