Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Code needed in Verilog Objective Your objective in this lab is to design (code, simulate and implement) a parking meter much like the ones around

Code needed in Verilogimage text in transcribed

Objective Your objective in this lab is to design (code, simulate and implement) a parking meter much like the ones around It should be able to simulate coins being added and show the appropriate time remaining. Also, it should flash slowly when less than 200 seconds are remaining and flash quickly when time has expired Description You will design a finite state machine that will simulate the operation of a traffic meter. The buttons on the board will represent different coin denominations and the seven segment LED display will output the total amount of seconds remaining before the meter expires. Button 0 Button 1 Button 2 Button 3 Switch 0 Switch 1 Configuration 1 Add 30 seconds Add 120 seconds Add 180 seconds Add 300 seconds Reset time to 15 seconds Reset time to 185 seconds As soon as a button is pushed, the time should be added immediately. When less than 180 seconds remain, the display should flash with period 2 seconds and duty cycle 50% (on for 1 sec and off for 1 sec; so you will see alternate counts on the display eg- 185,blank,183,blank,181...). When time has expired, the display should flash with period 1 sec and duty cycle 50% (on for 0.5 sec and off for 0.5 sec). For example, when the board starts, it should be in the 0 time remaining state and be flashing 0000 at a 0.5 second rate. If button 3 is then pushed, the display should read 300 seconds and begin counting down. When the time counts down to 200 seconds and button 2 is pushed, the display should then read 380 seconds (200 180). If switch 0 goes high, then the time should change to 15 seconds and flash accordingly Button 0 Button 1 Button 2 Button 3 Switch 0 Switch 1 Add 50 seconds Add 150 seconds Add 200 seconds Add 500 seconds Reset time to 10 seconds Reset time to 205 seconds Objective Your objective in this lab is to design (code, simulate and implement) a parking meter much like the ones around It should be able to simulate coins being added and show the appropriate time remaining. Also, it should flash slowly when less than 200 seconds are remaining and flash quickly when time has expired Description You will design a finite state machine that will simulate the operation of a traffic meter. The buttons on the board will represent different coin denominations and the seven segment LED display will output the total amount of seconds remaining before the meter expires. Button 0 Button 1 Button 2 Button 3 Switch 0 Switch 1 Configuration 1 Add 30 seconds Add 120 seconds Add 180 seconds Add 300 seconds Reset time to 15 seconds Reset time to 185 seconds As soon as a button is pushed, the time should be added immediately. When less than 180 seconds remain, the display should flash with period 2 seconds and duty cycle 50% (on for 1 sec and off for 1 sec; so you will see alternate counts on the display eg- 185,blank,183,blank,181...). When time has expired, the display should flash with period 1 sec and duty cycle 50% (on for 0.5 sec and off for 0.5 sec). For example, when the board starts, it should be in the 0 time remaining state and be flashing 0000 at a 0.5 second rate. If button 3 is then pushed, the display should read 300 seconds and begin counting down. When the time counts down to 200 seconds and button 2 is pushed, the display should then read 380 seconds (200 180). If switch 0 goes high, then the time should change to 15 seconds and flash accordingly Button 0 Button 1 Button 2 Button 3 Switch 0 Switch 1 Add 50 seconds Add 150 seconds Add 200 seconds Add 500 seconds Reset time to 10 seconds Reset time to 205 seconds

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Autonomous Database In Enterprise Architecture

Authors: Bal Mukund Sharma, Krishnakumar KM, Rashmi Panda

1st Edition

1801072248, 978-1801072243

More Books

Students also viewed these Databases questions

Question

What do Dimensions represent in OLAP Cubes?

Answered: 1 week ago