PAF- KARACHI INSTITUTE OF ECONOMICS & TECHNOLOGY
College of Engineering
(Department of Software Engineering)
CS1303 – Introduction to Computing
Assignment: 2
Semester: ______________________ Date of Experiment: _____________________
Student name: __________________ Faculty Signature: ______________________
Student ID: ____________________ Remarks/Comments: ____________________
PLOs PLO 01- Engineering Knowledge Bloom’s Taxonomy C2: Understand
CLO’s Aspects of Assessments Marks
CLO2 Describe and explain the basics of computer and
network organization including computer Question:1 Question:2
100%
architecture and recognize data representation in
terms of number systems.
Total Marks 15:
1. The table below indicates frequency of all instruction types executed in two different machines;
we are provided with a number of cycles per instruction for each type as given below. Consider an
implementation of Instruction set architecture with 500 MHz clock. Calculate the CPI and CPU
time. Which machine is faster and how many times it is faster than other? (Marks:10)
Machine A Machine B
Instruction Type
Frequency Cycles Cycles
ALU Instruction 50% 4 3
Load Instruction 30% 5 7
Store Instruction 5% 4 3
Branch Instruction 15% 2 4
2. If there are 23 instruction in a program which will execute on 5 processors. Suppose 4 processors
run instruction in a parallel fashion and 5th processor run programs in a pipeline fashion. Each
instruction cycle block requires 1.12nanosc to execute. How much overall time is required to
execute 23 instruction? Describe it and verify your answer with calculations and block diagram.
(Marks:15)