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 DELite 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 realtime.
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 segment display, giving you a visual cue of your switchflipping 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 summarizes the memory map used in the DELite Computer.
Base Address End Address IO Peripheral
xxFFFFFF SDRAM
xxFFFF FPGA Onchip Memory
xxFFF FPGA Onchip Memory Character Buffer
xFFxFFF Red LEDs
xFFxFFF segment HEXHEX Displays
xFFxFFF segment HEXHEX Displays
xFFxFFF Slider Switches
xFFxFFF Pushbutton KEYs
s of code that does the following :
Uses Devices
Uses Infinite Loops and allows user interaction until stopped
The first change is functionable
The Second change is functionable
Overall program functions as described in the proposal's minimum requirements
AtLeast Lines of NIOS II DE Lite Instructions
Meaningful and accurate comments included with every instruction
Detailed program gives after End directive
The program I want to make allows the user to control LEDs on the DELite 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.
My Input device would be using the switches. My Output would be the LEDS
User Input: The user interacts with the program by toggling the switches.
Each switch corresponds to one of the LEDs, allowing the user to control each LED individually deciding what switch the user would want to use.
The program controls the LEDs on the DELite board according to the state of the switches.
If the switch is on or off it directly affects the corresponding LED on or off
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.
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.
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 realtime control of the LEDs based on switch input.
After the user flips a switch, the count of the number of switches currently in the on position will show in the seg display.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
