我在合成使用函数 IS_X() 的实体时遇到了一些问题。特别是,消息
[错误] 名称 IS_X 未知
显示。
可以合成吗?
library IEEE;
use IEEE.std_logic_1164.all;
entity FF2 is
generic(XOUT, XNOUT: std_logic);
port( INPUT, CLK: in std_logic;
OUTPUT, NOUTPUT: out std_logic
);
end entity FF2;
architecture behavioral of FF2 is
signal temp : std_logic := '0';
begin
FUNC:process(CLK)
begin
if(CLK'event and rising_edge(CLK)) then
temp <= INPUT;
end if;
end process FUNC;
OUTPUT <= XOUT when is_x(temp) else temp;
NOUTPUT <= XNOUT when is_x(temp) else (not temp);
end architecture behavioral;