process(Clk)beginif(Clk'event and Clk = '1') theniBuf <= i;iBuf2 <= iBuf;end if;end process; process(Clk)beginif(Clk'event and Clk = '1') thenif (iBuf = '1' and iBuf2 = '0') then --判断i的上升沿想要触发的活动; end if;end if;end process;