Execute the application from sdram

Assignment Help Electrical Engineering
Reference no: EM131301344

1. Write a retro version of the 1970's classic kill the bit computer game for the DE board. The goal in the kill the bit game is to turn off all of the four LEDs using the four pushbuttons. The game starts with an initial non-zero pattern displayed in the LEDs. The pattern constantly does a circular shift moving through the LEDs in a loop with a time delay to slow down the shifts. If you hit one of the four pushbuttons exactly when the the same number LED is turned on, it will turn off one LED in the pattern. If you hit a pushbutton and it's LED is off another LED turns on.

Here is how the program works. Each time just before the pattern shifts, the pattern is bitwise exclusive or'ed with one input sample from the pushbuttons to generate a new pattern. When both the pushbutton is pushed and its corresponding bit in the pattern are High, one less bit will be High in the new pattern after the exclusive or (i.e., 1 xor 1 is 0). After the shift, one less LED will be turned on since there is one less "1" in the new pattern. If your timing is off and the LED is not turned on when you hit the pushbutton, a new high bit will be generated in the pattern (i.e., 1 xor 0 is 1). When this happens, the new "1" bit in the pattern lights another LED. Note that you need a "1" when a pushbutton is pressed and a "1" to turn on an LED for the xor function to work.

Display the elapsed time in the LCD display (or seven-segment displays) and stop the time display when a player wins the game (turns out all LEDs). Adjust the shift time delay for reasonable game play. Blink all of the LEDs when a player wins. If you want a more challenging game, use a pattern and shift register larger than four bits and just display four bits at a time in the LEDs.

2. Port an interesting C application program to the Nios II processor. Execute the application from SDRAM.

Reference no: EM131301344

Questions Cloud

How many shares did she purchase : Hope invested $9,000 in a mutual fund when the price per share was $30. The fund has a load fee of $300. How many shares did she purchase?
Determine the routes : Unfortunately, the Dispatcher is down and Sharon is seeking your assistance in helping her set up an Excel spreadsheet to help her determine the routes.
What is the projects payback period and net present value : Project M has a cost of $65,125, expected net cash inflows of $13,000 per year for ten years, and a cost of capital of 11%. What is the project’s payback period? What is the project's net present value?
What is the expense ratio for marks mutual fund : Mark owns a mutual fund with a NAV of $45.00 per share and expenses of $1.45 per share. What is the expense ratio for Mark's mutual fund?
Execute the application from sdram : Display the elapsed time in the LCD display (or seven-segment displays) and stop the time display when a player wins the game (turns out all LEDs). Adjust the shift time delay for reasonable game play. Blink all of the LEDs when a player wins. If ..
What is hunter return from selling his shares in mutual fund : When Hunter purchased the shares, the NAV per share was $70. A year later, Hunter sold the shares at a NAV of $68 per share. What is Hunter's return from selling his shares in the mutual fund?
Regarding the change in the money : Under these circumstances, if the Fed buys a Treasury security worth $200 million from a bank, which of the following can be expected regarding the change in the money supply? Assume that the required reserve ratio is 10%, and that all currency is..
Reflect on what you learned about leadership from research : Reflect on what you learned about leadership from your research. Reflect on the implications for your personal leadership style.
What are the tax consequences of renas ownership : Rena purchased 200 shares of a no-load stock mutual fund.- What are the tax consequences of Rena's ownership of this stock fund? Rena is in a 35% marginal tax bracket.

Reviews

Write a Review

Electrical Engineering Questions & Answers

  Why the noise level is much lower than the signal

A signal is sampled every 1ms for 20ms, with the following actual values of the analogue voltage at successive sampling times. Plot the values of the voltage recorder by a 5 volt, 4 bit ADC assuming that the noise level is much lower

  Design a moore sequential circuit to control the lights

As indicated from the diagram, when LEFT = 1 the lights flash in a pattern LA on; LA and LB on; LA, LB, and LC on;all off; and then the sequence repeats. When RIGHT = 1, the lightsequence is similar. If a switch fromt LEFT to RIGHT (or viceversa) ..

  What is the motor efficiency as operated

What is the motor efficiency as operated?

  Determine how many kilo grams of conductor are in the line

a line is 845miles in length. the line contains four conductors, each weighing 2526lb per 1000 ft. how many kilo grams of conductor are in the line

  Derive the relation between the liquid and gas concentration

Derive the relation between the liquid and gas concentration at any level in the tower, as at point P.- and prove the equation below;

  What is the load voltage for each of these conditions

If the lead temperature of a 1N4736A zener diode rises to 100°C, what is the diode's new power rating?

  Define whether discrete-time systems are causal or noncausal

Determine whether the following discrete-time systems are causal or noncausal, have memory or are memoryless, are linear or nonlinear, are time invariant or time varying. In the following parts, x[n] is an arbitrary input and y[n] is the response

  Find expressions for the voltage-power and stored energy

The current flowing through a 300-mH inductance is given by 5e(-200t). Find expressions for the voltage, power, and stored energy. Sketch the waveforms to scale for 0

  What is the current flow of a circuit containing inductance

(A) What is the current flow of a circuit containing inductances of 1-H and 2-H connected in series to a 440 V 60 Hz source (B) What would the total circuit current flow be if the same two coils were connected in parallel to the voltage source

  Design and draw a ladder diagram circuit suitable for a plc

Design and draw a ladder diagram circuit suitable for a PLC which will fulfil the control requirement - Explain briefly the technique of multiplexed switching of analogue signals.

  Compare characteristics of dc current source with dc voltage

Compare the characteristics of a dc current source with those of a dc voltage source. - How are they similar and how are they different?

  Calculate the maximum fanout for the low output condition

For vX = vY = 5 V, determine the currents and voltages listed in the figure. - Calculate the maximum fanout for the low output condition.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd