a) For the Ccode 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 Ccode 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 VivadoHLS, 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 Ccode using userdefined datatypes 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 Ccode 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 VivadoHLS, 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 Ccode using userdefined datatypes 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...

Find all real solutions of the polynomial equation. 5x3 + 11x2 4x 2 = 0

How would you reduce stockout risk at a hospital? At a highend retailer?At Walmart ?

Is there a single standard commandline processor to parse and process argv?

On January 1, 2014, Doone Corporation acquired 60 percent of the outstanding voting stock of Rockne Company for $300,000 consideration. At the acquisition date, the fair value of the 40 percent...

There are two primary reasons that guide my approach to back up files externally. First, there's the aspect of cost savings. Investing in a hard drive with sufficient storage capacity constitutes a...

Determine the forces in members AB , AC , and AD . Point M is the centroid of triangle BCD . The forces are positive if in tension, negative if in compression. B 5.2' M 5.2' 1190 lb x D 5.2 6.6'

Based on the following information, construct a traditional financial institution balance sheet AND a balance sheet including offbalance sheet items. Market value of assets = 200 Market value of...

Smith Corp. bonds were issued 25 years ago. These bonds have a 15% required rate of return, mature in 11 years, and have a current market value of $995.10. Find the coupon rate. Round intermediate...

On January 1st, an investor purchases security A for $105. Over the next four months, dividends totaling $15 were paid on security A. On March 31st, security A was sold for $95. What is the holding...

john plans to invest $2,000 in a certificate of deposit today, and will earn 3.25% interest, compounded quarterly. How much will he have six years from now? use excel formula

Familiarize yourself with the workings and competitive landscape of Twitter (now "X") based on Internet research. Then answer the following questions: 1. (a) Perform a Porter's 5 Forces analysis on...

During the annual audit of Ajax Corp., a publicly held company, Jones, CPA, a continuing auditor, determined that illegal political contributions had been made during each of the past seven years,...

Solve it if Miximazed = 20x + 10x %3D Subject to: = X + y > 150x X> 40 and y > 20

Test your confidence in the following Project Decisions: SI. # Question 01 02 03 04 05 06 07 08 09 10 How many years did it take to construct the largest Egyptian Pyramid Pyramid of Cheops? When was...

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...

A single fair die is rolled. Let the event \(A\) be the face showing is even. Let the event \(B\) be the face showing is divisible by 3 . (a) List out the sample space of the experiment. (b) List the...

Two fair dice, one red and one green, are rolled. Let the event \(A\) be the sum of the faces showing is an even number. Let the event \(B\) be the sum of the faces showing is divisible by 3 . (a)...

Two fair dice, one red and one green, are rolled. Let the event \(A\) be the sum of the faces showing is equal to seven. Let the event \(B\) be the faces showing on the two dice are equal. (a) List...
Study smarter with the SolutionInn App