?? mway.vhd
字號(hào):
--乒乓球前進(jìn)方向產(chǎn)生模塊
library ieee;
use ieee.std_logic_1164.all;
entity mway is
port(servea:in std_logic;--左選手發(fā)球信號(hào)
serveb:in std_logic;--右選手發(fā)球信號(hào)
way:out std_logic);--乒乓球燈前進(jìn)方向信號(hào)
end mway;
architecture ful of mway is
begin
process(servea,serveb)
begin
if(servea='1') then --左選手發(fā)球
way<='1'; --方向向右
elsif(serveb='1') then --右選手發(fā)球
way<='0'; --方向向左
end if;
end process;
end;
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -