decl7s.vhd

来自「实现LED灯的点亮」· VHDL 代码 · 共 26 行

VHD
26
字号
Library ieee;
Use ieee.std_logic_1164.all;
use ieee.std_logic_arith.all;
  entity DECL7S is
    port(AB: in std_logic_vector(3 downto 0);
          LED7S: out std_logic_vector(6 downto 0) );
end;

architecture behav of DECL7S is
 
begin 
  process(AB)
    begin 
 case AB is
  when "1010"=>LED7S<="0001000";
  when "1011"=>LED7S<="0000011" ;
   when OTHERS=>NULL;
  end case;
  end process;  
  end behav;





   

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?