1 / 10
文档名称:

出租车计费器.docx

格式:docx   大小:301KB   页数:10页
下载后只包含 1 个 DOCX 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

出租车计费器.docx

上传人:shugezhang1 2022/8/24 文件大小:301 KB

下载得到文件列表

出租车计费器.docx

相关文档

文档介绍

文档介绍:匚诲电力学院
课程设计报告
课程设计名称: FPGA设计实践课程
设计课题名称: 出租车计费器
班级: 2008141 指导老师: 赵倩
姓名: 丁晓亮 学号: 20082614
成绩:设计时间:2011-6-27~1") then --路程超过 30 (3000M)
if (luf3<"0010") then --路费低于 20 元
if (luf1="1000" and luf0<="0110") then luf0<=luf0+"0010"; luf1<=〃0000〃;c1:=T'; elsif(luf1="1000” and luf0="1000") then luf0<=〃0000〃;luf1<=〃0001〃;c1:=T'; elsif(luf1="0111" and luf0="1000") then luf0<=〃0000〃;luf1<=〃0000〃;c1:=T'; elsif(luf1="1001" and luf0<="0110") then luf0<=luf0+〃0010〃;luf1<=〃0001〃;c1:=T'; elsif(luf1="1001" and luf0="1000") then luf0<=〃0000〃;luf1<=〃0010〃;c1:=T'; elsif(luf1<"0111" and luf0="1000") then luf0<=〃0000〃;luf1<=luf1+〃0011〃;c1:='0‘; else luf0<=luf0+〃0010〃;luf1<=luf1+〃0010〃;c1:='0‘; end if;
else --路费大于20元
if (luf0<="0110" and luf1="0111") then luf0<=luf0+〃0011〃;luf1<=〃0000〃;c1:=T'; elsif(luf0<="0110" and luf1="1000") then luf0<=luf0+〃0011〃;luf1<=〃0001〃;c1:=T'; elsif(luf0<="0110" and luf1="1001") then luf0<=luf0+〃0011〃;luf1<=〃0010〃;c1:=T'; elsif(luf0="0111" and luf1<="0101") then luf0<="0000" ; luf1<=luf1+〃0100〃;c1:='0‘; elsif(luf0="0111" and luf1="0110") then luf0<="0000" ;luf1<=〃0000〃;c1:=T'; elsif(luf0="0111" and luf1="0111") then luf0<="0000" ;luf1<=〃0001〃;c1:=T'; elsif(luf0="0111" and luf1="1000") then luf0<="0000" ; luf1<=〃0010〃;c1:=T'; elsif(luf0="0111" and luf1="1001") then luf0<="0000" ; luf1<=〃0011〃;c1:=T'; elsif(luf0="1000" and luf1<="0101") then luf0<="0001" ; lu