摘要论文提出一种新型的电子点菜系统以弥补传统点菜方式的弊端。在目前的餐馆里,如果采用电子菜单,客人点菜时不需要服务员的陪伴,能实时地了解菜的特色,方便了顾客同时也减轻了餐馆的服务压力。本课题是基于SOPC的电子点菜单的设计,该电子点菜系统实现了一个电子点菜终端的部分功能,如:显示菜的单价、口味、已点数量和总价等。本设计采用行扫描法实现4*4键盘的扫描,并对按键进行消抖处理。利用行波进位加法器进行总价的结算,使用静态RAM存储数据。整个设计是在ALTERA公司的QUARTUS编程环境下进行,在FPGA芯片上得以实现,通过模拟仿真,最终下载在CYC-L2便携式实验系统运行实现。本课题完成的电子点菜单功能齐全,使用方便,可大大提高服务质量,并节省许多人力物力。在餐饮业具有较好的推广价值。关键字:电子菜单;FPGA;VHDLAbstractThethesisputsforwardakindofnewelectronicsmenusystemtomakeupmenuoftraditionmethod.Incurrentrestaurant,iftheadoptionelectricitysubmenu,theguestordersthemenudonotneedtheattendanttokeepcompanywith,canbeaverygoodunderstandingofthecharacteristicsoffood,conveniencethecustomeralsoeasedtheservicepressureoftherestaurant.ThistopicisadesignthatordersthemenuaccordingtotheSOPC,thatelectronicsmenupartsoffunctionsthatthemenusystemcarriesoutanelectronicstoorderthevegetablesterminal,suchas:Showtheuprice,tasteofthefoodandhavealreadyorderedquantityandtotalpriceetcs.Thisdesignadoptiongoestoscanthemethodtocarryout4*4keyboardstoscan,andcarryoneliminatetotrembletheprocessingtothekey.Theexploitationgoesthewavebalanceofaccountsthatentersanaddertocarryonthetotalprice,savingdataoftheusagestaticstateRAM.ThewholedesigncarriesonundertheQUARTUSplaitdistanceenvironmentofthecompanyofALTERA,cancarryoutonthechipofFPGA,reallypasstoimitatetoimitate,theenddownloadisintheCYC-L2thentheholdtypeexperimentsystemcirculatestherealization.Theelectronicsthatthistopiccompleteordersthemenufunctionwell-found,theusageconvenience,canraisetheservicequantityconsumedly,andsavemanymanpowermaterialresources.Havetocompareinthediningindustrygoodofexpansionvalue.Keyword:electricmenu;FPGA;VHDL基于SOPC的电子点菜单设计目录1绪论............................................................................................................................11.1任务的提出.....................................................................................................11.2设计的目的和意义.........................................................................................12相关知识简介............................................................................................................32.1开发工具.........................................................................................................32.2开发语言.........................................................................................................32.3开发环境.........................................................................................................33总体设计....................................................................................................................63.1设计的总体结构描述.....................................................................................63.2功能模块描述.................................................................................................63.2.1键盘模块............................................................................................................73.2.2显示模块............................................................................................................73.2.3控制模块............................................................................................................83.3功能模块的状态转换.....................................................................................84详细设计....................................................................................................................94.1键盘模块设计.................................................................................................94.1.1键盘扫描............................................................................................................94.1.2键盘译码器......................................................................................................114.2显示模块设计...............................................................................................124.2.1菜单显示..........................................................................................................124.2.2口味显示.........................................................................................................144.2.3单价显示..........................................................................................................144.3控制模块.......................................................................................................174.3.1RAM的设计....................................................................................................194.3.2加法器的设计.................................................................................................215系统测试..................................................................................................................225.1键盘扫描模块...............................................................................................225.2键盘译码.......................................................................................................235.3多位加法器...................................................................................................24基于SOPC的电子点菜单设计5.4七段数码管..................................................................