Question: This program turns the DE 1 0 - Lite board into a playground of sorts. Imagine each switch on the board as a button, and

This program turns the DE10-Lite board into a playground of sorts. Imagine each switch on the board as a button, and each LED as a colorful light bulb. As you toggle the switches, the corresponding LEDs light up or dim down accordingly, reflecting your whims in real-time.
But there's a twist! Not only does it respond to your switch flips, but it also keeps track of how many switches are currently in the "on" position. This count is then displayed on a 7-segment display, giving you a visual cue of your switch-flipping spree. It's like being the conductor of a light symphony, where every flip adds a note to the playful melody of lights.
My addresses for all my devices :
Table 5 summarizes the memory map used in the DE10-Lite Computer.
Base Address End Address I/O Peripheral
0x000000000x03FFFFFF SDRAM
0x080000000x0800FFFF FPGA On-chip Memory
0x090000000x09001FFF FPGA On-chip Memory Character Buffer
0xFF2000000xFF20000F Red LEDs
0xFF2000200xFF20002F 7-segment HEX3HEX0 Displays
0xFF2000300xFF20003F 7-segment HEX5HEX4 Displays
0xFF2000400xFF20004F Slider Switches
0xFF2000500xFF20005F Pushbutton KEYs
s of code that does the following :
1.) Uses 3 Devices
2.) Uses Infinite Loops and allows user interaction until stopped
3.) The first change is functionable
4.) The Second change is functionable
5.) Overall program functions as described in the proposal's minimum requirements
6.) At-Least 60 Lines of NIOS II DE-10 Lite Instructions
7.) Meaningful and accurate comments included with every instruction
8.) Detailed program gives after . End directive
1.) The program I want to make allows the user to control LEDs on the DE10-Lite board using the board's switches as the input device. Each switch corresponds to one LED, and the program would read the state of the switches and updates the LEDs accordingly. The program I want to make, would use an infinite loop, that constantly checks the switches and adjusts the LEDs based on the switch state the user decides to select.
2.) My Input device would be using the switches. My Output would be the LEDS
3.) User Input: The user interacts with the program by toggling the switches.
Each switch corresponds to one of the 10 LEDs, allowing the user to control each LED individually deciding what switch the user would want to use.
4.) The program controls the 10 LEDs on the DE10-Lite board according to the state of the switches.
If the switch is on or off it directly affects the corresponding LED on or off
5.) First Change: Reading the switch inputs.
The program would continuously read the state of the switches.
The program uses this input to determine which LEDs should be turned on or off.
6.) Second Change : Update the LEDs based on the switch inputs.
The program would update the state of the LEDs based on the current state of the switches.
This mapping is direct, with each switch controlling one LED.
7.) Third Change: Looping back to continuously read switches and update LEDs.
The program continuously loops back to read switch inputs and update the state of the LEDs accordingly depending on the users input .
The use of the Infinite loop ensures real-time control of the LEDs based on switch input.
8.) After the user flips a switch, the count of the number of switches currently in the "on" position will show in the 7-seg display.

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 Programming Questions!