eda实验2位十进制.docVIP

  • 6
  • 0
  • 约1.58千字
  • 约 3页
  • 2018-03-11 发布于河南
  • 举报
eda实验2位十进制

实验名称:2位十进制频率计 实验目的:设计2位十进制频率计,学习较复杂的数字系统设计方法。 实验内容:源程序 十进制 library ieee; use ieee.std_logic_1164.all; use ieee.std_logic_unsigned.all; entity cnt10 is port (clk,rst,en:in std_logic; dout:out std_logic_vector(3 downto 0)); end cnt10; architecture behav of cnt10 is begin process(clk,rst,en) variable q:std_logic_vector(3 downto 0); begin if rst=0 then q:=(others=0); else if (clkevent and clk=1) then if en=1then if q9 then q:=q+1;else q:=0000; end if;end if;end if;end if; dout=q; end process; end behav; 模拟图形: 测控计 library IEEE ; use ieee.std_logic_1164.all; use ieee.std_logic_unsigne

文档评论(0)

1亿VIP精品文档

相关文档