关于VHDL语言的一个错误
entitychooser21isPort(a:inSTD_LOGIC;b:inSTD_LOGIC;s:inSTD_LOGIC;y:outSTD_LOGIC);endch...
entity chooser21 is
Port ( a : in STD_LOGIC;
b : in STD_LOGIC;
s : in STD_LOGIC;
y : out STD_LOGIC);
end chooser21;
architecture Behavioral of chooser21 is
begin
y <= a when s = '1' else
y <= b when s = '0';
end Behavioral;
关于“y <= b when s = '0'”,错误提示是这样,
ERROR:HDLCompiler:288 - "D:\ISE Project Location\Chooser2-1\chooser2-1.vhd" Line 43: Cannot read from 'out' object y ; use 'buffer' or 'inout'
ERROR:HDLCompiler:1731 - "D:\ISE Project Location\Chooser2-1\chooser2-1.vhd" Line 43: found '0' definitions of operator "<=", cannot determine exact overloaded matching definition for "<="
不是很能理解 展开
Port ( a : in STD_LOGIC;
b : in STD_LOGIC;
s : in STD_LOGIC;
y : out STD_LOGIC);
end chooser21;
architecture Behavioral of chooser21 is
begin
y <= a when s = '1' else
y <= b when s = '0';
end Behavioral;
关于“y <= b when s = '0'”,错误提示是这样,
ERROR:HDLCompiler:288 - "D:\ISE Project Location\Chooser2-1\chooser2-1.vhd" Line 43: Cannot read from 'out' object y ; use 'buffer' or 'inout'
ERROR:HDLCompiler:1731 - "D:\ISE Project Location\Chooser2-1\chooser2-1.vhd" Line 43: found '0' definitions of operator "<=", cannot determine exact overloaded matching definition for "<="
不是很能理解 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询