I’m working on a programming question.

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper

 

You are going to create a simple video game using the LEDs and push buttons to simulate saving

prisoners of war (POWs).

The games will go as follows:

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper

– To start the game, press RESET. Three or Four random LEDs should be lit indicating the

positions of the POWs. However, there is also a blinking LED at a random position

representing your position.

– As you press the left button or the right button, your position, represented by the blinking

cursor, moves.

– Move towards one of the POWs. Once you have reached them, press the center button. This

rescues the POW and the corresponding the LED no longer stays lit after the cursor is moved.

– When all the POWs are saved (3 or 4 on the initial randomization), the game is over.

You must make the RGB LEDs turn red while the game is going on and turn green when you

have won. When reset is pressed, the game should reset.

Your Part

  • To store the POW position(s), create an 16-bit flip flop module.

– The declaration should be as follows: pow_position (pos,clk,rst ,init,d);

➢ pos is 16 bit output

➢ init and d are 16 bit inputs

– One every clock, load _init if rst is pressed and load d otherwise

➢ init should be provided from random2

– YOU MUST USE THE ALWAYS BLOCK WITH NO ASSIGN STATEMENTS

OR INSTANTIATIONS

  • To store your position, create an 16-bit shift register module.

– The declaration should be as follows: position_shifter(pos,clk,rst,sr,sl);

– On every clock, it should initialize to POS[15:0]= 16’b0….00000001 when rst is high

and otherwise it should right shift when shift_right is high and left when shift_left is high

– You need to make sure you don’t accidentally move off the board Right or Left

– YOU MUST USE THE ALWAYS BLOCK WITH NO ASSIGN STATEMENTS

OR INSTANTIATIONS

  • To create the LED display:

– AND each of the 16 bits from the position register with the output of the pulser to create

a blinking indicator. Then XOR this result with the output of the POW position flipflop.

– The pulser will have a duty cycle less than 50% so that the cursor is shown as short blinks

of light when not over a POW and the inverse when over a POW.

– YOU CAN USE WHATEVER YOU LIKE TO ACHIEVE THIS. (Hint: a clock

divider wouldn’t be a bad idea)

  • You need to figure out what to provide to the d input of the pow position flip flop (
  • You need to figure out to create the effect of clearing some bits if the cursor position is the

same as a POW position

  • Use a NOR (of the LED outputs) to figure out when the game is over
  • Remember to set the RGB LEDs correctly.

POW Position 16-bit flip flop module:

 Declaration: pow_position (pos,clk,rst ,init,d);

 Inputs: [15:0]init(from random2) and [15:0]d(where does this come from?), Outputs: [15:0]pos(where does this go to?)

 One every clock, load _init if rst is pressed and load d otherwise

YOUR Position 16-bit shift register module:

 Declaration: position_shifter(pos,clk,rst,sr,sl);

 Every clock, it should initialize POS[15:0]=16’b0000000000000001 when rst is high

 Otherwise, shift when shift_right(where does this come from?) is high and left when shift_left(where does this come from?) is high

LED Display:

 AND each of the 16 bits from the position register with output of the pulser to create a blinking indicator.

 XOR this result with the output of the POW position flipflop.

 Pulser: has duty cycle less then 50% so that the cursor is shown as short blinks of light when not over a POW and inverse when over a

POW.

 Clear Bits: create the effect of clearing some bits if the cursor position is the same as a POW position

 Game Over: use a NOR to figure out when game is over, create some indication

Requirements: well detailled | .doc file   |   .doc file

Calculate the price
Make an order in advance and get the best price
Pages (550 words)
$0.00
*Price with a welcome 15% discount applied.
Pro tip: If you want to save more money and pay the lowest price, you need to set a more extended deadline.
We know how difficult it is to be a student these days. That's why our prices are one of the most affordable on the market, and there are no hidden fees.

Instead, we offer bonuses, discounts, and free services to make your experience outstanding.
How it works
Receive a 100% original paper that will pass Turnitin from a top essay writing service
step 1
Upload your instructions
Fill out the order form and provide paper details. You can even attach screenshots or add additional instructions later. If something is not clear or missing, the writer will contact you for clarification.
Pro service tips
How to get the most out of your experience with Homework Mules
One writer throughout the entire course
If you like the writer, you can hire them again. Just copy & paste their ID on the order form ("Preferred Writer's ID" field). This way, your vocabulary will be uniform, and the writer will be aware of your needs.
The same paper from different writers
You can order essay or any other work from two different writers to choose the best one or give another version to a friend. This can be done through the add-on "Same paper from another writer."
Copy of sources used by the writer
Our college essay writers work with ScienceDirect and other databases. They can send you articles or materials used in PDF or through screenshots. Just tick the "Copy of sources" field on the order form.
Testimonials
See why 20k+ students have chosen us as their sole writing assistance provider
Check out the latest reviews and opinions submitted by real customers worldwide and make an informed decision.
Business Studies
Great paper thanks!
Customer 452543, January 23rd, 2023
Technology
Thank you for your work
Customer 452551, October 22nd, 2021
Psychology
I requested a revision and it was returned in less than 24 hours. Great job!
Customer 452467, November 15th, 2020
Accounting
Thank you for your help. I made a few minor adjustments to the paper but overall it was good.
Customer 452591, November 11th, 2021
Education
Thank you so much, Reaserch writer. you are so helpfull. I appreciate all the hard works. See you.
Customer 452701, February 12th, 2023
Psychology
Thank you. I will forward critique once I receive it.
Customer 452467, July 25th, 2020
Political science
I like the way it is organized, summarizes the main point, and compare the two articles. Thank you!
Customer 452701, February 12th, 2023
Political science
Thank you!
Customer 452701, February 12th, 2023
Finance
Thank you very much!! I should definitely pass my class now. I appreciate you!!
Customer 452591, June 18th, 2022
11,595
Customer reviews in total
96%
Current satisfaction rate
3 pages
Average paper length
37%
Customers referred by a friend
OUR GIFT TO YOU
15% OFF your first order
Use a coupon FIRST15 and enjoy expert help with any task at the most affordable price.
Claim my 15% OFF Order in Chat
Show more
<
Live Chat 1 7633094299EmailWhatsApp

Order your essay today and save 15% with the discount code WELCOME