【正文】
當(dāng)有人靠近紅外線探測器工作范圍時,要求有閃爍的紅 光和報警聲。 “功能選擇鍵” 為‘ 0’低電平時選擇 A的功能要求,當(dāng) “功能 選擇鍵” 為‘ 1’高電平時選擇 B的功能要求, A、當(dāng)人離開紅外線探測器工作范圍時,要求立即停止閃爍的紅光和報警聲。 B、當(dāng)人離開紅外線探測器工作范圍時,閃爍的紅光和報警聲仍然存在,只有按下復(fù)位鍵,才能停止閃爍的紅光和報警聲。 作業(yè)要完成內(nèi)容: 外圍電路 程序 仿真后的正確波形圖 防盜產(chǎn)品 3 architecture rtl of fang_dao3 is begin process(fdxh,rs,xz) begin if( rs=39。1‘)then bjsy=39。039。 bjdg=39。039。 elsif(xz=39。039。 and fdxh=39。139。) then bjsy=39。139。 bjdg=39。139。 elsif (fdxh39。event and fdxh=39。139。) then if(xz=39。139。)then bjsy=39。139。 bjdg=39。139。 end if。 end if。 end process 。 end rtl。 entity fang_dao3 is port(fdxh,rs,xz,pd:in std_logic。 bjsy,bjdg:out std_logic)。 end fang_dao3。 architecture rtl of fang_dao3 is begin process(fdxh,rs,xz,pd) begin if( rs=39。139。 or (pd=39。039。 and xz=39。039。 and fdxh=39。039。))then bjsy=39。039。 bjdg=39。039。 elsif(xz=39。039。 and fdxh=39。139。) then bjsy=39。139。 bjdg=39。139。 elsif (fdxh39。event and fdxh=39。139。) then if(xz=39。139。)then bjsy=39。139。 bjdg=39。139。 end if。 end if。 end process 。 end rtl。