hw6 - CDA 3101 Assignment 6 Due in class on Friday Nov.5...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CDA 3101 Assignment 6 Due in class on Friday, Nov.5 Turn hardcopy in class, stapled, with your name and “CDA 3101 Assignment 6 clearly written on it. Assignments submitted after Nov. 5, 12:35 pm but before Nov. 8, 12:35 pm will be considered one day late. 1. (7 points) Consider the following MIPS assembly language code. bzero: beq $a1, $zero, end loop: sb $zero, 0($a0) addi $a0, $a0, 1 addi $a1, $a1, -1 bne $a1, $zero, loop end: jr $ra Given a 2GHz processor with the CPI’s in the table below, what would be the exact CPU time of this function if the initial value of $a1= 3 ? Instruction Type CPI Arithmetic (add, sub, addi) 3 Memory (load, store) 5 Control (branches and jumps) 4 2. (5 points) Suppose a computer runs at 2GHz. If this computer runs an MPEG-4 video encoder that takes 1 billion instructions and has the following distribution of instructions. 20% Floating point CPI = 3 10% Integer CPI = 1 30% Load CPI = 2 20% Store CPI = 1 15% Branches CPI = 4 5% Other CPI = 1.5 a. What is the effective or average CPI for this video encoder?
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern