1- Consider the following HLS code.


A) Explain the functionality of this code.

B) Use the code in a Vivado project and demonstrate its functionality on the Basys3 board.

C) Change the code to apply the ap_fifo interface to the function argument. Use a FIFO to receive input from slide switches.

2- Consider the following design and testbench file.


A) What is the output of the software simulation and RTL/C co-simulation?

B) Provide a Vivado project to implement the corresponding HLS IP on the BAsys3 board. And show the result on the actual board.