How to change to make the following program can continue to read, make the lights pattern change?
USE the IEEE. Std_logic_1164. ALL;
The ENTITY XIANSHI IS
The PORT (CLKOUT: IN STD_LOGIC; CLR: IN STD_LOGIC;
LED: OUT STD_LOGIC_VECTOR 7 DOWNTO (0));
END the entity XIANSHI;
ARCHITECTURE ART OF XIANSHI IS
TYPE STATES IS (S0 and S1, S2, S3);
SIGNAL STATE: STATES;
SIGNAL LIGHT: STD_LOGIC_VECTOR (7 DOWNTO 0);
BEGIN the PROCESS (CLR, CLKOUT)
BEGIN the IF the CLR='1' THEN
STATE<=S0;
LIGHT<="00000000";
ELSIF (CLKOUT 'EVENT AND CLKOUT=' 1 ') THEN
In CASE the STATE IS
The WHEN S0=& gt;
STATE<=S1;
WHEN S1=& gt;
STATE<=S2;
LIGHT<="10000001";
LIGHT<="01000010";
LIGHT<="00100100";
LIGHT<="00011000";
LIGHT<="00100100";
LIGHT<="01000010";
The WHEN S2=& gt;
STATE<=S3;
LIGHT<="00000000";
LIGHT<="10000000";
LIGHT<="11000000";
LIGHT<="11100000";
LIGHT<="11110000";
LIGHT<="11111000";
LIGHT<="11111100";
LIGHT<="11111110";
LIGHT<="11111111";
LIGHT<="01111111";
LIGHT<="00111111";
LIGHT<="00011111";
LIGHT<="00001111";
LIGHT<="00000111";
LIGHT<="00000011";
LIGHT<="00000001";
WHEN the S3=& gt;
STATE<=S1;
LIGHT<="10000000";
LIGHT<="01000000";
LIGHT<="00100000";
LIGHT<="00010000";
LIGHT<="00001000";
LIGHT<="00000100";
LIGHT<="00000010";
LIGHT<="00000001";
LIGHT<="00000010";
LIGHT<="00000100";
LIGHT<="00001000";
LIGHT<="00010000";
LIGHT<="00100000";
LIGHT<="01000000";
END a CASE;
END the IF;
END the PROCESS.
The LED & lt;=LIGHT;
END ARCHITECTURE ART.