?? decode.vhd
字號:
--七段數(shù)碼顯示---
LIBRARY ieee;
USE ieee.std_logic_1164.ALL;
--***************************
ENTITY decode IS
PORT(adr: IN std_logic_vector(3 downto 0);
dout: OUT std_logic_vector(6 downto 0));
END decode;
--*************************
ARCHITECTURE tru OF decode IS
BEGIN
process(adr)
begin
case adr is
when "0000"=>dout<="0111111";
when "0001"=>dout<="0000110";
when "0010"=>dout<="1011011";
when "0011"=>dout<="1001111";
when "0100"=>dout<="1100110";
when "0101"=>dout<="1101101";
when "0110"=>dout<="1111101";
when "0111"=>dout<="0000111";
when others=>dout<="0000000";
end case;
end process;
end tru;
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -