Question: MATLAB Exercise Perform the following tasks: 1) Write a Matlab function implements the curve shown on slide 25 of Module 8. The function should take

MATLAB Exercise Perform the following tasks: 1) Write a Matlab function implementsMATLAB Exercise

Perform the following tasks:

1) Write a Matlab function implements the curve shown on slide 25 of Module 8. The function should take the percentage of utilization as output and return the inflation factor.

2) Use Matlab to evaluate the following. Suppose that for a certain application, the cost per SLOC is estimated to be $135, that one line of code can be represented by 1 line in the program memory and that the estimated number of lines of code is 6,000. Furthermore, the microcontrollers have been down-selected to the following three options: (i) the PIC16F883, (ii) the PIC16F1786, (ii) and the PIC16F1938. Evaluate and plot the cost per item as a function of number of produced items (ranging from 1000 to 10,000,000) for each of the three options with and without taking into account the utilization. You are required to provide two plots here: one while not taking into account utilization and one while taking into account utilization. Make sure to indicate the curves for the three options by different colors.

3) Suppose that it will be required that these 6,000 lines must be executed within 1.0 milliseconds and that the execution time of each line of code takes 4 clock cycles. Discuss the impact of this on your design choice.

4) Provide a write-up (in Word or other comparable text editor) of your findings. Include all the outputs of your Matlab code in your text. Also, include a short discussion for each of the plots and tasks and make sure to include references to any equations or documents that you used.

The True Cost Of Full Resource Utilization 0 Experience 5 Folklore 0 25 50 75 100 utilization of speed and memory capacity (percent) Boehm, "The High Cost of Software", 1975 Figure 5. Hardware Strains Cause Major Software Impact Economics.25 The True Cost Of Full Resource Utilization 0 Experience 5 Folklore 0 25 50 75 100 utilization of speed and memory capacity (percent) Boehm, "The High Cost of Software", 1975 Figure 5. Hardware Strains Cause Major Software Impact Economics.25

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!