Altera_Forum
Honored Contributor
18 years agosampled signal on falling or risins edge?
Hello,
I have a beginner question. With the code below The signal in_width_pulse_n is wide of one period (clk_speed) My question is on signal old1_width_pulse_n I must be sampled it on falling or rinsing edge. Thank for you adice! process(Rst, Clk_speed) begin if Rst = '0' then old1_width_pulse_n <= '1'; else if Clk_speed = '1' and Clk_speed 'event then old1_width_pulse_n <= in_width_pulse_n; end if; end if; end process; process(Rst, Clk_speed) begin if Rst = '0' then old_width_pulse_n <= '1'; else if Clk_speed = '1' and Clk_speed 'event then old_width_pulse_n <= old1_width_pulse_n; end if; end if; end process;