freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

fpga技術(shù)實(shí)現(xiàn)四層電梯控制器-文庫吧

2025-10-14 16:33 本頁面


【正文】 面幾個狀態(tài)用來延時 signal state:state_type:=start。 signal stopcun: std_logic_vector(3 downto 0)。 電梯停止樓層存儲器 signal upcun,downcun: std_logic_vector(2 downto 0)。 上升請求存儲器 下降請求存儲器 signal dd1,dd2,dd3: std_logic_vector(3 downto 0)。 信號用來交換數(shù)據(jù) begin p1:process(clk1,lock,alarm,overweight) variable position: integer range 0 to 4。 begin if lock=39。139。 then led1=39。039。led2=39。039。led3=39。039。led4=39。039。alarmled=39。039。 overweightled=39。039。dooropenled=39。039。upled=39。039。downled=39。039。 電梯上鎖 elsif alarm=39。139。 then alarmled=39。139。 警報(bào)燈亮 elsif overweight=39。139。 then overweightled=39。139。 超重?zé)袅? elsif rising_edge(clk1) then if up1=39。139。 then upcun(0)=39。139。 end if。 if up2=39。139。 then upcun(1)=39。139。 end if。 if up3=39。139。 then upcun(2)=39。139。 end if。 if down4=39。139。 then downcun(2)=39。139。 end if。 if down3=39。139。 then downcun(1)=39。139。 end if。 if down2=39。139。 then downcun(0)=39。139。 end if。 if It1=39。139。 then stopcun(0)=39。139。 end if。 if It2=39。139。 then stopcun(1)=39。139。 end if。 if It3=39。139。 then stopcun(2)=39。139。 end if。 if It4=39。139。 then stopcun(3)=39。139。 end if。 將各種請求存入存儲器 dd1=39。039。amp。 upcun。 將上升請求存儲器擴(kuò)展成四位 dd2=downcun amp。 39。039。 將下降請求擴(kuò)展成四位 dd3=dd1 or dd2 or stopcun。 case state is when start= if dd3=0000 then state=start。 elsif position=0 then led1=39。139。position:=position+1。 state=rukou。 end if。 電梯開始運(yùn)行,一樓燈亮,如果沒有請求,電梯狀態(tài)不變 when rukou= if position=1 then if stopcun(0)=39。139。 or upcun(0)=39。139。 then stopcun(0)=39。039。upcun(0)=39。039。 state=dooropen。 5 / 12 else state=up。 end if。 電梯在一樓,如果當(dāng)前層有請求,進(jìn)入開門狀態(tài),同時清除請求,否則電梯上升 elsif position=2 then if stopcun(1)=39。139。 or upcun(1)=39。139。 or downcun(0)=39。139。 then stopcun(1)=39。039。 。 upcun(1)=39。039。downcun(0)=39。039。state=dooropen。 elsif dd30011 then state=up。 elsif dd30010 then state=down。 end if。 電梯在二樓,如果當(dāng)前層有請求,進(jìn)入開門狀態(tài),同時將請求清除,如果三四樓有請求,電梯上升,否則下降 elsif position=3 then if stopcun(2)=39。139。 or upcun(2)=39。139。 or downcun(1)=39。139。 then stopcun(2)=39。0
點(diǎn)擊復(fù)制文檔內(nèi)容
高考資料相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1