Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

a) For the C-code shown in the following figure, the elements of array A take a value in the range 1 to 31 and

a) For the C-code shown in the following figure, the elements of array A take a value in the range 1 to 31

a) For the C-code shown in the following figure, the elements of array A take a value in the range 1 to 31 and the elements of array B take a value in the range 65 to 156. You do not have any information on how the values are arranged in the two arrays. unsigned int A[10], B[10], C[10]; unsigned int i; for(i=0; i < 10; i++) { } C[i] = A[i]+B[i]; unsigned int A[101, B[10], C[10]; unsigned int i; www ww for (i=0; i < 10; i++)+ www {+ C[i] = A[i] +B[i]; }+ If you implement this code in Vivado-HLS, all integers will be treated as 32 bit wide and the design will use area "X" on the FPGA. Write an alternate version of this piece of C-code using user-defined data-types in Vivado- HLS so that when implemented, it uses less area than "X". Explain why the new code uses less area (20 marks). N b) Name one optimization to speed up the execution of the loop. Will this optimization require the usage of more BRAM blocks? Why? (10)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

The image provided contains two parts of a question Part a is asking for an alternate version of a given C code that adds elements of two arrays A and B and stores the result in a third array C The go... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Programming questions

Question

Discuss the importance fo Group Technology in CIM.

Answered: 1 week ago