P
Patrick
Guest
Hello,
I've to read a signal (data rate : 4Mbps) and his clock (4MHz) with a
sampling clock of 88 MHz.
But when I visualize these signals they are not synchronous !!
I use this code :
ECHANT_IN : process (clk_bit_in,reset)
begin
if reset='1' then
data_clk_bit <= '0';
elsif (clk_bit_in'event and clk_bit_in='1') then
data_clk_bit <= data_in;
end if;
end process ECHANT_IN;
ECHANT_IN_2 : process (clock_smp,reset)
begin
if reset='1' then
clock_bit <= '0';
data <= '0';
elsif (clock_smp'event and clock_smp='1') then
clock_bit <= clk_bit_in;
data <= data_clk_bit;
end if;
end process ECHANT_IN_2;
I've to read a signal (data rate : 4Mbps) and his clock (4MHz) with a
sampling clock of 88 MHz.
But when I visualize these signals they are not synchronous !!
I use this code :
ECHANT_IN : process (clk_bit_in,reset)
begin
if reset='1' then
data_clk_bit <= '0';
elsif (clk_bit_in'event and clk_bit_in='1') then
data_clk_bit <= data_in;
end if;
end process ECHANT_IN;
ECHANT_IN_2 : process (clock_smp,reset)
begin
if reset='1' then
clock_bit <= '0';
data <= '0';
elsif (clock_smp'event and clock_smp='1') then
clock_bit <= clk_bit_in;
data <= data_clk_bit;
end if;
end process ECHANT_IN_2;