Home > other >  VHDL shut with a scoring function Error (10522) : VHDL how this change?
VHDL shut with a scoring function Error (10522) : VHDL how this change?

Time:11-28

Error: Error (10522) : VHDL Syntax Error at CONT. VHD (136) : experienced unexpected end - of - file; Expecting "end", or "(", or an identifier, or a sequential statement

Application: LIBRARY IEEE;
USE the IEEE. STD_LOGIC_1164. ALL;
USE the IEEE. STD_LOGIC_UNSIGNED. ALL;
The ENTITY CONT IS
The PORT (
ADD_SUB_SIGN: IN STD_LOGIC;
CONT_SIGN: IN BIT;
CHOS: IN STD_LOGIC_VECTOR (3 DOWNTO 0);
AA2 AA1 AA0: OUT STD_LOGIC_VECTOR (3 DOWNTO 0);
BB2, BB2, BB0: OUT STD_LOGIC_VECTOR (3 DOWNTO 0);
CC2, CC1, CC0: OUT STD_LOGIC_VECTOR (3 DOWNTO 0);
DD2, DD1, DD0: OUT STD_LOGIC_VECTOR (3 DOWNTO 0)
);
END CONT.
ARCHITECTURE TWO OF CONT IS
SIGNAL AA2_POINTS: STD_LOGIC_VECTOR (3 DOWNTO 0);
SIGNAL AA1_POINTS: STD_LOGIC_VECTOR (3 DOWNTO 0);
SIGNAL AA0_POINTS: STD_LOGIC_VECTOR (3 DOWNTO 0);
SIGNAL BB2_POINTS: STD_LOGIC_VECTOR (3 DOWNTO 0);
SIGNAL BB1_POINTS: STD_LOGIC_VECTOR (3 DOWNTO 0);
SIGNAL BB0_POINTS: STD_LOGIC_VECTOR (3 DOWNTO 0);
SIGNAL CC2_POINTS: STD_LOGIC_VECTOR (3 DOWNTO 0);
SIGNAL CC1_POINTS: STD_LOGIC_VECTOR (3 DOWNTO 0);
SIGNAL CC0_POINTS: STD_LOGIC_VECTOR (3 DOWNTO 0);
SIGNAL DD2_POINTS: STD_LOGIC_VECTOR (3 DOWNTO 0);
SIGNAL DD1_POINTS: STD_LOGIC_VECTOR (3 DOWNTO 0);
SIGNAL DD0_POINTS: STD_LOGIC_VECTOR (3 DOWNTO 0);
The BEGIN
The PROCESS (ADD_SUB_SIGN CONT_SIGN, CHOS)
The BEGIN
IF (ADD_SUB_SIGN 'EVENT AND ADD_SUB_SIGN=' 1 ') THEN
IF CONT_SIGN='1' THEN
CASE CHOS IS
WHEN "1000"=& gt;
IF (AA2_POINTS="1001" AND AA1_POINTS="1001" AND AA0_POINTS="1001") THEN
AA0_POINTS & lt;="0000";
AA1_POINTS & lt;="0000";
AA2_POINTS & lt;="0000";
ELSIF (AA2_POINTS/="1001" AND AA1_POINTS="1001" AND AA0_POINTS="1001")
THEN
AA0_POINTS & lt;="0000";

AA1_POINTS & lt;="0000";
AA2_POINTS & lt;=AA2_POINTS + '1';
ELSIF (AA2_POINTS/="1001" AND AA1_POINTS/="1001" AND AA0_POINTS="1001") THEN
AA0_POINTS & lt;="0000";
AA1_POINTS & lt;=AA1_POINTS + '1';
AA2_POINTS & lt;=AA2_POINTS;
The ELSE
AA0_POINTS & lt;=AA0_POINTS + '1';
AA1_POINTS & lt;=AA1_POINTS;
AA2_POINTS & lt;=AA2_POINTS;
END IF;
WHEN "0100"=& gt;
IF (BB2_POINTS="1001" AND BB1_POINTS="1001" AND BB0_POINTS="1001") THEN
BB0_POINTS & lt;="0000";
BB1_POINTS & lt;="0000";
BB2_POINTS & lt;="0000";
ELSIF (BB2_POINTS/="1001" AND BB1_POINTS="1001" AND BB0_POINTS="1001")
THEN
BB0_POINTS & lt;="0000";

BB1_POINTS & lt;="0000";
BB2_POINTS & lt;=BB2_POINTS + '1';
ELSIF (BB2_POINTS/="1001" AND BB1_POINTS/="1001" AND BB0_POINTS="1001") THEN
BB0_POINTS & lt;="0000";
BB1_POINTS & lt;=BB1_POINTS + '1';
BB2_POINTS & lt;=BB2_POINTS;
The ELSE
BB0_POINTS & lt;=BB0_POINTS + '1';
BB1_POINTS & lt;=BB1_POINTS;
BB2_POINTS & lt;=BB2_POINTS;
END IF;
WHEN "0010"=& gt;
IF (CC2_POINTS="1001" AND CC1_POINTS="1001" AND CC0_POINTS="1001") THEN
CC0_POINTS & lt;="0000";
CC1_POINTS & lt;="0000";
CC2_POINTS & lt;="0000";
ELSIF (CC2_POINTS/="1001" AND CC1_POINTS="1001" AND CC0_POINTS="1001")
THEN
CC0_POINTS & lt;="0000";

CC1_POINTS & lt;="0000";
CC2_POINTS & lt;=BB2_POINTS + '1';
ELSIF (CC2_POINTS/="1001" AND CC1_POINTS/="1001" AND CC0_POINTS="1001") THEN
CC0_POINTS & lt;="0000";
CC1_POINTS & lt;=CC1_POINTS + '1';
CC2_POINTS & lt;=CC2_POINTS;
The ELSE
CC0_POINTS & lt;=CC0_POINTS + '1';
CC1_POINTS & lt;=CC1_POINTS;
CC2_POINTS & lt;=CC2_POINTS;
END IF;
WHEN "0001"=& gt;
IF (DD2_POINTS="1001" AND DD1_POINTS="1001" AND DD0_POINTS="1001") THEN
DD0_POINTS & lt;="0000";
DD1_POINTS & lt;="0000";
DD2_POINTS & lt;="0000";
ELSIF (DD2_POINTS/="1001" AND DD1_POINTS="1001" AND DD0_POINTS="1001")
THEN
DD0_POINTS & lt;="0000";

DD1_POINTS & lt;="0000";
DD2_POINTS & lt;=DD2_POINTS + '1';
ELSIF (DD2_POINTS/="1001" AND DD1_POINTS/="1001" AND DD0_POINTS="1001") THEN
DD0_POINTS & lt;="0000";
DD1_POINTS & lt;=DD1_POINTS + '1';
DD2_POINTS & lt;=DD2_POINTS;
The ELSE
DD0_POINTS & lt;=DD0_POINTS + '1';
DD1_POINTS & lt;=DD1_POINTS;
DD2_POINTS & lt;=DD2_POINTS;
END IF;
The WHEN OTHERS=& gt; NULL;
END a CASE;
The ELSE
CASE CHOS IS
WHEN "1000"=& gt;
IF (AA2_POINTS="0000" AND AA1_POINTS="0000" AND AA0_POINTS="0000") THEN
AA0_POINTS & lt;="1001";
AA1_POINTS & lt;="1001";
AA2_POINTS & lt;="1001";
ELSIF (AA2_POINTS/="0000" AND AA1_POINTS="0000" AND AA0_POINTS="0000") THEN
AA0_POINTS & lt;="1001";
AA1_POINTS & lt;="1001";
AA2_POINTS & lt;=AA2_POINTS - '1';
ELSIF (AA2_POINTS/="0000" AND AA1_POINTS/="0000" AND AA0_POINTS="0000") THEN
AA0_POINTS & lt;="1001";
AA1_POINTS & lt;=AA1_POINTS - '1';
AA2_POINTS & lt;=AA2_POINTS;
The ELSE
AA0_POINTS & lt;=AA0_POINTS - '1';
AA1_POINTS & lt;=AA1_POINTS;
AA2_POINTS & lt;=AA2_POINTS;
END the IF;

CodePudding user response:

Followed by
END a CASE;
END IF;
END IF;
END the PROCESS.
END TWO;
nullnull
  • Related