基于vhdl的自动售货机设计报告(编辑修改稿)内容摘要:

t4=39。 139。 and unablebut4=39。 039。 ) then choGoods1:=4。 unablebut4:=39。 139。 ableOk:=39。 139。 end if。 elsif(shift=39。 139。 and choGoods1=0) then if(but0=39。 139。 and unablebut0=39。 039。 ) then choGoods1:=5。 unablebut0:=39。 139。 ableOk:=39。 139。 elsif(but1=39。 139。 and unablebut1=39。 039。 ) then choGoods1:=6。 unablebut1:=39。 139。 ableOk:=39。 139。 elsif(but2=39。 139。 and unablebut2=39。 039。 and choGoods1=0) then choGoods1:=7。 unablebut2:=39。 139。 ableOk:=39。 139。 elsif(but3=39。 139。 and unablebut3=39。 039。 and choGoods1=0) then choGoods1:=8。 unablebut3:=39。 139。 ableOk:=39。 139。 elsif(but4=39。 139。 and unablebut4=39。 039。 and choGoods1=0) then choGoods1:=9。 unablebut4:=39。 139。 ableOk:=39。 139。 end if。 elsif(shift=39。 039。 and choGoods1=10) then if(but0=39。 139。 and unablebut0=39。 039。 ) then choGoods1:=10。 unablebut0:=39。 139。 ableOk:=39。 139。 elsif(but1=39。 139。 and unablebut1=39。 039。 ) then choGoods1:=11。 unablebut1:=39。 139。 ableOk:=39。 139。 elsif(but2=39。 139。 and unablebut2=39。 039。 ) then choGoods1:=12。 unablebut2:=39。 139。 ableOk:=39。 139。 elsif(but3=39。 139。 and unablebut3=39。 039。 ) then choGoods1:=13。 unablebut3:=39。 139。 ableOk:=39。 139。 elsif(but4=39。 139。 and unablebut4=39。 039。 ) then choGoods1:=14。 unablebut4:=39。 139。 14 ableOk:=39。 139。 end if。 elsif(shift=39。 139。 and choGoods1=10) then if(but0=39。 139。 and unablebut0=39。 039。 ) then choGoods1:=15。 unablebut0:=39。 139。 ableOk:=39。 139。 elsif(but1=39。 139。 and unablebut1=39。 039。 ) then choGoods1:=16。 unablebut1:=39。 139。 ableOk:=39。 139。 end if。 end if。 needMoney:=choGoods1。 sneedMoney=needMoney。 if(ok/=lastOk and ableOk=39。 139。 ) then lastOk:=ok。 lout1=39。 039。 lout2=39。 139。 ableOk:=39。 039。 state=schoNum1。 end if。 if(rst=39。 139。 ) then state=sstart。 end if。 第一个商品的数量选择 when schoNum1 = if(but0=39。 039。 and unablebut0=39。 139。 ) then unablebut0:=39。 039。 end if。 if(but1=39。 039。 and unablebut1=39。 139。 ) then unablebut1:=39。 039。 end if。 if(but2=39。 039。 and unablebut2=39。 139。 ) then unablebut2:=39。 039。 end if。 if(but3=39。 039。 and unablebut3=39。 139。 ) then unablebut3:=39。 039。 end if。 if(but0=39。 139。 and unablebut0=39。 039。 ) then choNum1:=0。 unablebut0:=39。 139。 ableOk:=39。 139。 elsif(but1=39。 139。 and unablebut1=39。 039。 ) then choNum1:=1。 unablebut1:=39。 139。 ableOk:=39。 139。 elsif(but2=39。 139。 and unablebut2=39。 039。 ) then choNum1:=2。 unablebut2:=39。 139。 ableOk:=39。 139。 elsif(but3=39。 139。 and unablebut3=39。 039。 ) then choNum1:=3。 unablebut3:=39。 139。 ableOk:=39。 139。 end if。 if(ok/=lastOk and ableOk=39。 139。 ) then lastOk:=ok。 lout2=39。 039。 lout1=39。 139。 ableOk:=39。 039。 needMoney:=choGoods1*choNum1。 sneedMoney=needMoney。 state=schoGoods20。 end if。 if (lastcancel/=cancel)then lastcancel:=cancel。 lout2=39。 039。 lout1=39。 139。 15 state=schoGoods10。 end if。 if(rst=39。 139。 ) then state=sstart。 end if。 第二个商品的种类选择 when schoGoods20 = if(but0=39。 039。 and unablebut0=39。 139。 ) then unablebut0:=39。 039。 end if。 if(but1=39。 039。 and unablebut1=39。 139。 ) then unablebut1:=39。 039。 end if。 if(but1=39。 039。 and but0=39。 139。 and unablebut0=39。 039。 ) then choGoods2:=0。 unablebut0:=39。 139。 needMoney:=choGoods2。 sneedMoney=needMoney。 state=schoGoods21。 elsif(but0=39。 039。 and unablebut1=39。 039。 and but1=39。 139。 ) then choGoods2:=10。 unablebut1:=39。 139。 needMoney:=choGoods2。 sneedMoney=needMoney。 state=schoGoods21。 end if。 if (lastcancel/=cancel)then lastcancel:=cancel。 lout2=39。 139。 lout1=39。 039。 state=schoNum1。 end if。 if(rst=39。 139。 ) then state=sstart。 end if。 第二个商品种类选择 when schoGoods21= if(but0=39。 039。 and unablebut0=39。 139。 ) then unablebut0:=39。 039。 end if。 if(but1=39。 039。 and unablebut1=39。 139。 ) then unablebut1:=39。 039。 end if。 if(but2=39。 039。 and unablebut2=39。 139。 ) then unablebut2:=39。 039。 end if。 if(but3=39。 039。 and unablebut3=39。 139。 ) then unablebut3:=39。 039。 end if。 if(but4=39。 039。 and unablebut4=39。 139。 ) then unablebut4:=39。 039。 end if。 if(shift=39。 039。 and choGoods2=0) then if(but0=39。 139。 and unablebut0=39。 039。 ) then choGoods2:=0。 unablebut0:=39。 139。 ableOk:=39。 139。 elsif(but1=39。 139。 and unablebut1=39。 039。 ) then choGoods2:=1。 unablebut1:=39。 139。 ableOk:=39。 139。 elsif(but2=39。 139。 and unablebut2=39。 039。 ) then choGoods2:=2。 unablebut2:=39。 139。 a。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。