如果不满足条件,则分配相同的值

时间:2018-09-12 17:55:02

标签: if-statement vhdl

我假设,如果满足某个条件,则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;

感谢您的支持。

0 个答案:

没有答案
相关问题