《基于fpga的数字跑表设计》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
基于FPGA的数字跑表的设计草鱼 陈宝锋草鱼2011059010017草鱼 摘要:pork以硬件描述语言(Verilog或VHDL)所完成的电路设计,鲤鱼可以经过简单的综合与布局,鲤鱼快速的烧录至草鱼FPGA草鱼上进行测试,鲤鱼是现代草鱼IC设计验证的技术主流。草鱼这些可编辑元件可以被用来实现一些基本的逻辑门电路(比如AND、porkOR、porkXOR、porkNOT)或者更复杂一些的组合功能比如解码器或数学方程式。草鱼在大多数的FPGA里面,鲤鱼这些可编辑的元件里也包含记忆元件例如触发器(Flip-flop)或者其他更加完整的记忆块。草鱼草鱼 第1章草鱼草鱼引言草鱼 本设计是基于FPGA利用VHDL语言实现硬件电路的描述实现一个智力抢答器的设计,鲤鱼完成6位选手在规定的时间内(10秒)按键抢答;pork抢中编号锁定显示,鲤鱼其他无效;pork主持按键控制清零和开始选手抢中后在规定的时间内(30秒)答提;pork具有报警提示功能,鲤鱼分别提示抢答开始,鲤鱼有人抢答,鲤鱼抢答时间到,鲤鱼答题时间到。草鱼报警延时为1s;pork。草鱼设计使用的FPGA软件开发平台为Xilinx的ISE,鲤鱼它具有界面简单、pork简单易学、pork辅助功能强大等特点。草鱼在编写代码时可以使用编写向导生成头文件和模块框架,鲤鱼也可以使用语言模块帮助编写代码。草鱼实验使用的仿真软件为ModelSim,鲤鱼该软件具有代码分析能力可以看出不同代码段消耗资源的情况。草鱼其功能侧重于编译和仿真,鲤鱼不能制定编译的器件和不具有下载配置能力,鲤鱼所以需要和ISE等软件关联使用。草鱼草鱼 第2章草鱼草鱼实验项目方案设计草鱼 2.1草鱼草鱼项目系统设计原理草鱼 系统主要要实现计数功能、pork显示功能还有数据的锁存和读取。草鱼本设计采用了外部时钟为48Mhz的FPGA硬件开发平台。草鱼首先利用分频器将48Mhz的外部时钟分频产生100hz和1khz的始终信号,鲤鱼100hz的时钟用于实现精度为0.01s精度的计数器时钟,鲤鱼1kHz的时钟信号用于显示模块扫描显示的外部信号。草鱼计数器为两个六进制计数器和四个十进制计数器的同步级联,鲤鱼同时具有清零,鲤鱼暂停控制端口。草鱼显示模块6只数码管采用动态扫描的连接方式,鲤鱼硬件电路上的每个数码管abcdefg分别连在一起,鲤鱼作为段选信号,鲤鱼8个数码管数码管分别由8个选通信号控制(这里使用到了三八译码器),鲤鱼由于段选信号连在一起,鲤鱼所以数码管的显示采用的是动态扫描的显示方式。草鱼锁存模块设计时采用了六进制的计数器输出端触发,鲤鱼有效地完成了锁存六个时间点的实验要求,鲤鱼同时加入了数据锁存和数据输出选择键,鲤鱼完美实现了锁存数据的输出。草鱼草鱼 2.2草鱼草鱼项目系统设计方案及模块组成草鱼 图一为此次设计的基本构架和模块组成(不包含消抖模块)。草鱼草鱼 系统的主要组成模块主要有消抖电路模块、pork分频器模块、pork计数器模块、pork锁存器模块、pork扫描显示模块、pork译码器模块、pork势能/选择模块。草鱼各模块的功能描述,鲤鱼将在第三章作介绍。草鱼草鱼 31 草鱼 草鱼 具体的实现过程为:pork下载完成后按下get键,鲤鱼此时使能模块输出高电平,鲤鱼计数器开始计时,鲤鱼并在数码管上实时显示,鲤鱼锁存器模块进入锁存状态,鲤鱼start为系统的清零/复位键,鲤鱼sc为六进制计数器的时钟,鲤鱼每按一次sc键将会产生一个上升沿,鲤鱼并计数一次,鲤鱼六进制的计数器的输出端触发锁存器,鲤鱼每记一次数锁存一组数。草鱼草鱼 当再按一次get键的时候,鲤鱼势能/选择模块输出低电平,鲤鱼此时计数器停止计时,鲤鱼锁存器进入数据读取状态,鲤鱼显示模块显示读取的锁存的数据,鲤鱼按下start键为系统清零,鲤鱼当每按一次sc键,鲤鱼锁存器将会按锁存的顺序读取锁存的数据并显示该数据时第几次锁存下的。草鱼草鱼 第3章草鱼实验项目单元模块电路设计草鱼 3.1草鱼消抖模块设计草鱼 3.1.1草鱼草鱼模块描述草鱼 分频器的功能是提供计数器的时钟信号以及数码管动态扫描部分的时钟信号。草鱼由于系统的外部时钟为48Mhz,鲤鱼而根据跑表的精度要求0.01s,鲤鱼计数器的时钟信号应为100hz,鲤鱼因此需要对48MHZ的时钟信号进行分频,鲤鱼得到100hz的信号,鲤鱼作为时钟的计数时钟。草鱼根据显示部分的原理,鲤鱼需要1khz的扫描控制信号,鲤鱼因此在分频器部分还要产生1khz的信号。草鱼草鱼 分频器的设计采用基于计数器的方法来实现。草鱼在本设计中,鲤鱼在程序的第一个进程中设计了一个24000进制的计数器,鲤鱼当计数24000个时钟,鲤鱼分频输出信号clk1kHz取反,鲤鱼这样就可以实现对输入时钟的48000次分频,鲤鱼从而得到1kHz的输出信号。草鱼在第二个进程中采用同样的方法对已经得到的1khz的信号进行10分频得到100hz的输出信号clk100hz。草鱼分频模块如图二所示:pork草鱼 草鱼 clkin为48Mhz的外部时钟输入端草鱼 clk1khz为输出1khz的时钟输出端草鱼 clk100hz为输出为100hz的时钟输出端草鱼 草鱼 该模块的VHDL源程序如下:pork草鱼 library草鱼IEEE;pork草鱼 use草鱼IEEE.STD_LOGIC_1164.ALL;pork草鱼 entity草鱼div草鱼is草鱼 port(草鱼草鱼clkin:草鱼in草鱼std_logic;pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼clk1khz:草鱼out草鱼std_logic;pork草鱼 草鱼草鱼clk100hz:草鱼out草鱼std_logic);pork草鱼 31 end草鱼div;pork草鱼 草鱼 architecture草鱼Behavioral草鱼of草鱼div草鱼is草鱼 signal草鱼cnter0:草鱼integer草鱼range草鱼0草鱼to草鱼23999草鱼:=0;pork草鱼 草鱼signal草鱼cnter1:草鱼integer草鱼range草鱼0草鱼to草鱼4草鱼:=0;pork草鱼 草鱼signal草鱼clk100hz_TMP,clk1khz_TMP:草鱼std_logic:='0';pork草鱼 begin草鱼 process(clkin)草鱼is草鱼草鱼 begin草鱼 草鱼草鱼草鱼草鱼if草鱼clkin'event草鱼and草鱼clkin='1'草鱼then草鱼 草鱼草鱼草鱼草鱼草鱼if草鱼cnter0草鱼=草鱼23999草鱼then草鱼 草鱼草鱼草鱼草鱼草鱼cnter0草鱼<=0;pork草鱼 草鱼草鱼clk1khz_TMP草鱼<=not草鱼clk1khz_TMP;pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼else草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼cnter0草鱼<=cnter0+1;pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼end草鱼if;pork草鱼 草鱼草鱼草鱼草鱼end草鱼if;pork草鱼 end草鱼process;pork草鱼草鱼 clk1khz<=clk1khz_TMP;pork草鱼 process(clk1khz_TMP)草鱼is草鱼 begin草鱼 草鱼草鱼草鱼草鱼if草鱼clk1khz_TMP'event草鱼and草鱼clk1khz_TMP草鱼=草鱼'1'草鱼then草鱼 草鱼草鱼草鱼草鱼草鱼if草鱼cnter1=草鱼4草鱼then草鱼草鱼 草鱼草鱼草鱼草鱼草鱼cnter1<=0;pork草鱼 草鱼草鱼clk100hz_TMP<=草鱼not草鱼clk100hz_TMP;pork草鱼 草鱼草鱼else草鱼cnter1<=草鱼cnter1草鱼+1;pork草鱼 草鱼草鱼end草鱼if;pork草鱼 草鱼end草鱼if;pork草鱼 end草鱼process;pork草鱼 clk100hz<=草鱼clk100hz_TMP;pork草鱼 end草鱼Behavioral;pork草鱼 4.1.2草鱼模块仿真草鱼 仿真文件草鱼 LIBRARY草鱼ieee;pork草鱼 USE草鱼ieee.std_logic_1164.ALL;pork草鱼 ENTITY草鱼test_div草鱼IS草鱼 END草鱼test_div;pork草鱼草鱼 ARCHITECTURE草鱼behavior草鱼OF草鱼test_div草鱼IS草鱼草鱼 31 草鱼草鱼草鱼草鱼COMPONENT草鱼div草鱼 草鱼草鱼草鱼草鱼PORT(草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼clkin草鱼:草鱼IN草鱼草鱼std_logic;pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼clk1khz草鱼:草鱼OUT草鱼草鱼std_logic;pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼clk100hz草鱼:草鱼OUT草鱼草鱼std_logic草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼);pork草鱼 草鱼草鱼草鱼草鱼END草鱼COMPONENT;pork草鱼 草鱼草鱼草鱼--Inputs草鱼 草鱼草鱼草鱼signal草鱼clkin草鱼:草鱼std_logic草鱼:=草鱼'0';pork草鱼 草鱼 草鱼--Outputs草鱼 草鱼草鱼草鱼signal草鱼clk1khz草鱼:草鱼std_logic;pork草鱼 草鱼草鱼草鱼signal草鱼clk100hz草鱼:草鱼std_logic;pork草鱼 草鱼 草鱼草鱼草鱼--草鱼Clock草鱼period草鱼definitions草鱼 草鱼草鱼草鱼constant草鱼clkin_period草鱼:草鱼time草鱼:=草鱼10草鱼ns;pork草鱼 草鱼草鱼草鱼constant草鱼clk1khz_period草鱼:草鱼time草鱼:=草鱼10草鱼ns;pork草鱼 草鱼草鱼草鱼constant草鱼clk100hz_period草鱼:草鱼time草鱼:=草鱼10草鱼ns;pork草鱼 BEGIN草鱼 --草鱼Instantiate草鱼the草鱼Unit草鱼Under草鱼Test草鱼(UUT)草鱼 草鱼草鱼草鱼uut:草鱼div草鱼PORT草鱼MAP草鱼(草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼clkin草鱼=>草鱼clkin,草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼clk1khz草鱼=>草鱼clk1khz,草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼clk100hz草鱼=>草鱼clk100hz草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼);pork草鱼 草鱼草鱼草鱼--草鱼Clock草鱼process草鱼definitions草鱼 草鱼草鱼草鱼clkin_process草鱼:process草鱼 草鱼草鱼草鱼begin草鱼 clkin草鱼<=草鱼'0';pork草鱼 wait草鱼for草鱼clkin_period/2;pork草鱼 clkin草鱼<=草鱼'1';pork草鱼 wait草鱼for草鱼clkin_period/2;pork草鱼 草鱼草鱼草鱼end草鱼process;pork草鱼 草鱼草鱼 END;pork草鱼 仿真波形:pork草鱼 草鱼 31 波形分析:pork由仿真波形可以看出clk100hz波形的一个周期等于clk1khz的十倍,鲤鱼实现了分频器的分频功能。草鱼草鱼 3.2计数器模块的设计草鱼 3.2.1草鱼模块描述草鱼 由于要求秒表显示为六位,鲤鱼每一位可以视为一个一位计数器,鲤鱼则跑表的计数过程可由6个一位计数器级联完成,鲤鱼其中包括十进制的计数器4个,鲤鱼六进制的计数器2个。草鱼其中rst是清零端,鲤鱼clk100hz是计数器信号输入端,鲤鱼carryin是计数器的使能端,鲤鱼高电平时计数,鲤鱼低电平时停止计数且保持计数不变。草鱼Carryout是计数结果的输出,鲤鱼countout是进位端。草鱼下图为计数器的同步级联原理。草鱼草鱼 草鱼 十进制计数器的VHDL源程序如下:pork草鱼 library草鱼IEEE;pork草鱼 use草鱼IEEE.STD_LOGIC_1164.ALL;pork草鱼 use草鱼IEEE.STD_LOGIC_ARITH.ALL;pork草鱼 use草鱼IEEE.STD_LOGIC_UNSIGNED.ALL;pork草鱼 entity草鱼COUNTER1草鱼is草鱼 port(草鱼草鱼res,clk100hz:草鱼in草鱼std_logic;pork草鱼 carryin:草鱼in草鱼std_logic;pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼carryout:草鱼out草鱼std_logic;pork草鱼 草鱼草鱼counterout:草鱼out草鱼std_logic_vector(3草鱼downto草鱼0));pork草鱼 end草鱼COUNTER1;pork草鱼 architecture草鱼Behavioral草鱼of草鱼COUNTER1草鱼is草鱼 signal草鱼count:std_logic_vector(3草鱼downto草鱼0):="0000";pork草鱼 草鱼 begin草鱼 process(res,clk100hz)草鱼 begin草鱼 if草鱼res='1'草鱼then草鱼 草鱼草鱼草鱼count<="0000";pork草鱼 elsif草鱼clk100hz'event草鱼and草鱼clk100hz='1'草鱼then草鱼 if草鱼carryin='1'then草鱼 草鱼草鱼草鱼if草鱼count草鱼<"1001"草鱼then草鱼 count草鱼<=count+1;pork草鱼 else草鱼草鱼 count<="0000";pork草鱼 end草鱼if;pork草鱼 草鱼草鱼草鱼else草鱼null;pork草鱼 end草鱼if;pork草鱼 31 end草鱼if;pork草鱼 end草鱼process;pork草鱼 counterout<=count;pork草鱼 carryout<='1'when草鱼carryin='1'and草鱼count="1001"else'0';pork草鱼 草鱼 end草鱼Behavioral;pork草鱼 六进制计数器的VHDL源程序如下:pork草鱼 library草鱼IEEE;pork草鱼 use草鱼IEEE.STD_LOGIC_1164.ALL;pork草鱼 use草鱼IEEE.STD_LOGIC_ARITH.ALL;pork草鱼 use草鱼IEEE.STD_LOGIC_UNSIGNED.ALL;pork草鱼 entity草鱼COUNTER6草鱼is草鱼 port(草鱼草鱼res,clk100hz:草鱼in草鱼std_logic;pork草鱼 carryin:草鱼in草鱼std_logic;pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼carryout:草鱼out草鱼std_logic;pork草鱼 草鱼草鱼counterout:草鱼out草鱼std_logic_vector(3草鱼downto草鱼0));pork草鱼 end草鱼COUNTER6;pork草鱼 architecture草鱼Behavioral草鱼of草鱼COUNTER6草鱼is草鱼 signal草鱼count:std_logic_vector(3草鱼downto草鱼0):="0000";pork草鱼 begin草鱼 process(res,clk100hz)草鱼 begin草鱼 if草鱼res='1'草鱼then草鱼 草鱼草鱼草鱼count<="0000";pork草鱼 elsif草鱼clk100hz'event草鱼and草鱼clk100hz='1'草鱼then草鱼 if草鱼carryin='1'then草鱼 草鱼草鱼草鱼if草鱼count草鱼<"0101"草鱼then草鱼 count草鱼<=count+1;pork草鱼 else草鱼草鱼 count<="0000";pork草鱼 end草鱼if;pork草鱼 草鱼草鱼草鱼else草鱼null;pork草鱼 end草鱼if;pork草鱼 end草鱼if;pork草鱼 end草鱼process;pork草鱼 counterout<=count;pork草鱼 carryout<='1'when草鱼carryin='1'and草鱼count="0101"else'0';pork草鱼 end草鱼Behavioral;pork草鱼 31 仿真程序:pork草鱼 LIBRARY草鱼ieee;pork草鱼 USE草鱼ieee.std_logic_1164.ALL;pork草鱼草鱼 ENTITY草鱼test_counter1草鱼IS草鱼 END草鱼test_counter1;pork草鱼 ARCHITECTURE草鱼behavior草鱼OF草鱼test_counter1草鱼IS草鱼草鱼 草鱼草鱼草鱼草鱼--草鱼Component草鱼Declaration草鱼for草鱼the草鱼Unit草鱼Under草鱼Test草鱼(UUT)草鱼 草鱼草鱼草鱼草鱼COMPONENT草鱼COUNTER1草鱼 草鱼草鱼草鱼草鱼PORT(草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼res草鱼:草鱼IN草鱼草鱼std_logic;pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼clk100hz草鱼:草鱼IN草鱼草鱼std_logic;pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼carryin草鱼:草鱼IN草鱼草鱼std_logic;pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼carryout草鱼:草鱼OUT草鱼草鱼std_logic;pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼counterout草鱼:草鱼OUT草鱼草鱼std_logic_vector(3草鱼downto草鱼0)草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼);pork草鱼 草鱼草鱼草鱼草鱼END草鱼COMPONENT;pork草鱼 草鱼草鱼草鱼--Inputs草鱼 草鱼草鱼草鱼signal草鱼res草鱼:草鱼std_logic草鱼:=草鱼'0';pork草鱼 草鱼草鱼草鱼signal草鱼clk100hz草鱼:草鱼std_logic草鱼:=草鱼'0';pork草鱼 草鱼草鱼草鱼signal草鱼carryin草鱼:草鱼std_logic草鱼:=草鱼'0';pork草鱼 草鱼--Outputs草鱼 草鱼草鱼草鱼signal草鱼carryout草鱼:草鱼std_logic;pork草鱼 草鱼草鱼草鱼signal草鱼counterout草鱼:草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 草鱼草鱼草鱼--草鱼Clock草鱼period草鱼definitions草鱼 草鱼草鱼草鱼constant草鱼clk100hz_period草鱼:草鱼time草鱼:=草鱼10草鱼ns;pork草鱼 BEGIN草鱼草鱼 --草鱼Instantiate草鱼the草鱼Unit草鱼Under草鱼Test草鱼(UUT)草鱼 草鱼草鱼草鱼uut:草鱼COUNTER1草鱼PORT草鱼MAP草鱼(草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼res草鱼=>草鱼res,草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼clk100hz草鱼=>草鱼clk100hz,草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼carryin草鱼=>草鱼carryin,草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼carryout草鱼=>草鱼carryout,草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼counterout草鱼=>草鱼counterout草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼);pork草鱼 草鱼草鱼草鱼--草鱼Clock草鱼process草鱼definitions草鱼 草鱼草鱼草鱼clk100hz_process草鱼:process草鱼 草鱼草鱼草鱼begin草鱼 clk100hz草鱼<=草鱼'0';pork草鱼 31 wait草鱼for草鱼clk100hz_period/2;pork草鱼 clk100hz草鱼<=草鱼'1';pork草鱼 wait草鱼for草鱼clk100hz_period/2;pork草鱼 草鱼草鱼草鱼end草鱼process;pork草鱼 草鱼草鱼草鱼--草鱼Stimulus草鱼process草鱼 草鱼草鱼草鱼stim_proc:草鱼process草鱼 草鱼草鱼草鱼begin草鱼 草鱼草鱼草鱼草鱼草鱼草鱼res<='0';pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼carryin<='1';pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼--草鱼hold草鱼reset草鱼state草鱼for草鱼100草鱼ns.草鱼 草鱼草鱼草鱼草鱼草鱼草鱼wait草鱼for草鱼100草鱼ns;pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼wait草鱼for草鱼clk100hz_period*10;pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼--草鱼insert草鱼stimulus草鱼here草鱼草鱼 草鱼草鱼草鱼草鱼草鱼草鱼wait;pork草鱼 草鱼草鱼草鱼end草鱼process;pork草鱼 END;pork草鱼 仿真波形:pork草鱼 草鱼 波形分析:pork由波形可以看出counterout每遇到一个适时钟的上升沿将会加一,鲤鱼carryout在遇到第十个上升沿是会出现一个上升沿,鲤鱼就会产生进位输出,鲤鱼仿真结果与预期结果一致。草鱼草鱼 3.3显示模块设计草鱼 3.3.1模块描述草鱼 草鱼 本设计中7只数码管采用动态扫描的连接方式。草鱼硬件电路上的每个数码管abcdefg分别连在一起作为段选信号。草鱼根据硬件电路的连接方式,鲤鱼如果希望七个数码管显示计数器输出的数据,鲤鱼就必须是的7个选通信号分别被单独选通,鲤鱼所以我们设计了sel输出端作为位选信号的输出端。草鱼LED为7段数码管的段选信号的输出端。草鱼草鱼 counterout1—counterout7为计数器实时计数显示的输入端口,鲤鱼Countout1—Countout7为锁存输出信号显示的输入端。草鱼e为选择输入端,鲤鱼当e为高电平时,鲤鱼显示模块的将显示counterout1—counterout7的信号。草鱼草鱼 当e为低电平时,鲤鱼显示模块将显示Countout1—Countout7的信号。草鱼草鱼 Clk1khz为时钟信号的输入端。草鱼高频率的时钟可以保证人眼很难分辨出数码管的独立显示。草鱼草鱼 G为低电平有效,鲤鱼根据硬件电路,鲤鱼需设置一个译码势能信号。草鱼草鱼 模块的源程序:pork草鱼 library草鱼IEEE;pork草鱼 31 use草鱼IEEE.STD_LOGIC_1164.ALL;pork草鱼 use草鱼IEEE.STD_LOGIC_ARITH.ALL;pork草鱼 use草鱼IEEE.STD_LOGIC_UNSIGNED.ALL;pork草鱼 entity草鱼DISPLAY草鱼is草鱼 port(草鱼草鱼counterout1:草鱼in草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 草鱼counterout2:草鱼in草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 草鱼counterout3:草鱼in草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 草鱼counterout4:草鱼in草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 草鱼counterout5:草鱼in草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 草鱼counterout6:草鱼in草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 草鱼counterout7:草鱼in草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 草鱼Countout1:草鱼in草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 草鱼Countout2:草鱼in草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 草鱼Countout3:草鱼in草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 草鱼Countout4:草鱼in草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 草鱼Countout5:草鱼in草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 草鱼Countout6:草鱼in草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 草鱼Countout7:草鱼in草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 草鱼led:草鱼out草鱼std_logic_vector(6草鱼downto草鱼0);pork草鱼 草鱼G:草鱼out草鱼std_logic;pork草鱼 草鱼clk1khz:草鱼in草鱼std_logic;pork草鱼 草鱼e草鱼:草鱼in草鱼std_logic;pork草鱼 草鱼sel:草鱼out草鱼std_logic_vector(2草鱼downto草鱼0));pork草鱼 end草鱼DISPLAY;pork草鱼 architecture草鱼Behavioral草鱼of草鱼DISPLAY草鱼is草鱼 signal草鱼cnt草鱼:草鱼std_logic_vector(2草鱼downto草鱼0):="000";pork草鱼 草鱼草鱼signal草鱼data草鱼:草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 begin草鱼 草鱼草鱼scan草鱼:草鱼process(clk1khz)草鱼 草鱼草鱼begin草鱼 草鱼草鱼草鱼草鱼草鱼if草鱼rising_edge(clk1khz)草鱼then草鱼 草鱼草鱼草鱼草鱼草鱼草鱼if草鱼cnt草鱼=草鱼"101"草鱼then草鱼 cnt<=草鱼"000";pork草鱼 else草鱼 cnt<=草鱼cnt草鱼+1;pork草鱼 end草鱼if;pork草鱼 草鱼草鱼end草鱼if;pork草鱼 草鱼草鱼end草鱼process;pork草鱼 31 --草鱼if草鱼e='1';pork草鱼 muxe草鱼:草鱼process(counterout1,counterout2,counterout3,counterout4,counterout5,counterout6,counterout7,Countout1,Countout2,Countout3,Countout4,Countout5,Countout6,Countout7,cnt)草鱼 草鱼草鱼草鱼begin草鱼 if草鱼e='1'草鱼then草鱼 case草鱼cnt草鱼is草鱼 when草鱼"000"草鱼=>草鱼data<=草鱼counterout1;pork草鱼 when草鱼"001"草鱼=>草鱼data<=草鱼counterout2;pork草鱼 when草鱼"010"草鱼=>草鱼data<=草鱼counterout3;pork草鱼 when草鱼"011"草鱼=>草鱼data<=草鱼counterout4;pork草鱼 when草鱼"100"草鱼=>草鱼data<=草鱼counterout5;pork草鱼 when草鱼"101"草鱼=>草鱼data<=草鱼counterout6;pork草鱼 when草鱼others草鱼=>草鱼data<=草鱼counterout7;pork草鱼 end草鱼case;pork草鱼 ELSE草鱼 case草鱼cnt草鱼is草鱼 when草鱼"000"草鱼=>草鱼data<=草鱼Countout1;pork草鱼 when草鱼"001"草鱼=>草鱼data<=草鱼Countout2;pork草鱼 when草鱼"010"草鱼=>草鱼data<=草鱼Countout3;pork草鱼 when草鱼"011"草鱼=>草鱼data<=草鱼Countout4;pork草鱼 when草鱼"100"草鱼=>草鱼data<=草鱼Countout5;pork草鱼 when草鱼"101"草鱼=>草鱼data<=草鱼Countout6;pork草鱼 when草鱼others=>草鱼data<=草鱼Countout7;pork草鱼 end草鱼case;pork草鱼 end草鱼if;pork草鱼 草鱼草鱼草鱼end草鱼process;pork草鱼 bcd2led草鱼:process(data)草鱼 草鱼草鱼草鱼begin草鱼 草鱼草鱼草鱼led<=草鱼"1111111";pork草鱼 草鱼草鱼草鱼草鱼草鱼case草鱼data草鱼is草鱼草鱼 草鱼草鱼草鱼when草鱼"0000"草鱼=>草鱼led草鱼<=草鱼"1000000";pork草鱼 when草鱼"0001"草鱼=>草鱼led草鱼<=草鱼"1111001";pork草鱼 when草鱼"0010"草鱼=>草鱼led草鱼<=草鱼"0100100";pork草鱼 when草鱼"0011"草鱼=>草鱼led草鱼<=草鱼"0110000";pork草鱼 when草鱼"0100"草鱼=>草鱼led草鱼<=草鱼"0011001";pork草鱼 when草鱼"0101"草鱼=>草鱼led草鱼<=草鱼"0010010";pork草鱼 when草鱼"0110"草鱼=>草鱼led草鱼<=草鱼"0000010";pork草鱼 31 when草鱼"0111"草鱼=>草鱼led草鱼<=草鱼"1111000";pork草鱼 when草鱼"1000"草鱼=>草鱼led草鱼<=草鱼"0000000";pork草鱼 when草鱼"1001"草鱼=>草鱼led草鱼<=草鱼"0010000";pork草鱼 when草鱼others草鱼=>草鱼null;pork草鱼 end草鱼case;pork草鱼 end草鱼process;pork草鱼 G<=草鱼'0';pork草鱼 sel草鱼<=草鱼cnt;pork草鱼 end草鱼Behavioral;pork草鱼 3.3.2模块仿真草鱼 仿真程序:pork(没有加入锁存触发信号的仿真)草鱼 LIBRARY草鱼ieee;pork草鱼 USE草鱼ieee.std_logic_1164.ALL;pork草鱼 ENTITY草鱼test_display草鱼IS草鱼 END草鱼test_display;pork草鱼 ARCHITECTURE草鱼behavior草鱼OF草鱼test_display草鱼IS草鱼草鱼 草鱼草鱼草鱼草鱼--草鱼Component草鱼Declaration草鱼for草鱼the草鱼Unit草鱼Under草鱼Test草鱼(UUT)草鱼 草鱼草鱼草鱼草鱼COMPONENT草鱼DISPLAY草鱼 草鱼草鱼草鱼草鱼PORT(草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼counterout1草鱼:草鱼IN草鱼草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼counterout2草鱼:草鱼IN草鱼草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼counterout3草鱼:草鱼IN草鱼草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼counterout4草鱼:草鱼IN草鱼草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼counterout5草鱼:草鱼IN草鱼草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼counterout6草鱼:草鱼IN草鱼草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼Countout1草鱼:草鱼IN草鱼草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼Countout2草鱼:草鱼IN草鱼草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼Countout3草鱼:草鱼IN草鱼草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼Countout4草鱼:草鱼IN草鱼草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼Countout5草鱼:草鱼IN草鱼草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼Countout6草鱼:草鱼IN草鱼草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼led草鱼:草鱼OUT草鱼草鱼std_logic_vector(6草鱼downto草鱼0);pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼G草鱼:草鱼OUT草鱼草鱼std_logic;pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼clk1khz草鱼:草鱼IN草鱼草鱼std_logic;pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼e草鱼:草鱼IN草鱼草鱼std_logic;pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼sel草鱼:草鱼OUT草鱼草鱼std_logic_vector(2草鱼downto草鱼0)草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼);pork草鱼 草鱼草鱼草鱼草鱼END草鱼COMPONENT;pork草鱼 31 草鱼草鱼草鱼--Inputs草鱼 草鱼草鱼草鱼signal草鱼counterout1草鱼:草鱼std_logic_vector(3草鱼downto草鱼0)草鱼:=草鱼(others草鱼=>草鱼'0');pork草鱼 草鱼草鱼草鱼signal草鱼counterout2草鱼:草鱼std_logic_vector(3草鱼downto草鱼0)草鱼:=草鱼(others草鱼=>草鱼'0');pork草鱼 草鱼草鱼草鱼signal草鱼counterout3草鱼:草鱼std_logic_vector(3草鱼downto草鱼0)草鱼:=草鱼(others草鱼=>草鱼'0');pork草鱼 草鱼草鱼草鱼signal草鱼counterout4草鱼:草鱼std_logic_vector(3草鱼downto草鱼0)草鱼:=草鱼(others草鱼=>草鱼'0');pork草鱼 草鱼草鱼草鱼signal草鱼counterout5草鱼:草鱼std_logic_vector(3草鱼downto草鱼0)草鱼:=草鱼(others草鱼=>草鱼'0');pork草鱼 草鱼草鱼草鱼signal草鱼counterout6草鱼:草鱼std_logic_vector(3草鱼downto草鱼0)草鱼:=草鱼(others草鱼=>草鱼'0');pork草鱼 草鱼草鱼草鱼signal草鱼Countout1草鱼:草鱼std_logic_vector(3草鱼downto草鱼0)草鱼:=草鱼(others草鱼=>草鱼'0');pork草鱼 草鱼草鱼草鱼signal草鱼Countout2草鱼:草鱼std_logic_vector(3草鱼downto草鱼0)草鱼:=草鱼(others草鱼=>草鱼'0');pork草鱼 草鱼草鱼草鱼signal草鱼Countout3草鱼:草鱼std_logic_vector(3草鱼downto草鱼0)草鱼:=草鱼(others草鱼=>草鱼'0');pork草鱼 草鱼草鱼草鱼signal草鱼Countout4草鱼:草鱼std_logic_vector(3草鱼downto草鱼0)草鱼:=草鱼(others草鱼=>草鱼'0');pork草鱼 草鱼草鱼草鱼signal草鱼Countout5草鱼:草鱼std_logic_vector(3草鱼downto草鱼0)草鱼:=草鱼(others草鱼=>草鱼'0');pork草鱼 草鱼草鱼草鱼signal草鱼Countout6草鱼:草鱼std_logic_vector(3草鱼downto草鱼0)草鱼:=草鱼(others草鱼=>草鱼'0');pork草鱼 草鱼草鱼草鱼signal草鱼clk1khz草鱼:草鱼std_logic草鱼:=草鱼'0';pork草鱼 草鱼草鱼草鱼signal草鱼e草鱼:草鱼std_logic草鱼:=草鱼'0';pork草鱼 草鱼--Outputs草鱼 草鱼草鱼草鱼signal草鱼led草鱼:草鱼std_logic_vector(6草鱼downto草鱼0);pork草鱼 草鱼草鱼草鱼signal草鱼G草鱼:草鱼std_logic;pork草鱼 草鱼草鱼草鱼signal草鱼sel草鱼:草鱼std_logic_vector(2草鱼downto草鱼0);pork草鱼 草鱼草鱼草鱼--草鱼Clock草鱼period草鱼definitions草鱼 草鱼草鱼草鱼constant草鱼clk1khz_period草鱼:草鱼time草鱼:=草鱼10草鱼ns;pork草鱼 BEGIN草鱼 --草鱼Instantiate草鱼the草鱼Unit草鱼Under草鱼Test草鱼(UUT)草鱼 草鱼草鱼草鱼uut:草鱼DISPLAY草鱼PORT草鱼MAP草鱼(草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼counterout1草鱼=>草鱼counterout1,草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼counterout2草鱼=>草鱼counterout2,草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼counterout3草鱼=>草鱼counterout3,草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼counterout4草鱼=>草鱼counterout4,草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼counterout5草鱼=>草鱼counterout5,草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼counterout6草鱼=>草鱼counterout6,草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼Countout1草鱼=>草鱼Countout1,草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼Countout2草鱼=>草鱼Countout2,草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼Countout3草鱼=>草鱼Countout3,草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼Countout4草鱼=>草鱼Countout4,草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼Countout5草鱼=>草鱼Countout5,草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼Countout6草鱼=>草鱼Countout6,草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼led草鱼=>草鱼led,草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼G草鱼=>草鱼G,草鱼 31 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼clk1khz草鱼=>草鱼clk1khz,草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼e草鱼=>草鱼e,草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼sel草鱼=>草鱼sel草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼);pork草鱼 草鱼草鱼草鱼--草鱼Clock草鱼process草鱼definitions草鱼 草鱼草鱼草鱼clk1khz_process草鱼:process草鱼 草鱼草鱼草鱼begin草鱼 clk1khz草鱼<=草鱼'0';pork草鱼 wait草鱼for草鱼clk1khz_period/2;pork草鱼 clk1khz草鱼<=草鱼'1';pork草鱼 wait草鱼for草鱼clk1khz_period/2;pork草鱼 草鱼草鱼草鱼end草鱼process;pork草鱼 草鱼草鱼草鱼--草鱼Stimulus草鱼process草鱼 草鱼草鱼草鱼stim_proc:草鱼process草鱼 草鱼草鱼草鱼begin草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼counterout1草鱼<=草鱼"0001";pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼counterout2草鱼<=草鱼"0010";pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼counterout3草鱼<=草鱼"0011";pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼counterout4草鱼<=草鱼"0001";pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼counterout5草鱼<=草鱼"0010";pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼counterout6草鱼<=草鱼"0011";pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼e<='1';pork草鱼 wait草鱼for草鱼100草鱼ns;pork草鱼 草鱼Countout1草鱼<=草鱼"0010";pork草鱼 草鱼Countout2草鱼<=草鱼"0011";pork草鱼 草鱼Countout3草鱼<=草鱼"0001";pork草鱼 草鱼Countout4草鱼<=草鱼"0010";pork草鱼 草鱼Countout5草鱼<=草鱼"0011";pork草鱼 草鱼Countout6草鱼<=草鱼"0001";pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼e<='0';pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼wait草鱼for草鱼100草鱼ns;pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼wait草鱼for草鱼100草鱼ns;pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼wait草鱼for草鱼clk1khz_period*10;pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼wait;pork草鱼 草鱼草鱼草鱼end草鱼process;pork草鱼 END;pork草鱼 仿真波形:pork31 草鱼 波形分析:pork从波形可以看出sel从000~101可以实现六个数码管的选通。草鱼按此显示原则草鱼 case草鱼data草鱼is草鱼草鱼 草鱼草鱼草鱼when草鱼"0000"草鱼=>草鱼led草鱼<=草鱼"1000000";pork草鱼 when草鱼"0001"草鱼=>草鱼led草鱼<=草鱼"1111001";pork草鱼 when草鱼"0010"草鱼=>草鱼led草鱼<=草鱼"0100100";pork草鱼 when草鱼"0011"草鱼=>草鱼led草鱼<=草鱼"0110000";pork草鱼 when草鱼"0100"草鱼=>草鱼led草鱼<=草鱼"0011001";pork草鱼 when草鱼"0101"草鱼=>草鱼led草鱼<=草鱼"0010010";pork草鱼 when草鱼"0110"草鱼=>草鱼led草鱼<=草鱼"0000010";pork草鱼 when草鱼"0111"草鱼=>草鱼led草鱼<=草鱼"1111000";pork草鱼 when草鱼"1000"草鱼=>草鱼led草鱼<=草鱼"0000000";pork草鱼 when草鱼"1001"草鱼=>草鱼led草鱼<=草鱼"0010000";pork草鱼 当e为高电平时,鲤鱼led的段选信号为counterout1—counterout7的译码输出,鲤鱼当e为低电平时,鲤鱼led的段选信号为Countout1—Countout7的译码输出。草鱼草鱼 3.4锁存模块的设计草鱼 3.4.1模块描述草鱼 overin为锁存器的锁存或者读取的出发端。草鱼直接与六进制计数器的输出端连接,鲤鱼接收触发信号。草鱼草鱼 Lachin为锁存/读取的选择端,鲤鱼当lachin为高电平时,鲤鱼锁存器遇到触发(例overin=0010)就会锁存一组数,鲤鱼也就是将numin1~numin7的数据存下来,鲤鱼当lachin为低电平的时候,鲤鱼当遇到触发信号(overin=0010)时,鲤鱼内部锁存的数据(overin=0010时锁存的数据)就会输出到numout1~numout7,鲤鱼连接到显示模块就会显示锁存的数据。草鱼草鱼 numin1~numin7为锁存的输入端,鲤鱼numin1~numin6连接的是计数器的六个输出端。草鱼numin7连接的是六进制计数器的输出端,鲤鱼用于锁存触发信号,鲤鱼以便在后面用作显示锁存数据的顺序。草鱼草鱼 Numout1~numout7为锁存的输出端。草鱼草鱼 模块程序:pork草鱼 library草鱼IEEE;pork草鱼 use草鱼IEEE.STD_LOGIC_1164.ALL;pork草鱼 use草鱼IEEE.STD_LOGIC_ARITH.ALL;pork草鱼 use草鱼IEEE.STD_LOGIC_UNSIGNED.ALL;pork草鱼 entity草鱼SUOCUN草鱼is草鱼 草鱼草鱼port(草鱼草鱼lachin草鱼:草鱼IN草鱼STD_LOGIC;pork草鱼 overin草鱼:草鱼IN草鱼STD_LOGIC_VECTOR草鱼(3草鱼downto草鱼0);pork草鱼 numin1草鱼:草鱼in草鱼草鱼STD_LOGIC_VECTOR草鱼(3草鱼downto草鱼0);pork草鱼 31 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼numin2草鱼:草鱼in草鱼草鱼STD_LOGIC_VECTOR草鱼(3草鱼downto草鱼0);pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼numin3草鱼:草鱼in草鱼草鱼STD_LOGIC_VECTOR草鱼(3草鱼downto草鱼0);pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼numin4草鱼:草鱼in草鱼草鱼STD_LOGIC_VECTOR草鱼(3草鱼downto草鱼0);pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼numin5草鱼:草鱼in草鱼草鱼STD_LOGIC_VECTOR草鱼(3草鱼downto草鱼0);pork草鱼 草鱼草鱼numin6草鱼:草鱼in草鱼草鱼STD_LOGIC_VECTOR草鱼(3草鱼downto草鱼0);pork草鱼 草鱼草鱼numin7草鱼:草鱼in草鱼草鱼STD_LOGIC_VECTOR草鱼(3草鱼downto草鱼0);pork草鱼 numout1草鱼:草鱼out草鱼草鱼STD_LOGIC_VECTOR草鱼(3草鱼downto草鱼0);pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼numout2草鱼:草鱼out草鱼草鱼STD_LOGIC_VECTOR草鱼(3草鱼downto草鱼0);pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼numout3草鱼:草鱼out草鱼草鱼STD_LOGIC_VECTOR草鱼(3草鱼downto草鱼0);pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼numout4草鱼:草鱼out草鱼草鱼STD_LOGIC_VECTOR草鱼(3草鱼downto草鱼0);pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼numout5草鱼:草鱼out草鱼草鱼STD_LOGIC_VECTOR草鱼(3草鱼downto草鱼0);pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼numout6草鱼:草鱼out草鱼草鱼STD_LOGIC_VECTOR草鱼(3草鱼downto草鱼0);pork草鱼 草鱼草鱼numout7草鱼:草鱼out草鱼草鱼STD_LOGIC_VECTOR草鱼(3草鱼downto草鱼0));pork草鱼 草鱼 end草鱼SUOCUN;pork草鱼 architecture草鱼Behavioral草鱼of草鱼SUOCUN草鱼is草鱼 signal草鱼data1,data2,data3,data4,data5,data6,data7:STD_LOGIC_VECTOR草鱼(3草鱼downto草鱼0);pork草鱼草鱼 signal草鱼data1_1,data2_1,data3_1,data4_1,data5_1,data6_1,data7_1:STD_LOGIC_VECTOR草鱼(3草鱼downto草鱼0);pork草鱼 signal草鱼data1_2,data2_2,data3_2,data4_2,data5_2,data6_2,data7_2:STD_LOGIC_VECTOR草鱼(3草鱼downto草鱼0);pork草鱼草鱼草鱼 signal草鱼data1_3,data2_3,data3_3,data4_3,data5_3,data6_3,data7_3:STD_LOGIC_VECTOR草鱼(3草鱼downto草鱼0);pork草鱼 signal草鱼data1_4,data2_4,data3_4,data4_4,data5_4,data6_4,data7_4:STD_LOGIC_VECTOR草鱼(3草鱼downto草鱼0);pork草鱼 signal草鱼data1_5,data2_5,data3_5,data4_5,data5_5,data6_5,data7_5:STD_LOGIC_VECTOR草鱼(3草鱼downto草鱼0);pork草鱼 signal草鱼data1_6,data2_6,data3_6,data4_6,data5_6,data6_6,data7_6:STD_LOGIC_VECTOR草鱼(3草鱼downto草鱼0);pork草鱼 草鱼 begin草鱼 process(overin,lachin)草鱼 begin草鱼 if草鱼lachin='1'草鱼then草鱼 草鱼草鱼草鱼case草鱼overin草鱼草鱼is草鱼 草鱼草鱼when草鱼"0001"草鱼=>草鱼data1<=草鱼numin1;pork草鱼 草鱼草鱼data2<=草鱼numin2;pork草鱼 草鱼草鱼data3<=草鱼numin3;pork草鱼 31 草鱼草鱼data4<=草鱼numin4;pork草鱼 草鱼草鱼data5<=草鱼numin5;pork草鱼 草鱼草鱼data6<=草鱼numin6;pork草鱼 草鱼草鱼data7<=草鱼overin;pork草鱼 草鱼草鱼when草鱼"0010"草鱼=>草鱼data1_1<=草鱼numin1;pork草鱼 草鱼草鱼data2_1<=草鱼numin2;pork草鱼 草鱼草鱼data3_1<=草鱼numin3;pork草鱼 草鱼草鱼data4_1<=草鱼numin4;pork草鱼 草鱼草鱼data5_1<=草鱼numin5;pork草鱼 草鱼草鱼data6_1<=草鱼numin6;pork草鱼 草鱼草鱼data7_1<=草鱼overin;pork草鱼 草鱼草鱼when草鱼"0011"草鱼=>草鱼data1_2<=草鱼numin1;pork草鱼 草鱼草鱼data2_2<=草鱼numin2;pork草鱼 草鱼草鱼data3_2<=草鱼numin3;pork草鱼 草鱼草鱼data4_2<=草鱼numin4;pork草鱼 草鱼草鱼data5_2<=草鱼numin5;pork草鱼 草鱼草鱼data6_2<=草鱼numin6;pork草鱼 草鱼草鱼data7_2<=草鱼overin;pork草鱼 草鱼草鱼when草鱼"0100"草鱼=>草鱼data1_3<=草鱼numin1;pork草鱼 草鱼草鱼data2_3<=草鱼numin2;pork草鱼 草鱼草鱼data3_3<=草鱼numin3;pork草鱼 草鱼草鱼data4_3<=草鱼numin4;pork草鱼 草鱼草鱼data5_3<=草鱼numin5;pork草鱼 草鱼草鱼data6_3<=草鱼numin6;pork草鱼 草鱼草鱼data7_3<=草鱼overin;pork草鱼 草鱼草鱼when草鱼"0101"草鱼=>草鱼data1_4<=草鱼numin1;pork草鱼 草鱼草鱼data2_4<=草鱼numin2;pork草鱼 草鱼草鱼data3_4<=草鱼numin3;pork草鱼 草鱼草鱼data4_4<=草鱼numin4;pork草鱼 草鱼草鱼data5_4<=草鱼numin5;pork草鱼 草鱼草鱼data6_4<=草鱼numin6;pork草鱼 草鱼草鱼data7_4<=草鱼overin;pork草鱼 草鱼草鱼草鱼草鱼草鱼when草鱼"0110"草鱼=>草鱼data1_5<=草鱼numin1;pork草鱼 草鱼草鱼data2_5<=草鱼numin2;pork草鱼 草鱼草鱼data3_5<=草鱼numin3;pork草鱼 草鱼草鱼data4_5<=草鱼numin4;pork草鱼 草鱼草鱼data5_5<=草鱼numin5;pork草鱼 草鱼草鱼data6_5<=草鱼numin6;pork草鱼 31 草鱼草鱼data7_5<=草鱼overin;pork草鱼 草鱼草鱼when草鱼others=>data1_6<=草鱼numin1;pork草鱼 草鱼草鱼data2_6<=草鱼numin2;pork草鱼 草鱼草鱼data3_6<=草鱼numin3;pork草鱼 草鱼草鱼data4_6<=草鱼numin4;pork草鱼 草鱼草鱼data5_6<=草鱼numin5;pork草鱼 草鱼草鱼data6_6<=草鱼numin6;pork草鱼 草鱼草鱼data7_6<=草鱼overin;pork草鱼 草鱼草鱼草鱼 end草鱼case;pork草鱼 elsif草鱼lachin='0'草鱼then草鱼 草鱼草鱼草鱼case草鱼overin草鱼is草鱼 when草鱼"0001"草鱼=>numout1<=data1;pork草鱼 草鱼草鱼numout2<=data2;pork草鱼 草鱼草鱼numout3<=data3;pork草鱼 草鱼草鱼numout4<=data4;pork草鱼 草鱼草鱼numout5<=data5;pork草鱼 草鱼草鱼numout6<=data6;pork草鱼 草鱼草鱼numout7<=data7;pork草鱼 草鱼草鱼when草鱼"0010"草鱼=>草鱼numout1<=data1_1;pork草鱼 草鱼草鱼numout2<=data2_1;pork草鱼 草鱼草鱼numout3<=data3_1;pork草鱼 草鱼草鱼numout4<=data4_1;pork草鱼 草鱼草鱼numout5<=data5_1;pork草鱼 草鱼草鱼numout6<=data6_1;pork草鱼 草鱼草鱼numout7<=data7_1;pork草鱼 草鱼草鱼when草鱼"0011"草鱼=>草鱼numout1<=data1_2;pork草鱼 草鱼草鱼numout2<=data2_2;pork草鱼 草鱼草鱼numout3<=data3_2;pork草鱼 草鱼草鱼numout4<=data4_2;pork草鱼 草鱼草鱼numout5<=data5_2;pork草鱼 草鱼草鱼numout7<=data7_2;pork草鱼 草鱼草鱼numout6<=data6_2;pork草鱼 草鱼草鱼when草鱼"0100"草鱼=>草鱼numout1<=data1_3;pork草鱼 草鱼草鱼numout2<=data2_3;pork草鱼 草鱼草鱼numout3<=data3_3;pork草鱼 草鱼草鱼numout4<=data4_3;pork草鱼 草鱼草鱼numout5<=data5_3;pork草鱼 31 草鱼草鱼numout6<=data6_3;pork草鱼 草鱼草鱼numout7<=data7_3;pork草鱼 草鱼草鱼when草鱼"0101"草鱼=>草鱼numout1<=data1_4;pork草鱼 草鱼草鱼numout2<=data2_4;pork草鱼 草鱼草鱼numout3<=data3_4;pork草鱼 草鱼草鱼numout4<=data4_4;pork草鱼 草鱼草鱼numout5<=data5_4;pork草鱼 草鱼草鱼numout6<=data6_4;pork草鱼 草鱼草鱼numout7<=data7_4;pork草鱼 草鱼草鱼草鱼草鱼草鱼when草鱼"0110"草鱼=>草鱼numout1<=data1_5;pork草鱼 草鱼草鱼numout2<=data2_5;pork草鱼 草鱼草鱼numout3<=data3_5;pork草鱼 草鱼草鱼numout4<=data4_5;pork草鱼 草鱼草鱼numout5<=data5_5;pork草鱼 草鱼草鱼numout6<=data6_5;pork草鱼 草鱼草鱼numout7<=data7_5;pork草鱼草鱼草鱼 草鱼草鱼when草鱼others=>草鱼草鱼numout1<=data1_6;pork草鱼 草鱼草鱼numout2<=data2_6;pork草鱼 草鱼草鱼numout3<=data3_6;pork草鱼 草鱼草鱼numout4<=data4_6;pork草鱼 草鱼草鱼numout5<=data5_6;pork草鱼 草鱼草鱼numout6<=data6_6;pork草鱼 草鱼草鱼numout7<=data7_6;pork草鱼 end草鱼case;pork草鱼 end草鱼if;pork草鱼 end草鱼process;pork草鱼 end草鱼Behavioral;pork草鱼 3.4.2模块仿真草鱼 仿真程序:pork草鱼 LIBRARY草鱼ieee;pork草鱼 USE草鱼ieee.std_logic_1164.ALL;pork草鱼 ENTITY草鱼test_suocun草鱼IS草鱼 END草鱼test_suocun;pork草鱼草鱼 ARCHITECTURE草鱼behavior草鱼OF草鱼test_suocun草鱼IS草鱼草鱼 草鱼草鱼草鱼草鱼COMPONENT草鱼SUOCUN草鱼 草鱼草鱼草鱼草鱼PORT(草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼lachin草鱼:草鱼IN草鱼草鱼std_logic;pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼overin草鱼:草鱼IN草鱼草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 31 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼numin1草鱼:草鱼IN草鱼草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼numin2草鱼:草鱼IN草鱼草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼numin3草鱼:草鱼IN草鱼草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼numin4草鱼:草鱼IN草鱼草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼numin5草鱼:草鱼IN草鱼草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼numin6草鱼:草鱼IN草鱼草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼numout1草鱼:草鱼OUT草鱼草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼numout2草鱼:草鱼OUT草鱼草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼numout3草鱼:草鱼OUT草鱼草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼numout4草鱼:草鱼OUT草鱼草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼numout5草鱼:草鱼OUT草鱼草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼numout6草鱼:草鱼OUT草鱼草鱼std_logic_vector(3草鱼downto草鱼0)草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼);pork草鱼 草鱼草鱼草鱼草鱼END草鱼COMPONENT;pork草鱼 草鱼草鱼草鱼signal草鱼lachin草鱼:草鱼std_logic草鱼:=草鱼'0';pork草鱼 草鱼草鱼草鱼signal草鱼overin草鱼:草鱼std_logic_vector(3草鱼downto草鱼0)草鱼:=草鱼(others草鱼=>草鱼'0');pork草鱼 草鱼草鱼草鱼signal草鱼numin1草鱼:草鱼std_logic_vector(3草鱼downto草鱼0)草鱼:=草鱼(others草鱼=>草鱼'0');pork草鱼 草鱼草鱼草鱼signal草鱼numin2草鱼:草鱼std_logic_vector(3草鱼downto草鱼0)草鱼:=草鱼(others草鱼=>草鱼'0');pork草鱼 草鱼草鱼草鱼signal草鱼numin3草鱼:草鱼std_logic_vector(3草鱼downto草鱼0)草鱼:=草鱼(others草鱼=>草鱼'0');pork草鱼 草鱼草鱼草鱼signal草鱼numin4草鱼:草鱼std_logic_vector(3草鱼downto草鱼0)草鱼:=草鱼(others草鱼=>草鱼'0');pork草鱼 草鱼草鱼草鱼signal草鱼numin5草鱼:草鱼std_logic_vector(3草鱼downto草鱼0)草鱼:=草鱼(others草鱼=>草鱼'0');pork草鱼 草鱼草鱼草鱼signal草鱼numin6草鱼:草鱼std_logic_vector(3草鱼downto草鱼0)草鱼:=草鱼(others草鱼=>草鱼'0');pork草鱼 草鱼 草鱼--Outputs草鱼 草鱼草鱼草鱼signal草鱼numout1草鱼:草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 草鱼草鱼草鱼signal草鱼numout2草鱼:草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 草鱼草鱼草鱼signal草鱼numout3草鱼:草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 草鱼草鱼草鱼signal草鱼numout4草鱼:草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 草鱼草鱼草鱼signal草鱼numout5草鱼:草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 草鱼草鱼草鱼signal草鱼numout6草鱼:草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 草鱼草鱼草鱼 BEGIN草鱼 草鱼草鱼草鱼uut:草鱼SUOCUN草鱼PORT草鱼MAP草鱼(草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼lachin草鱼=>草鱼lachin,草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼overin草鱼=>草鱼overin,草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼numin1草鱼=>草鱼numin1,草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼numin2草鱼=>草鱼numin2,草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼numin3草鱼=>草鱼numin3,草鱼 31 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼numin4草鱼=>草鱼numin4,草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼numin5草鱼=>草鱼numin5,草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼numin6草鱼=>草鱼numin6,草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼numout1草鱼=>草鱼numout1,草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼numout2草鱼=>草鱼numout2,草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼numout3草鱼=>草鱼numout3,草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼numout4草鱼=>草鱼numout4,草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼numout5草鱼=>草鱼numout5,草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼numout6草鱼=>草鱼numout6草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼);pork草鱼 草鱼草鱼草鱼stim_proc:草鱼process草鱼 草鱼草鱼草鱼begin草鱼草鱼 lachin草鱼<='1';pork草鱼 numin1草鱼<=草鱼"0000";pork草鱼 numin2草鱼<=草鱼"0001";pork草鱼 numin3草鱼<=草鱼"0010";pork草鱼 草鱼草鱼草鱼numin4草鱼<=草鱼"0011";pork草鱼 numin5草鱼<=草鱼"0100";pork草鱼 numin6草鱼<=草鱼"0101";pork草鱼 草鱼草鱼草鱼overin草鱼<=草鱼"0001";pork草鱼 wait草鱼for草鱼100草鱼ns;pork草鱼 numin1草鱼<=草鱼"0001";pork草鱼 numin2草鱼<=草鱼"0010";pork草鱼 numin3草鱼<=草鱼"0110";pork草鱼 草鱼草鱼草鱼numin4草鱼<=草鱼"0111";pork草鱼 numin5草鱼<=草鱼"0101";pork草鱼 numin6草鱼<=草鱼"1101";pork草鱼 overin草鱼<=草鱼"0010";pork草鱼 草鱼草鱼草鱼wait草鱼for草鱼100草鱼ns;pork草鱼 lachin草鱼<='0';pork草鱼 overin草鱼<=草鱼"0001";pork草鱼 wait草鱼for草鱼100草鱼ns;pork草鱼 overin草鱼<=草鱼"0010";pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼wait草鱼for草鱼100草鱼ns;pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼wait;pork草鱼 草鱼草鱼草鱼end草鱼process;pork草鱼 END;pork草鱼 仿真波形草鱼 31 草鱼 波形分析:pork草鱼 从上图可以看出,鲤鱼当lachin为低电平且overin=0001时,鲤鱼numout会输出lachin为高电平时且overin=0001时的numin的输入信号,鲤鱼且lachin为高电平时,鲤鱼numout无输出。草鱼由此可以判断,鲤鱼锁存器的锁存,鲤鱼读取功能已经实现。草鱼草鱼 3.6消抖模块的设计草鱼 模块描述草鱼 消抖模块的主要工作原理就是产生延时,鲤鱼让按键信号延时几个时钟周期。草鱼草鱼 Clk为时钟信号的输入端,鲤鱼在此设计中用的是1000hz的时钟信号,鲤鱼sc,鲤鱼get为按键,鲤鱼xdout,鲤鱼scout为消抖后输出的延时信号。草鱼模块程序:pork草鱼 library草鱼IEEE;pork草鱼 use草鱼IEEE.STD_LOGIC_1164.ALL;pork草鱼 use草鱼IEEE.STD_LOGIC_ARITH.ALL;pork草鱼 use草鱼IEEE.STD_LOGIC_UNSIGNED.ALL;pork草鱼 entity草鱼xd草鱼is草鱼 port(clk:草鱼in草鱼std_logic;pork草鱼 sc:in草鱼std_logic;pork草鱼 get:in草鱼std_logic;pork草鱼 xdout:out草鱼std_logic;pork草鱼 scout:out草鱼std_logic);pork草鱼 end草鱼xd;pork草鱼 architecture草鱼Behavioral草鱼of草鱼xd草鱼is草鱼 signal草鱼get_rst_1,get_rst草鱼:std_logic;pork草鱼 signal草鱼sc_rst_1,sc_rst草鱼:std_logic;pork草鱼 signal草鱼start_rst_1,start_rst草鱼:std_logic;pork草鱼 begin草鱼 Process(clk,get)草鱼is草鱼 Begin草鱼 If草鱼草鱼clk'event草鱼and草鱼clk='1'草鱼草鱼then草鱼 If草鱼草鱼get='1'草鱼草鱼then草鱼 get_rst<='1'草鱼;pork草鱼 get_rst_1<='1';pork草鱼 Else草鱼 草鱼草鱼草鱼草鱼草鱼get_rst<=get;pork草鱼 31 草鱼草鱼草鱼草鱼草鱼get_rst_1<=get_rst;pork草鱼 草鱼草鱼End草鱼if;pork草鱼 End草鱼if;pork草鱼 End草鱼process;pork草鱼 xdout<=草鱼get_rst_1草鱼and草鱼(not草鱼get_rst);pork草鱼 Process(clk,sc)草鱼is草鱼 Begin草鱼 If草鱼草鱼clk'event草鱼and草鱼clk='1'草鱼草鱼then草鱼 If草鱼草鱼sc='1'草鱼草鱼then草鱼 sc_rst<='1'草鱼;pork草鱼 sc_rst_1<='1';pork草鱼 Else草鱼 草鱼草鱼草鱼草鱼草鱼sc_rst<=sc;pork草鱼 草鱼草鱼草鱼草鱼草鱼sc_rst_1<=sc_rst;pork草鱼 草鱼草鱼End草鱼if;pork草鱼 End草鱼if;pork草鱼 End草鱼process;pork草鱼 scout<=草鱼sc_rst_1草鱼and草鱼(not草鱼sc_rst);pork草鱼 end草鱼Behavioral;pork草鱼 3.7使能/选择模块的设计草鱼 3.7.1模块描述草鱼 使能模块的功能是产生计数器的是能控制信号。草鱼根据系统的设计要求,鲤鱼设置开始/停止按键时,鲤鱼该按键每按一次,鲤鱼跑表开始或停止计时,鲤鱼因此,鲤鱼使能模块的功能应该为在输入时钟信号的作用下,鲤鱼输出状态发生翻转。草鱼草鱼 模块程序:pork草鱼 library草鱼IEEE;pork草鱼 use草鱼IEEE.STD_LOGIC_1164.ALL;pork草鱼 use草鱼IEEE.STD_LOGIC_ARITH.ALL;pork草鱼 use草鱼IEEE.STD_LOGIC_UNSIGNED.ALL;pork草鱼 entity草鱼EN草鱼is草鱼 port(s:草鱼in草鱼std_logic;pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼e:草鱼out草鱼std_logic);pork草鱼 end草鱼EN;pork草鱼 architecture草鱼Behavioral草鱼of草鱼EN草鱼is草鱼 signal草鱼e1草鱼:草鱼std_logic;pork草鱼 begin草鱼 process(s)草鱼 begin草鱼 31 草鱼草鱼草鱼if草鱼s'event草鱼and草鱼s草鱼=草鱼'1'草鱼then草鱼 草鱼草鱼草鱼草鱼e1草鱼<=草鱼not草鱼e1;pork草鱼 end草鱼if;pork草鱼 end草鱼process;pork草鱼 e草鱼<=草鱼e1;pork草鱼 end草鱼Behavioral;pork草鱼 3.7.2模块仿真草鱼 仿真程序:pork草鱼 LIBRARY草鱼ieee;pork草鱼 USE草鱼ieee.std_logic_1164.ALL;pork草鱼 ENTITY草鱼test_en草鱼IS草鱼 END草鱼test_en;pork草鱼 ARCHITECTURE草鱼behavior草鱼OF草鱼test_en草鱼IS草鱼草鱼 草鱼草鱼草鱼草鱼COMPONENT草鱼EN草鱼 草鱼草鱼草鱼草鱼PORT(草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼s草鱼:草鱼IN草鱼草鱼std_logic;pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼e草鱼:草鱼OUT草鱼草鱼std_logic草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼);pork草鱼 草鱼草鱼草鱼草鱼END草鱼COMPONENT;pork草鱼 草鱼草鱼草鱼--Inputs草鱼 草鱼草鱼草鱼signal草鱼s草鱼:草鱼std_logic草鱼:=草鱼'0';pork草鱼 草鱼--Outputs草鱼 草鱼草鱼草鱼signal草鱼e草鱼:草鱼std_logic;pork草鱼 草鱼草鱼草鱼constant草鱼s_period草鱼:草鱼time草鱼:=草鱼10草鱼ns;pork草鱼 BEGIN草鱼 --草鱼Instantiate草鱼the草鱼Unit草鱼Under草鱼Test草鱼(UUT)草鱼 草鱼草鱼草鱼uut:草鱼EN草鱼PORT草鱼MAP草鱼(草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼s草鱼=>草鱼s,草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼e草鱼=>草鱼e草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼);pork草鱼 草鱼草鱼草鱼s_process草鱼:process草鱼 草鱼草鱼草鱼begin草鱼 s草鱼<=草鱼'0';pork草鱼 wait草鱼for草鱼s_period/2;pork草鱼 s草鱼<=草鱼'1';pork草鱼 wait草鱼for草鱼s_period/2;pork草鱼 草鱼草鱼草鱼end草鱼process;pork草鱼 END;pork草鱼 31 仿真波形:pork草鱼 草鱼 波形分析:pork从上图可以看出当s遇到一个上升沿的时候,鲤鱼e的电平就会发生反转,鲤鱼功能实现。草鱼草鱼 第4章草鱼实验项目系统电路设计草鱼 4.1草鱼草鱼系统设计描述草鱼 端口说明及管脚分配表实际意义设计中的端口符号对应管脚草鱼 输入48Mhz晶振clkinN9暂停键getE6复位键startH7锁存/读取键scF9草鱼 草鱼 草鱼 草鱼 草鱼 草鱼 草鱼 输出草鱼 草鱼 草鱼 数码管段选led[0]B12led[1]A11led[2]C11led[3]C10led[4]A10led[5]B10led[6]A9数码管势能G低电平信号草鱼 草鱼 草鱼 数码管位选WX[0]K13WX[1]L13WX[2]M13WX[3]N13WX[4]G13WX[5]H13WX[7]J1331 功能描述:pork本设计主要是模仿田径赛场上运动员赛跑时,鲤鱼裁判所用的计数秒表,鲤鱼具体的实现过程为:pork下载完成后按下get键,鲤鱼此时使能模块输出高电平,鲤鱼计数器开始计时,鲤鱼并在数码管上实时显示,鲤鱼锁存器模块进入锁存状态,鲤鱼start为系统的清零/复位键,鲤鱼sc为六进制计数器的时钟,鲤鱼每按一次sc键将会产生一个上升沿,鲤鱼并计数一次,鲤鱼六进制的计数器的输出端触发锁存器,鲤鱼每记一次数锁存一组数。草鱼草鱼 当再按一次get键的时候,鲤鱼势能/选择模块输出低电平,鲤鱼此时计数器停止计时,鲤鱼锁存器进入数据读取状态,鲤鱼显示模块显示读取的锁存的数据,鲤鱼按下start键为系统清零,鲤鱼当每按一次sc键,鲤鱼锁存器将会按锁存的顺序读取锁存的数据并显示该数据时第几次锁存下的。草鱼草鱼 系统电路图:pork草鱼 草鱼 系统程序:pork草鱼 library草鱼IEEE;pork草鱼 use草鱼IEEE.STD_LOGIC_1164.ALL;pork草鱼 use草鱼IEEE.STD_LOGIC_ARITH.ALL;pork草鱼 use草鱼IEEE.STD_LOGIC_UNSIGNED.ALL;pork草鱼 entity草鱼Szpb草鱼is草鱼 草鱼草鱼草鱼草鱼Port草鱼(草鱼clkin草鱼:草鱼in草鱼草鱼STD_LOGIC;pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼start草鱼:草鱼in草鱼草鱼STD_LOGIC;pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼get草鱼:草鱼in草鱼草鱼STD_LOGIC;pork草鱼 草鱼草鱼G:草鱼out草鱼std_logic;pork草鱼 31 草鱼草鱼sc:草鱼in草鱼std_logic;pork草鱼 WX:草鱼out草鱼std_logic_vector(7草鱼downto草鱼0);pork草鱼 草鱼草鱼led草鱼:out草鱼std_logic_vector(6草鱼downto草鱼0));pork草鱼 end草鱼Szpb;pork草鱼 草鱼 architecture草鱼Behavioral草鱼of草鱼Szpb草鱼is草鱼 signal草鱼counterout_1:草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 signal草鱼counterout_2:草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 signal草鱼counterout_3:草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 signal草鱼counterout_4:std_logic_vector(3草鱼downto草鱼0);pork草鱼 signal草鱼counterout_5:草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 signal草鱼counterout_6:草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 signal草鱼Countout_1,Countout_2,Countout_3,Countout_4,Countout_5,Countout_6,Countout_7,counterout_7:草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 signal草鱼carry1:草鱼std_logic;pork草鱼 signal草鱼carry2:草鱼std_logic;pork草鱼 signal草鱼carry3草鱼:std_logic;pork草鱼 signal草鱼carry5,carry6:草鱼std_logic;pork草鱼 signal草鱼carryin:草鱼std_logic草鱼:='1';pork草鱼 signal草鱼clk_100hz:草鱼std_logic;pork草鱼 signal草鱼草鱼E,clk_1khz,clk48mhz,res,clk100hz,carry_4,s1,scout_1,start_1:草鱼std_logic;pork草鱼 signal草鱼sel_1:草鱼std_logic_vector(2草鱼downto草鱼0);pork草鱼 signal草鱼led1草鱼:草鱼std_logic_vector(6草鱼downto草鱼0);pork草鱼 component草鱼div草鱼is草鱼草鱼 草鱼草鱼草鱼草鱼port(草鱼草鱼clkin:草鱼in草鱼std_logic;pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼clk1khz:草鱼out草鱼std_logic;pork草鱼 草鱼草鱼clk100hz:草鱼out草鱼std_logic);pork草鱼 end草鱼component;pork草鱼 component草鱼COUNTER1草鱼is草鱼草鱼 草鱼草鱼草鱼草鱼port(草鱼草鱼res,clk100hz:草鱼in草鱼std_logic;pork草鱼 carryin:草鱼in草鱼std_logic;pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼carryout:草鱼out草鱼std_logic;pork草鱼 草鱼草鱼counterout:草鱼out草鱼std_logic_vector(3草鱼downto草鱼0));pork草鱼 end草鱼component;pork草鱼 component草鱼COUNTER2草鱼is草鱼草鱼 草鱼草鱼草鱼草鱼port(草鱼草鱼res,clk100hz:草鱼in草鱼std_logic;pork草鱼 carryin:草鱼in草鱼std_logic;pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼carryout:草鱼out草鱼std_logic;pork草鱼 草鱼草鱼counterout:草鱼out草鱼std_logic_vector(3草鱼downto草鱼0));pork草鱼 end草鱼component;pork草鱼 草鱼 component草鱼COUNTER3草鱼is草鱼草鱼 草鱼草鱼草鱼草鱼port(草鱼草鱼res,clk100hz:草鱼in草鱼std_logic;pork草鱼 31 carryin:草鱼in草鱼std_logic;pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼carryout:草鱼out草鱼std_logic;pork草鱼 草鱼草鱼counterout:草鱼out草鱼std_logic_vector(3草鱼downto草鱼0));pork草鱼 end草鱼component;pork草鱼 component草鱼COUNTER4草鱼is草鱼草鱼 草鱼草鱼草鱼草鱼port(草鱼草鱼res,clk100hz:草鱼in草鱼std_logic;pork草鱼 carryin:草鱼in草鱼std_logic;pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼carryout:草鱼out草鱼std_logic;pork草鱼 草鱼草鱼counterout:草鱼out草鱼std_logic_vector(3草鱼downto草鱼0));pork草鱼 end草鱼component;pork草鱼 component草鱼COUNTER5草鱼is草鱼草鱼 草鱼草鱼草鱼草鱼port(草鱼草鱼res,clk100hz:草鱼in草鱼std_logic;pork草鱼 carryin:草鱼in草鱼std_logic;pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼carryout:草鱼out草鱼std_logic;pork草鱼 草鱼草鱼counterout:草鱼out草鱼std_logic_vector(3草鱼downto草鱼0));pork草鱼 end草鱼component;pork草鱼 component草鱼COUNTER6草鱼is草鱼草鱼 草鱼草鱼草鱼草鱼port(草鱼草鱼res,clk100hz:草鱼in草鱼std_logic;pork草鱼 carryin:草鱼in草鱼std_logic;pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼carryout:草鱼out草鱼std_logic;pork草鱼 草鱼草鱼counterout:草鱼out草鱼std_logic_vector(3草鱼downto草鱼0));pork草鱼 end草鱼component;pork草鱼 component草鱼display草鱼is草鱼草鱼 草鱼草鱼草鱼草鱼port(草鱼草鱼counterout1:草鱼in草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 草鱼counterout2:草鱼in草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 草鱼counterout3:草鱼in草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 草鱼counterout4:草鱼in草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 草鱼counterout5:草鱼in草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 草鱼counterout6:草鱼in草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 草鱼counterout7:草鱼in草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 草鱼Countout1:草鱼in草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 草鱼Countout2:草鱼in草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 草鱼Countout3:草鱼in草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 草鱼Countout4:草鱼in草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 草鱼Countout5:草鱼in草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 草鱼Countout6:草鱼in草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 草鱼Countout7:草鱼in草鱼std_logic_vector(3草鱼downto草鱼0);pork草鱼 草鱼led:草鱼out草鱼std_logic_vector(6草鱼downto草鱼0);pork草鱼 草鱼G:草鱼out草鱼std_logic;pork草鱼 草鱼clk1khz:草鱼in草鱼std_logic;pork草鱼 草鱼e草鱼:草鱼in草鱼std_logic;pork草鱼 草鱼sel:草鱼out草鱼std_logic_vector(2草鱼downto草鱼0));pork草鱼 end草鱼component;pork草鱼 component草鱼EN草鱼is草鱼 31 port(s:草鱼in草鱼std_logic;pork草鱼 草鱼 草鱼草鱼草鱼草鱼草鱼草鱼e:草鱼out草鱼std_logic);pork草鱼 end草鱼component;pork草鱼 component草鱼ymq草鱼is草鱼 port(sel:草鱼in草鱼std_logic_vector(2草鱼downto草鱼0);pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼WX:草鱼out草鱼std_logic_vector(7草鱼downto草鱼0));pork草鱼 end草鱼component;pork草鱼 component草鱼xd草鱼is草鱼 port(clk:草鱼in草鱼std_logic;pork草鱼 sc:in草鱼std_logic;pork草鱼 --start:in草鱼std_logic;pork草鱼 get:in草鱼std_logic;pork草鱼 xdout:out草鱼std_logic;pork草鱼 --startout:out草鱼std_logic;pork草鱼 scout:out草鱼std_logic);pork草鱼 end草鱼component;pork草鱼 component草鱼SUOCUN草鱼is草鱼草鱼 草鱼草鱼草鱼草鱼port(草鱼草鱼lachin草鱼:草鱼IN草鱼STD_LOGIC;pork草鱼 overin草鱼:草鱼IN草鱼STD_LOGIC_VECTOR草鱼(3草鱼downto草鱼0);pork草鱼 numin1草鱼:草鱼in草鱼草鱼STD_LOGIC_VECTOR草鱼(3草鱼downto草鱼0);pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼numin2草鱼:草鱼in草鱼草鱼STD_LOGIC_VECTOR草鱼(3草鱼downto草鱼0);pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼numin3草鱼:草鱼in草鱼草鱼STD_LOGIC_VECTOR草鱼(3草鱼downto草鱼0);pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼numin4草鱼:草鱼in草鱼草鱼STD_LOGIC_VECTOR草鱼(3草鱼downto草鱼0);pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼numin5草鱼:草鱼in草鱼草鱼STD_LOGIC_VECTOR草鱼(3草鱼downto草鱼0);pork草鱼 草鱼草鱼numin6草鱼:草鱼in草鱼草鱼STD_LOGIC_VECTOR草鱼(3草鱼downto草鱼0);pork草鱼 草鱼草鱼numin7草鱼:草鱼in草鱼草鱼STD_LOGIC_VECTOR草鱼(3草鱼downto草鱼0);pork草鱼 numout1草鱼:草鱼out草鱼草鱼STD_LOGIC_VECTOR草鱼(3草鱼downto草鱼0);pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼numout2草鱼:草鱼out草鱼草鱼STD_LOGIC_VECTOR草鱼(3草鱼downto草鱼0);pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼numout3草鱼:草鱼out草鱼草鱼STD_LOGIC_VECTOR草鱼(3草鱼downto草鱼0);pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼numout4草鱼:草鱼out草鱼草鱼STD_LOGIC_VECTOR草鱼(3草鱼downto草鱼0);pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼numout5草鱼:草鱼out草鱼草鱼STD_LOGIC_VECTOR草鱼(3草鱼downto草鱼0);pork草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼numout6草鱼:草鱼out草鱼草鱼STD_LOGIC_VECTOR草鱼(3草鱼downto草鱼0);pork草鱼 草鱼草鱼numout7草鱼:草鱼out草鱼草鱼STD_LOGIC_VECTOR草鱼(3草鱼downto草鱼0));pork草鱼 草鱼 end草鱼component;pork草鱼 component草鱼counter0草鱼is草鱼草鱼 草鱼草鱼草鱼草鱼port(草鱼草鱼get:草鱼in草鱼std_logic;pork草鱼 carryin:草鱼in草鱼std_logic;pork草鱼 sc:草鱼in草鱼std_logic;pork草鱼 草鱼草鱼counterout:草鱼out草鱼std_logic_vector(3草鱼downto草鱼0));pork草鱼 end草鱼component;pork草鱼 草鱼 begin草鱼 31 草鱼草鱼草鱼草鱼草鱼u1:草鱼div草鱼port草鱼map(clkin=>草鱼clkin,草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼clk100hz=>草鱼clk_100hz,草鱼 草鱼草鱼clk1khz=>草鱼clk_1khz);pork草鱼 u2:草鱼COUNTER1草鱼port草鱼map(clk100hz=>clk_100HZ,草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼res=>start,草鱼 草鱼草鱼carryin=>E,草鱼 草鱼草鱼carryout=>carry1,草鱼 草鱼草鱼counterout=>counterout_1);pork草鱼 u3:草鱼COUNTER2草鱼port草鱼map(clk100hz=>clk_100HZ,草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼res=>start,草鱼 草鱼草鱼carryin=>carry1,草鱼 草鱼草鱼carryout=>carry2,草鱼 草鱼草鱼counterout=>counterout_2);pork草鱼 u4:草鱼COUNTER3草鱼port草鱼map(clk100hz=>clk_100HZ,草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼res=>start,草鱼 草鱼草鱼carryin=>carry2,草鱼 草鱼草鱼carryout=>carry3,草鱼 草鱼草鱼counterout=>counterout_3);pork草鱼 u5:草鱼COUNTER4草鱼port草鱼map(clk100hz=>clk_100HZ,草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼res=>start,草鱼 草鱼草鱼carryin=>carry3,草鱼 草鱼草鱼carryout=>carry_4,草鱼 草鱼草鱼counterout=>counterout_4);pork草鱼 u6:草鱼COUNTER5草鱼port草鱼map(clk100hz=>clk_100HZ,草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼res=>start,草鱼 草鱼carryin=>carry_4,草鱼 草鱼草鱼carryout=>carry5,草鱼 草鱼草鱼counterout=>counterout_5);pork草鱼 u7:草鱼COUNTER6草鱼port草鱼map(clk100hz=>clk_100HZ,草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼res=>start,草鱼 草鱼草鱼carryin=>carry5,草鱼 草鱼草鱼carryout=>carry6,草鱼 草鱼草鱼counterout=>counterout_6);pork草鱼 草鱼草鱼草鱼u8:草鱼草鱼display草鱼草鱼port草鱼map(clk1khz=>clk_1khz,草鱼 counterout1=>counterout_1,草鱼 counterout2=>counterout_2,草鱼 counterout3=>counterout_3,草鱼 counterout4=>counterout_4,草鱼 counterout5=>counterout_5,草鱼 counterout6=>counterout_6,草鱼 counterout7=>counterout_7,草鱼 Countout1=>Countout_1,草鱼 Countout2=>Countout_2,草鱼 Countout3=>Countout_3,草鱼 31 Countout4=>Countout_4,草鱼 Countout5=>Countout_5,草鱼 Countout6=>Countout_6,草鱼 Countout7=>Countout_7,草鱼 e=>E,草鱼 G=>G,sel=>sel_1,led=>led);pork草鱼 草鱼 草鱼草鱼草鱼u9:草鱼EN草鱼port草鱼map(s=>s1,草鱼 草鱼 草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼e=>E);pork草鱼 u10:草鱼ymq草鱼port草鱼map(sel=>sel_1,草鱼 草鱼WX=>WX);pork草鱼 u11:草鱼xd草鱼port草鱼map(clk=>clk_1khz,草鱼 get=>get,草鱼 --start=>start,草鱼 sc=>sc,草鱼 --startout=>start_1,草鱼 scout=>scout_1,草鱼 xdout=>s1);pork草鱼 u12:草鱼SUOCUN草鱼port草鱼map(numin1=>counterout_1,草鱼 numin2=>counterout_2,草鱼 numin3=>counterout_3,草鱼 numin4=>counterout_4,草鱼 numin5=>counterout_5,草鱼 numin6=>counterout_6,草鱼 numin7=>counterout_7,草鱼 numout1=>Countout_1,草鱼 numout2=>Countout_2,草鱼 numout3=>Countout_3,草鱼 numout4=>Countout_4,草鱼 numout5=>Countout_5,草鱼 numout6=>Countout_6,草鱼 numout7=>Countout_7,草鱼 overin=>counterout_7,草鱼 lachin=>E);pork草鱼 u13:草鱼counter0草鱼port草鱼map(get=>start,草鱼 草鱼carryin=>carryin,草鱼 sc=>scout_1,草鱼 counterout=>counterout_7);pork草鱼 end草鱼Behavioral;pork草鱼 第5章草鱼系统管脚适配表草鱼 NET草鱼"WX[0]"草鱼LOC草鱼=草鱼K13;pork草鱼 NET草鱼"WX[1]"草鱼LOC草鱼=草鱼L13;pork草鱼 31 NET草鱼"WX[2]"草鱼LOC草鱼=草鱼M13;pork草鱼 NET草鱼"WX[3]"草鱼LOC草鱼=草鱼N13;pork草鱼 NET草鱼"WX[4]"草鱼LOC草鱼=草鱼G13;pork草鱼 NET草鱼"WX[5]"草鱼LOC草鱼=草鱼H13;pork草鱼 NET草鱼"WX[6]"草鱼LOC草鱼=草鱼J12;pork草鱼 NET草鱼"WX[7]"草鱼LOC草鱼=草鱼J13;pork草鱼 NET草鱼"clkin"草鱼LOC草鱼=草鱼N9;pork草鱼 NET草鱼"get"草鱼LOC草鱼=草鱼E6;pork草鱼 NET草鱼"start"草鱼LOC草鱼=草鱼H7;pork草鱼 NET草鱼"led[0]"草鱼LOC草鱼=草鱼B12;pork草鱼 NET草鱼"led[1]"草鱼LOC草鱼=草鱼A11;pork草鱼 NET草鱼"led[2]"草鱼LOC草鱼=草鱼C11;pork草鱼 NET草鱼"led[3]"草鱼LOC草鱼=草鱼C10;pork草鱼 NET草鱼"led[4]"草鱼LOC草鱼=草鱼A10;pork草鱼 NET草鱼"led[5]"草鱼LOC草鱼=草鱼B10;pork草鱼 NET草鱼"led[6]"草鱼LOC草鱼=草鱼A9;pork草鱼 NET草鱼"get"草鱼CLOCK_DEDICATED_ROUTE草鱼=草鱼FALSE;pork草鱼 NET草鱼"start"草鱼CLOCK_DEDICATED_ROUTE草鱼=草鱼FALSE;pork草鱼 #草鱼PlanAhead草鱼Generated草鱼physical草鱼constraints草鱼草鱼 NET草鱼"sc"草鱼LOC草鱼=草鱼F9;pork草鱼 第6章草鱼结束语草鱼 该系统存在很大的缺陷就是在暂停的时候清零,鲤鱼数码管不能显示出清零后的数据,鲤鱼清零过程必须在系统运行过程中实现。草鱼草鱼 比较满意地地方就是加入了一个显示锁存编号的数码管。草鱼草鱼 草鱼 草鱼草鱼 草鱼 草鱼 草鱼 草鱼 草鱼 草鱼 草鱼 草鱼 草鱼 31
此文档下载收益归作者所有