a) For the C-code shown in the following figure, the elements of array A take a...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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) 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)
Expert Answer:
Answer rating: 100% (QA)
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... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
Case Study: Quick Fix Dental Practice Technology requirements Application must be built using Visual Studio 2019 or Visual Studio 2017, professional or enterprise. The community edition is not...
-
Read the case study: COMMONWEALTH OF THE BAHAMAS IN THE SUPREME COURT Common Law and Equity Division 2019/CLE/gen/01037 BETWEEN NIQUEL PINDER 1 st Plaintiff SHARMAINE BARR 2 nd Plaintiff TIFFANY REID...
-
Tabulate the function f(x) = sin x for x = 0.0(0.2)1.6. From this table estimate, by linear interpolation, the value of sin 1.23. Construct a table equivalent to Figure 2.102, and so estimate the...
-
Suppose Angelica opens a small store near campus, selling beef brisket sandwiches. Use the graph below, which shows the demand and cost for Angelica's beef brisket sandwiches, to answer the following...
-
The study Digital Footprints (Pew Internet & American Life Project, www.pewinternet.org, 2007) reported that 47% of Internet users have searched for information about themselves online. The 47%...
-
Continuing Question 5, turn off the lag filter and use a notch filter to improve the performance. Simultaneously adjust Notch Freq and KVP to maximize KVP without inducing peaking in the closed-loop...
-
A company preparing for a Chapter 7 liquidation has the following liabilities: Note payable A of $90,000 secured by land having a book value of $50,000 and a fair value of $70,000. Note payable B...
-
SOUTH DAKOTA CORPORATION SOUTH DAKOTA CORPORATION uses a job - order costing system with normal costing. At the start of the period, the company had the following balances: Raw Materials inventory $...
-
Using basic accounting principles as a guide, provide arguments to support The IASB approach for reporting R&D costs, and The ASPE approach for reporting R&D costs. In this era of rapidly changing...
-
Write down the main functions of any four organ system and explain how they interact with each other.
-
Efficiency means O resources are distributed in a fair manner. O the production of one good cannot be increased without decreasing the production of another good. O all material wants are satisfied....
-
If the price of gasoline increases, the substitution effect amid price change will decrease in the quantity of gasoline demanded. a decrease in the demand (shift) for natural gas, a substitute for...
-
Technical Interview.... Finding Subarray Suppose you work for a finance company and have been given a summation task that needs to be implemented optimally. You have an array of integers, and your...
-
In a monopolistic industry, there is (are) O a. a single; free entry of new firms a single; entry of new firms is blocked O b. O c. many; free entry of new firms O d. many; entry of new firms is...
-
A profit-maximizing firm will use less of a factor of production when: The extra cost of using an additional factor unit is greater than the marginal revenue product of the additional factor unit. O...
-
Mario's employer pays the full premium on a disability income policy from an insurance company on behalf of all employees. After a hiking accident, Mario was out of work for two months and...
-
2. In the circuit given in Figure 2, i,(t) = 5.67cos(5t)A and v (t) = 70.71 cos(5t 60) V a) Find the equivalent load impedance. State whether the load is inductive or capacitive. b) Calculate the...
-
Jerry made the following contributions during 2012: His synagogue (by check).....................................................$680 The Democratic Party (by check)...
-
Jason and Mary are married taxpayers in 2012. They are both under age 65 and in good health. For this tax year, they have a total of $41,000 in wages and $500 in interest income. Jason and Mary's...
-
How much of each of the following prizes or awards is taxable? a. Cheline received a $50,000 gift bag at the Oscars in 2012. b. Jon received a gold watch worth $350 for 25 years of service to his...
-
How can we effectively analyze a firm's financial ratios?
-
In 2019, Italia Mining Corporation had sales of \($69\) million, total assets of \($45\) million, and total liabilities of \($23\) million. The interest rate on the debt is 6.5 percent, and its tax...
-
Tsingtao Companys balance sheet shows a stockholders equity book value (total common equity) of \($800,500.\) The firms earnings per share were \($3.50,\) resulting in a price/earnings ratio of...
Study smarter with the SolutionInn App