BlackOps
Full Member level 5
- Joined
- Jan 1, 2005
- Messages
- 279
- Helped
- 14
- Reputation
- 28
- Reaction score
- 3
- Trophy points
- 1,298
- Location
- AZERBAIJAN
- Activity points
- 2,496
Hello,
My VHDL code for Horizontal counter seems to compile without errors, however during the synthesizing process in ISE, it gives me the following error:
ERROR:Xst:1534 - Sequential logic for node <value> appears to be controlled by multiple clocks.
what is the reason? whats wrong with value?
here is the code:
thanks
My VHDL code for Horizontal counter seems to compile without errors, however during the synthesizing process in ISE, it gives me the following error:
ERROR:Xst:1534 - Sequential logic for node <value> appears to be controlled by multiple clocks.
what is the reason? whats wrong with value?
here is the code:
Code:
LIBRARY IEEE;
USE IEEE.STD_LOGIC_1164.ALL;
USE IEEE.STD_LOGIC_UNSIGNED.ALL; -- need this to add STD_LOGIC_VECTORs
ENTITY HCount IS PORT (
Clock: IN STD_LOGIC;
Clear: IN STD_LOGIC;
Rollover: OUT STD_LOGIC;
H_cntD: OUT STD_LOGIC;
H_cntDE: OUT STD_LOGIC;
H_cntDEB: OUT STD_LOGIC;
H_cntDEBC: OUT STD_LOGIC);
END HCount;
ARCHITECTURE Behavioral OF HCount IS
CONSTANT B: INTEGER := 95;
CONSTANT C: INTEGER := 45;
CONSTANT D: INTEGER := 640;
CONSTANT E: INTEGER := 20;
SIGNAL value: STD_LOGIC_VECTOR(9 DOWNTO 0);
BEGIN
PROCESS (Clock, Clear)
BEGIN
IF Clear = '1' THEN
value <= (OTHERS => '0');
ELSIF (Clock'EVENT AND Clock='1') THEN
value <= value + 1;
END IF;
IF (value = D) THEN -- TEST FOR 640
H_cntD <= '1';
ELSIF
(value = D+E) THEN -- TEST FOR 660
H_cntDE <= '1';
ELSIF
(value = D+E+B) THEN -- TEST FOR 755
H_cntDEB <= '1';
ELSIF
(value = D+E+B+C) THEN -- TEST FOR 800
H_cntDEBC <= '1'; Rollover <= '1'; value <= (OTHERS => '0');
END IF;
END PROCESS;
END Behavioral;
thanks