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