Question: Can you write code based on CPUlator's ARMv 7 DE 1 - SoC system containing an ARMv 7 processor ? Figure 2 . FlowcCan you

Can you write code based on CPUlator's ARMv7 DE1-SoC system containing an ARMv7processor?
Figure 2. FlowcCan you write code based on CPUlator's ARMv7 DE1-SoC system containing an ARMv7processor?Can you write code based on CPUlator's ARMv7 DE1-SoC system containing an ARMv7processor?hart of the game.
Explanation of the Game
"Calculate the Sum" is an addition skill game played using 7-Segment Display and Push button.
The aim of the game is to collect 5 randomly appearing numbers between 1 and 9 each time
and get the correct answer.
The gameplay is as follows:
By pressing "Push Button 3"5 times, different random numbers are generated each time and
the number is displayed on the screen. These numbers that appear each time are added up.
Then, by pressing the 1 and 2 Push Buttons, a total of 7 segments between 0 and 100 are
selected on the display. (Push button number 1 increases, push button number 2 decreases.)
After the total found by the user is seen on the screen, push button number 0 is pressed and the
program says it is true or false.
Figure 1. Example Game Session
main_loop is the main subroutine from which the code is executed. The wait_timer subroutine is
the timer that works to generate random numbers. The key_press subroutine is the subroutine
used to understand which key was pressed. increment_value, decrement_value are subroutines
that increase and decrease the value entered by the user on the screen. capture_value,
add_loop, capture_numbers are the necessary subroutines for summing the selected numbers.
The compare, won_display, fail_display subroutines compare the value entered by the user and
calculated by the machine and tell the user the result of the game.
 Can you write code based on CPUlator's ARMv7 DE1-SoC system containing

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!