· A counter is required to count people entering and leaving a room. The room has a separate entrance and exit. A sensor detects people entering and leaving. Up to seven people are allowed in the room at one time.
· Complete the following ASM Chart of the synchronous counter that counts the people in the room and indicates when the room is empty or full. (Complete the conditional output box and finish the connecting arrows – no more states to be added).
· One person may enter and one person can leave during any clock cycle. The empty and full indicator (2 output led lights) should be asserted immediately when that condition is true (ie, before the next clock edge).
· Update: Once the room is full – the Enter sensor is disabled. Once the room is empty, the Leave sensor is disabled.Write the VHDL model of the system. For the purpose of this assignment – you can just have an output called number (std_logic_vector (3 downto 0)), along with the other 2 output indicators (empty and full).