我假设,如果满足某个条件,则A = Y
,但是如果不满足,A
将使用先前的值A
。但是我还没有实现。
seleccion: process (A, x1,x2,Y)
variable sel : std_logic_vector(1 downto 0);
begin
sel := (x1 & x2);
if sel="xx" then
A<=Y;
else
A<=A;
end if;
end process seleccion;
感谢您的支持。