標題: EPM240 崩潰中 斑竹救命!!! [打印本頁] 作者: frjwdcyd 時間: 2012-3-18 21:04 標題: EPM240 崩潰中 斑竹救命!!! LIBRARY IEEE;
USE IEEE.STD_LOGIC_1164.ALL;
USE IEEE.std_logic_unsigned.ALL;
ENTITY Vhdl1 IS
PORT
(
L,R,M:IN STD_LOGIC;
Input: IN STD_LOGIC_VECTOR(15 DOWNTO 0);
Output: OUT STD_LOGIC_VECTOR(15 DOWNTO 0)
);
END Vhdl1;
ARCHITECTURE test OF Vhdl1 IS
BEGIN
mainProcess:process (L,R,M,Input)
if M='0' then
Output<=Input;
else
Output<="1111111111111111";
end if;
end process;