b)
--entityentity f2 isport ( A, B, C, D : in std_logic; F : out std_logic);end f2;-- architecturearchitecture of b_f2 of f2 is signal A_out, B_out, C_out : std_logic;begin A_out <= (not A) and C and (not D); B_out <= (not B) and C; C_out <= B and C and (not D); F <= A_out or B_out or C_out;end b_f2;