c-programming

Specifications You will need to implement an Adder of two 16 bit integer numbers on the DE0 board. The operands for the adder will be provided by the use of buttons on the board. Button at position 0 (from the right) will be used to provide values for the two operands of the Adder. Every button press of Button0 will increment the operand by 1. Button1 will be used to save the values in memory and Button2 will perform the addition. This is illustrated in Figure 1 below. All values (i.e. operands and results) will need to be displayed on the Seven Segment Display of the DE0 board. The adder will function in two modes as follows: Mode 1: In this mode, two values are entered using Button0 and the result of the addition of these two values are displayed on the Seven Segment Display. Mode 2: This mode requires only one input. This is the length, n, of the two arrays A and B. Once this value is entered, your program will fill the arrays with random Add Save Increment Seven Segment Display Figure 1: 16 bit adder using Buttons and Seven Segment Display values between 0 and 10. Your program should then display the result of the following operation: 𝑆𝑢𝑚 = ∑𝐴(𝑖) ∗ 𝐵(𝑖) 𝑛−1 𝑖=0 Deliverables: (1) Log book documentation showing your workings towards the implementation of your programs, your observations, your challenges and resolutions and snapshots of the displays on the DE0 board. Your logbook should also provide design charts for your programs and snippets of your code. Your implementation will need to be as modular as possible (i.e. using functions for different tasks). (2) Demonstration of your programs for both Mode 1 and Mode 2.

 

Order from us and get better grades. We are the service you have been looking for.