flanix 当前离线
金牌会员
你的逻辑很乱呀。
TOP
if trigger'event and trigger='1' then
用这个来检测信号的上升沿不好呀。这种方式一般是用来描述时钟的上升沿的。
检测上升沿这样做:
triggerbuf <= trigger;
triggerrise <= trigger and (not triggerbuf);
然后
if i = 5000000 then
if triggerrise = '1' then
endisp <= '1';
else
endisp <= '0';
end if;
尽量不要用变量,应用信号。