Question: CPE 325: Embedded Systems Laboratory Laboratory Assignment #5 (100 pts] Assignment 1. Write an assembly program that evaluates the equation Y mX +C for a
CPE 325: Embedded Systems Laboratory Laboratory Assignment #5 (100 pts] Assignment 1. Write an assembly program that evaluates the equation Y mX +C for a given integer array, X. Assume that m and C are integer constants. This program is responsible for initializing the inputs-array X, m, C, calling the two subroutines-SW_linear, HW_linear and allocating the space to store the results calculated by the subroutines. This program is also responsible for passing the required input parameters, array X, m, C, and address of the memory location reserved to store the result to the subroutines using the program stack 2. SW_linear uses Shift-and-Add multiplication algorithm and HW_linear uses Hardware Multiplier to multiply m and X while evaluating the equation. 3. Determine the number of clock cycles required to evaluate the equation by each subroutine. How many elements can be evaluated using SW_linear and HW_linear in a sec? Explain which one is more efficient and why
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
