99精品伊人亚洲|最近国产中文炮友|九草在线视频支援|AV网站大全最新|美女黄片免费观看|国产精品资源视频|精彩无码视频一区|91大神在线后入|伊人终合在线播放|久草综合久久中文

您好,歡迎來(lái)電子發(fā)燒友網(wǎng)! ,新用戶?[免費(fèi)注冊(cè)]

您的位置:電子發(fā)燒友網(wǎng)>源碼下載>VHDL/Verilog/EDA源碼>

漢字點(diǎn)陣顯示與數(shù)字搶答器的VHDL程序設(shè)計(jì)(源代碼分享)

大?。?/span>0.1 MB 人氣: 2017-12-02 需要積分:0

  漢字點(diǎn)陣顯示VHDL源程序

  library ieee;

  use ieee.std_logic_1164.all;

  use ieee.std_logic_unsigned.all;

  use ieee.std_logic_arith.all;

  entity hzxs is

  port(clk1,clk2:in std_logic;

  rd:out std_logic;

  we: out std_logic;

  ledw:out std_logic_vector(2 downto 0);

  d:out std_logic_vector(0 downto 7));

  end hzxs;

  architecture hav of hzxs is

  signal count:std_logic_vector(0 to 2);

  signal a: std_logic_vector(3 downto 0);

  begin

  process(clk2)

  begin

  if clk2‘event and clk2=’1‘ then

  count《=count+1;

  end if;

  ledw《=count;

  a(2 downto 0)《=count;

  end process;

  process(clk1)

  begin

  if clk1’event and clk1=‘1’ then

  a(3)《=not a(3);

  end if;

  end process;

  process(a)

  begin

  case a is

  when“0000”=》d《=“10110100”;--數(shù)

  when“0001”=》d《=“11111111”;

  when“0010”=》d《=“01001010”;

  when“0011”=》d《=“11011010”;

  when“0100”=》d《=“11110110”;

  when“0101”=》d《=“11100110”;

  when“0110”=》d《=“01110110”;

  when“0111”=》d《=“11011011”;

  when“1000”=》d《=“00010000”;--字

  when“1001”=》d《=“11111111”;

  when“1010”=》d《=“11111101”;

  when“1011”=》d《=“00001100”;

  when“1100”=》d《=“11111111”;

  when“1101”=》d《=“00010000”;

  when“1110”=》d《=“00010000”;

  when“1111”=》d《=“00001100”;

  when others=》d《=“00000000”;

  end case;

  end process;

  rd《=‘1’;

  we《=‘0’;

  end hav;

非常好我支持^.^

(0) 0%

不好我反對(duì)

(0) 0%

      發(fā)表評(píng)論

      用戶評(píng)論
      評(píng)價(jià):好評(píng)中評(píng)差評(píng)

      發(fā)表評(píng)論,獲取積分! 請(qǐng)遵守相關(guān)規(guī)定!

      ?