I have this VHDL coding, my Boolean Expression is F(w,x,y) = wxy + wx'y' + xy + w'x'y' and I need to convert it to a Behavioral Model. My question is if I coded the Behavioral Model correctly and I think it is wrong but I don't know where the error is in my code?
Code:
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
entity My_Act41 is
Port ( W : in STD_LOGIC;
X : in STD_LOGIC;
Y : in STD_LOGIC;
F : out STD_LOGIC);
end My_Act41;
architecture Behavioral of My_Act41 is
process(W,X,Y)
begin
if((W and X and Y) = "1" and (W and not X and not Y) = "1" and (X and Y) = "1" and (not W and not X and not Y) = "1") then
F<= '1';
else
F<= '0';
end if
end process
end Behavioral;