一些关于Max+plusII的问题这是在Max+plusII 10.23里面输入的程序,但是就是编辑不了会出现下面的问题:(在文章背后)
LIBRARY IEEE;
USE IEEE.STD_LOGIC_1164.ALL;
ENTITY demulti_4v IS
PORT(
D : IN STD_LOGIC;
S : IN STD_LOGIC_VECTOR(1 downto 0);
Y0,Y1,Y2,Y3:OUT STD_LOGIC);
END demulti_4v;
ARCHITECTURE a OF demulti_4v IS
BEGIN
--Y0 <=NOT S(0) AND NOT S(1) AND D; Y1 <=NOT S(0) AND S(1) AND D;
--Y2 <=S(0) AND NOT S(1) AND D; Y3 <=S(0) AND S(1) AND D;
PROCESS(S,D)
BEGIN
CASE S IS
WHEN "00" =>
Y0 <=D; --Y1 <='0';Y2='0';Y3='0';
WHEN "01" =>
Y1 <=D; --Y0 <='0';Y2='0';Y3='0';
WHEN "10" =>
Y2 <=D; --Y0 <='0';Y1='0';Y3='0';
WHEN "11" =>
Y3 <=D; --Y0 <='0';Y1='0';Y2='0';
END CASE;
END PROCESS;
END a;
出现如下错误提示:
Error:Line 15 :File g:\ug exices\demulti_4v.vhd: VHDL syntax error :excepted choices in case statement
Error: +: choices “UU” to “0X” not specified
Error: +: choices “0Z” to “1X” not specified
Error: +: choices “1Z” to “_” not specified