用VHDL语言实现的数码管显示程序包含动态和静态.docVIP

  • 5
  • 0
  • 约1.07千字
  • 约 2页
  • 2019-07-18 发布于江西
  • 举报

用VHDL语言实现的数码管显示程序包含动态和静态.doc

library ieee; use ieee.std_logic_1164.all; use ieee.std_logic_unsigned.all; entity shumaguan is port(clk:in std_logic; x:out std_logic_vector(7 downto 0); seg:out std_logic_vector(7 downto 0)); end entity; architecture behave of shumaguan is signal clk1:std_logic; begin process(clk) variable count:integer range 0 to begin if(clkevent and clk=1) then if(count then --动态 --if(count=1000) then --静态 count:=0; clk1=not clk1; else count:=count+1; end if; end if; end process; process(clk1) variable a:integer range 1 to 8; begin if(clk1event and clk1=

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档