Signal temp2 cannot be synthesized, bad synchronous description
问题 entity timer is Port ( click : in STD_LOGIC; clear : out STD_LOGIC; t_unlock : out STD_LOGIC); end timer; architecture Behavioral of timer is signal temp2 : integer range 0 to 20 := 0; begin process begin if rising_edge(click) then temp2<=0; clear<='0'; t_unlock<='0'; else temp2<=temp2+1 after 15 ns; end if; if temp2=6 then clear<='1'; elsif temp2=20 then t_unlock<='1'; end if; end process; end Behavioral; I have writted this code.And the complier say: Signal temp2 cannot be synthesized, bad