Re: Changing clock domain
ALuPin wrote:
> process(Reset, Clk_90)
> begin
> if Reset='1' then
> l_valid_h1 <= '0';
> l_valid_h2 <= '0';
> l_valid_h3 <= '0';
>
> elsif rising_edge(Clk_90) then
> l_valid_h1 <= l_valid_48;
> l_valid_h2 <= l_valid_h1;
> l_valid_h3 <= l_valid_h2;
> end if;
> end process;
>
> process(l_valid_h2, l_valid_h3)
> begin
> l_valid_90 <= '0';
>
> if ((l_valid_h2='1') and (l_valid_h3='0')) then
> l_valid_90 <= '1';
> end if;
> end process;
The 3 FF approach is a good one, but you should create the i_valid_90 on the
clock as well. Just put the combinatorial statements within your clocked
process, and I think it should work just fine.
Regards,
Pieter Hulshoff
|