Showing all stages in the process, design and show the implementation of a digital system using D-type flip-flops and the necessary combinatorial logic to meet the following specification:A coin operated water dispenser for car wash requires 40p for each operation. It can take in coins of value 20p and 10p up to the exact amount. No change is available. Require indicators for ready and next coin. 1.Determine what inputs and outputs are required [5 marks]2.State-diagram / Flowchart [20 marks]3.D-type transition table
Question
Showing all stages in the process, design and show the implementation of a digital system using D-type flip-flops and the necessary combinatorial logic to meet the following specification:A coin operated water dispenser for car wash requires 40p for each operation. It can take in coins of value 20p and 10p up to the exact amount. No change is available. Require indicators for ready and next coin. 1.Determine what inputs and outputs are required [5 marks]2.State-diagram / Flowchart [20 marks]3.D-type transition table
Solution
- Inputs and Outputs Required:
Inputs:
- Coin_20p: A signal that indicates when a 20p coin has been inserted.
- Coin_10p: A signal that indicates when a 10p coin has been inserted.
Outputs:
- Ready: A signal that indicates when the machine has received 40p and is ready to dispense water.
- Next_Coin: A signal that indicates when the machine is ready to accept the next coin.
- State-Diagram / Flowchart:
The state diagram would have five states representing the total amount of money inserted: 0p, 10p, 20p, 30p, and 40p. The transitions between states would be triggered by the insertion of either a 10p or 20p coin. The 'Ready' signal would be high only in the 40p state, and the 'Next_Coin' signal would be high in all states except the 40p state.
- D-type Transition Table:
| Current State | Input (Coin_20p, Coin_10p) | Next State | Output (Ready, Next_Coin) |
|---|---|---|---|
| 0p | 00 | 0p | 00 |
| 0p | 01 | 10p | 01 |
| 0p | 10 | 20p | 01 |
| 10p | 00 | 10p | 01 |
| 10p | 01 | 20p | 01 |
| 10p | 10 | 30p | 01 |
| 20p | 00 | 20p | 01 |
| 20p | 01 | 30p | 01 |
| 20p | 10 | 40p | 10 |
| 30p | 00 | 30p | 01 |
| 30p | 01 | 40p | 10 |
| 30p | 10 | 40p | 10 |
| 40p | 00 | 40p | 10 |
| 40p | 01 | 40p | 10 |
| 40p | 10 | 40p | 10 |
Note: The D-type flip-flops would be used to store the current state of the system. The combinatorial logic would be used to determine the next state and output signals based on the current state and input signals.
Similar Questions
Design a D-flip flop in VHDL
2. Rancanglah rangkaian logika sekuensi yang memiliki diagram transisi keadaan seperti pada gambar 153a menggunakan: (a) Flip-flop D, (b) Flip-flop J-K, dan (c) Flip-flop T.
What is a D flip-flop and its application?
A sequential circuit contains 3 D-Flip flops. How many states are present?
Which of the following option is most suitable for flip flopa.with two stable states that can be used to store binary data.b.fundamental building blocks of digital electronics systems used in computers, communications, and many other types of systems.c.Both (a) and (b)d.It can be implemented using NAND gates only
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.