Design a parking system that can verify the password and control the gate when the entrance and exit sensors detect an approaching vehicle
- In Moore machine, the output depends only on the current state.
- A general model of a Moore machine is shown below. Its output is generated from the state register block.
- The next state is determined using the current input and the current state.
- The state register is also modeled using D flip-flops.
- Normally Moore machines are described using three blocks, one of which must be a sequential and the other two can be modeled using always blocks or a combination of always and dataflow modeling constructs.
-
The entrance sensor which is activated to detect a vehicle coming, a password is requested to open the gate.
-
If the entered password is not correct, the gate is still locked.
-
If the entered password is correct, the gate would open to let the vehicle get in.
-
If the current car is getting in the car park being detected by the exit sensor and another the car comes, the door will be locked and requires the coming car to enter passwords.
-
If the entered password is correct, the gate would open to let the vehicle get in. Otherwise, the gate is still locked.
Distributed under the MIT License. See LICENSE
for more information.
吳華楨 Trista Wu - [email protected]
Project Link: https://github.com/trista-csee/Parking_System_Moore_Machine