EDA程序设计复习.pptVIP

  • 2
  • 0
  • 约5.49千字
  • 约 15页
  • 2018-02-23 发布于河南
  • 举报
EDA程序设计复习

译码显示电路 数据选择器 * 60进制加法计数器1 library ieee; use ieee.std_logic_1164.all; use ieee.std_logic_unsigned.all; entity time60 is port(clk,clr,en:in std_logic; sec1,sec0:out std_logic_vector(3 downto 0); co:out std_logic); end time60; architecture ccy of time60 is begin process(clk,clr) ---------控制计数的进程语句 variable cnt1,cnt0:std_logic_vector(3 downto 0); begin if clr=1 then cnt1:=0000; cnt0:=0000; ----------计数器清零 elsif clkevent and clk=1 then ------检测时钟上升沿 if en=1 then -----------检测是否允许计数 if cnt

文档评论(0)

1亿VIP精品文档

相关文档