?? dis_sig.vhd
字號:
--dis_sig
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_arith.all;
entity dis_sig is
port(
key:in std_logic;
selsig:out std_logic;
selout:out std_logic_vector(2 downto 0);
sel_show: out std_logic
);
end dis_sig;
architecture behave of dis_sig is
begin
process(key)
variable temp:std_logic;
begin
wait until key'event and key='0';
temp:=not temp;
selsig<=temp;
if temp='0' then
selout<="100";
sel_show<='0';
elsif temp='1' then
selout <="111";
sel_show<='1';
end if;
end process;
end behave;
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -