neocool
Member level 4
I am trying to understand why I am getting a delayed responce in the following case. One of the components is outputting several signals based on which the code is supposed to set the trigger high or low.
I want the trigger to be synchronous with the first occurence of SIG1/2/3 being high. With the code above, this happens only next clk_in clock cycle. Is it due to delays that make clk_in'even not happen the instant the case is occuring?
I have modified the line if (clk_in'event and clk_in='1') then
by erazing 'event condition like that:
Is it the correct way to do it?
Thanks
Code:
Trigger: process(clk_in, SIG1, SIG2, SIG3)
begin
if (clk_in'event and clk_in='1') then
if (SAMPLE_CLK_OUT_LOCAL='1') then
if (SIG1='1' and SIG2='1' and SIG3='1') then
TRIGGER <= '1';
else
TRIGGER <= '0';
end if; end if; end if;
I want the trigger to be synchronous with the first occurence of SIG1/2/3 being high. With the code above, this happens only next clk_in clock cycle. Is it due to delays that make clk_in'even not happen the instant the case is occuring?
I have modified the line if (clk_in'event and clk_in='1') then
by erazing 'event condition like that:
Code:
if (clk_in='1') then
Thanks