EDA_hg81
Advanced Member level 2
capturing pulse in clock domain crossing
In my design, I have used two state machines.
First state machine is running under 4MHZ, which generate a 500us pulse.
Second state machine is running under 16MHZ, which receive this 500us pulse.
My code for checking the pulse is as follow:
But why that generated pulse can’t be received?
Thanks.
Added after 1 hours 5 minutes:
I am really sick of Altera FPGA.
The initial state machine is not constant.
In my design, I have used two state machines.
First state machine is running under 4MHZ, which generate a 500us pulse.
Second state machine is running under 16MHZ, which receive this 500us pulse.
My code for checking the pulse is as follow:
Code:
process ( refclk )
begin
if (rising_edge(refclk)) then
fstart_reg1 <= cformat;
fstart_reg2 <= fstart_reg1;
if( fstart_reg1 = ‘1’ and fstart_reg2 = ‘0’ ) then
…………………………….
end if;
end if;
end process;
But why that generated pulse can’t be received?
Thanks.
Added after 1 hours 5 minutes:
I am really sick of Altera FPGA.
The initial state machine is not constant.