我正在尝试使用 GHDL 编译此代码,但出现错误:'=>' is expected而不是'not'。我希望代码没有任何进程,也没有隐式进程。
library ieee;
use ieee.std_logic_1164.all;
use ieee.numeric_std.all;
ENTITY decoder IS PORT
(c, b, a, g : IN std_logic;
y : OUT std_logic_vector(7 DOWNTO 0));
END decoder;
ARCHITECTURE beh_decoder OF decoder IS
BEGIN
y <= "10000000" WHEN (g NOT (a AND b AND c)) ELSE
"01000000" WHEN ((a AND g) NOT (b AND c)) ELSE
"00100000" WHEN ((b AND g) NOT (a AND c)) ELSE
"00010000" WHEN ((a AND b AND g) NOT c) ELSE
"00001000" WHEN ((c AND g) NOT (a AND b)) ELSE
"00000100" WHEN ((a AND c AND g) NOT b) ELSE
"00000010" WHEN ((b AND c AND g) NOT a) ELSE
"00000001" WHEN ((a AND g) NOT (b AND c)) ELSE
"00000000";
END ARCHITECTURE beh_decoder;