基于vhdl语言的自动售货机设计内容摘要:

then coin=0011。 next_state=state3。 elsif datain=10 then coin=0100。 next_state=state4。 elsif datain=00 then act10=39。 139。 act5=39。 039。 coin=0000。 next_state=idle。 end if。 when state3= if datain=01 then coin=0100。 next_state=state4。 elsif datain=10 then coin=0101。 next_state=state5。 elsif datain=00 then act=1000。 act5=39。 039。 act10=39。 039。 coin=0000。 next_state=idle。 end if。 when state4= if datain=01 then next_state=state5。 coin=0101。 elsif datain=10 then next_state=state6。 coin=0110。 elsif datain=00 then act=1000。 coin=0000。 next_state=state1。 end if。 when state5= if datain=01 then next_state=state6。 coin=0110。 elsif datain=10 then coin=0111。 next_state=state7。 elsif datain=00 then act=0100。 coin=0000。 act5=39。 039。 act10=39。 039。 next_state=idle。 end if。 when state6= if datain=01 then coin=0111。 next_state=state7。 elsif datain=10 then coin=1000。 next_state=state8。 elsif datain=00 then act=0100。 coin=0000。 next_state=state1。 end if。 when state7= if datain=01 then coin=1000。 next_state=state8。 elsif datain=10 then coin=1001。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。