use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
case muxval is
when 0 => q <= i0;<------
end case;
改这样才可以 ?when x"0" => q <= i0;
----------------------------------------
另一个使用常数也不行?
constant INTIAL : integer := 0;
when INTIAL+0 => q <= i0;<------
宣告都已经有 use IEEE.STD_LOGIC_UNSIGNED.ALL; 为什么不行? |