Question: (42 pts) 2. Medium answer (6 points each) (2.1). A program requires executing 100 million instructions on a processor which typically with CPI of 2
(42 pts) 2. Medium answer (6 points each) (2.1). A program requires executing 100 million instructions on a processor which typically with CPI of 2 and a 2GHz clock. How much time will the program take? (2.2), Assuming variable a is stored in register x5, b is stored in x6, e is stored in x7, and the result h is to be stored in x8, what is the RISC-V assembly instructions equivalent to the C statement h (atb) (c-5) (2.3) When determine the CPU performance, CPU time is related to Instruction count, CPI and clock cycle. Please fill out the following table to check which aspects are affected by the specific hardware and software component. Instruction count CPI Clock cycle Algorithm ISA Complier (2.4). Translate the c statement A[101-h + A131 to RSC-V assembley instructions. assuming h in x21, base address of A in x22, and each array element is a doubleword (64 bit). sd: store doubleword (ld: load doubleword, in RISC-V)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
