Department of Computer Systems Engineering and Sciences
Assignment No: 02 Marks: 05 CLO 03: C4 & PLO: 02 Computer Architecture and Organization (CS-222) Q. NO: 01 Analyze Cache Mapping with different mapping techniques (Direct Mapping, Associated Mapping, Set- Associated Mapping). Q. NO: 02 Suppose we have two implementations of the same instruction set architecture. Computer A has a dock cycle time of 250 ps and a CPI of 2.0 for some program, and computer B has a clock cycle time of 500 ps and a CPI of 1.2 for the same program. Which computer is faster for this program and by how much? Q. NO: 03 Consider the execution of an object code with 2*106 instructions on a 400MHz processor. The program consists of four major types of instructions. The instruction mix and number of cycles (CPI) needed for each instruction type are given below based on the result of a program trace experiment: Instruction Type CPI Instruction Mix Arithmetic and logic 1 60% Load/ store with cache hit 2 18% Branch 4 12% Memory reference with cache miss 8 10% a) Calculate the average CPI when the program is executed on a uniprocessor with the above trace results. b) Calculate the corresponding MIPS rate based on the CPI obtained in Part (a).
(Note: Last date for submission will be November 08th, 2022)