vhdl 里怎么同时检测两个信号的上升沿?

2024-11-29 23:10:37
推荐回答(1个)
回答1:

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