EDA技术(机械)实验报告-16-16点阵显示设计_第1页
EDA技术(机械)实验报告-16-16点阵显示设计_第2页
EDA技术(机械)实验报告-16-16点阵显示设计_第3页
EDA技术(机械)实验报告-16-16点阵显示设计_第4页
EDA技术(机械)实验报告-16-16点阵显示设计_第5页
已阅读5页,还剩1页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

PAGEPAGE1 西华大学实验报告第组.第组实验报告(计算机类)开课学院及实验室:实验时间:年月日学生姓名学号9成绩学生所在学院年级/专业/班课程名称EDA技术(机械)课程代码实验项目名称16*16点阵显示设计项目代码指导教师项目学分一、实验目的1.了解VHDL语言编程方法,学会熟练运用quartus软件2.了解点阵显示原理3.了解如何使用VHDL设计一个16*16点阵显示二、内容与设计思想本设计针对一个16*16的点阵使用逐列循环扫描的方式来不间断的显示VHDL这四个英文字母。三、使用环境winXP或win7Quartusii编程环境核心代码及调试过程16*16点阵显示设计CHW模块libraryieee;useieee.std_logic_1164.all;useieee.std_logic_unsigned.all;entitychwis port( clk:instd_logic; q:outstd_logic_vector(1downto0) );endchw;architecturechw_arcofchwisbegin Process(clk) variablecnt:std_logic_vector(3downto0); variabletmp:std_logic_vector(1downto0); begin ifclk'eventandclk='1'then ifcnt<"1111"then cnt:=cnt+1; else cnt:="0000"; iftmp="11"then tmp:="00"; else tmp:=tmp+1; endif; endif; endif; q<=tmp; endprocess;endchw_arc;CNTA模块libraryieee;useieee.std_logic_1164.all;useieee.std_logic_unsigned.all;entitycntais port( clk:instd_logic; q:outstd_logic_vector(3downto0) );endcnta;architecturecnta_arcofcntaisbegin process(clk) variabletmp:std_logic_vector(3downto0); begin ifclk'eventandclk='1'then iftmp="1111"then tmp:="0000"; else tmp:=tmp+1; endif; endif; q<=tmp-1; endprocess;endcnta_arc;CORA模块libraryieee;useieee.std_logic_1164.all;entitycorais port(ch:instd_logic_vector(1downto0); sel:instd_logic_vector(3downto0); q:outstd_logic_vector(15downto0) );endcora;architecturecora_arcofcoraisbegin process(ch,sel) begin casechis when"00"=> caseselis when"0000"=>q<="0111000000000000"; when"0001"=>q<="0111100000000000"; when"0010"=>q<="0001111000000000"; when"0011"=>q<="0000011110000000"; when"0100"=>q<="0000000111100000"; when"0101"=>q<="0000000001111000"; when"0110"=>q<="0000000000011110"; when"0111"=>q<="0000000000000111"; when"1000"=>q<="0000000000000111"; when"1001"=>q<="0000000000011110"; when"1010"=>q<="0000000001111000"; when"1011"=>q<="0000000111100000"; when"1100"=>q<="0000011110000000"; when"1101"=>q<="0001111000000000"; when"1110"=>q<="0111100000000000"; when"1111"=>q<="0111000000000000"; whenothers=>null; endcase; when"01"=> caseselis when"0000"=>q<="0000000000000000"; when"0001"=>q<="0000000000000000"; when"0010"=>q<="1111111111111111"; when"0011"=>q<="1111111111111111"; when"0100"=>q<="0000001110000000"; when"0101"=>q<="0000001110000000"; when"0110"=>q<="0000001110000000"; when"0111"=>q<="0000001110000000"; when"1000"=>q<="0000001110000000"; when"1001"=>q<="0000001110000000"; when"1010"=>q<="0000001110000000"; when"1011"=>q<="0000001110000000"; when"1100"=>q<="1111111111111111"; when"1101"=>q<="1111111111111111"; when"1110"=>q<="0000000000000000"; when"1111"=>q<="0000000000000000"; whenothers=>null; endcase; when"10"=> caseselis when"0000"=>q<="0000000000000000"; when"0001"=>q<="0000000000000000"; when"0010"=>q<="1111111111111111"; when"0011"=>q<="1111111111111111"; when"0100"=>q<="1100000000000011"; when"0101"=>q<="1100000000000011"; when"0110"=>q<="1100000000000011"; when"0111"=>q<="0110000000000110"; when"1000"=>q<="0110000000000110"; when"1001"=>q<="0110000000000110"; when"1010"=>q<="0011000000001100"; when"1011"=>q<="0001100000011000"; when"1100"=>q<="0000111111110000"; when"1101"=>q<="0000011111100000"; when"1110"=>q<="0000000000000000"; when"1111"=>q<="0000000000000000"; whenothers=>null; endcase; when"11"=> caseselis when"0000"=>q<="0000000000000000"; when"0001"=>q<="0000000000000000"; when"0010"=>q<="0000000000000000"; when"0011"=>q<="1111111111111111"; when"0100"=>q<="1111111111111111"; when"0101"=>q<="0000000000000011"; when"0110"=>q<="0000000000000011"; when"0111"=>q<="0000000000000011"; when"1000"=>q<="0000000000000011"; when"1001"=>q<="0000000000000011"; when"1010"=>q<="0000000000000011"; when"1011"=>q<="0000000000000111"; when"1100"=>q<="00000000000011

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论