1
Assignment 01
Computer Architecture
Submitted By:
Md. Ashikur Rahman Khan
152-35-1185
B
Submitted To:
SHEIKH SHAH MOHAMMAD MOTIUR RAHMAN
Lecturer
Department of SWE
Daffodil International University
Date of submission:
13-Oct-17
2
Question a: State the operations performed by a processor.
Ans:
Q b: What you understand by 64 bit processor?
Ans:
3
Q c: A compiler designer is trying to decide between two code sequences for a particular
machine. Based on the hardware implementation, there are three different classes of
instructions: class A, class B, and class C, and they require one, two, and three cycles
per instruction, respectively.
The first code sequence has 5 instructions: 2 of A, 1 of B, and 2 of C
The second sequence has 6 instructions: 4 of A, 1 of B, and 1 of C
Compute the CPU cycles for each sequence.
Which sequence is faster?
What is the CPI for each sequence?
Ans:
4
Q d: Define CPU Execution Time with possible equation.
Ans:
5
Q e: State the functions and operations of a computer.
Ans:
6
Q f: Suppose we have two implementations of the same Instructions
For a given program, Machine A has a clock cycle time of 275 ps and a CPI of
2.0,Machine B has a clock cycle time of 450 ps and a CPI of 1.2
Which machine is faster for this program, and by how much?
Ans:
7
Q g: Which parameters are used to evaluate the processor?
Ans:
8
Q h: A benchmark program is run on a 40 MHz processor.The executed program consists of
100,000 instruction executions, with the following instruction mix and clock cycle count:
Determine the effective CPI, MIPS rate, and execution time for this program.
Ans:
9
Q i: Two different compilers are being tested on the same program for a 4 GHz machine with
three different classes of instructions: Class A, Class B, and Class C, which require 1, 2,
and 3 cycles, respectively.
The instruction count produced by the first compiler is 5 billion Class A instructions, 1
billion Class B instructions, and 1 billion Class C instructions.
The second compiler produces 10 billion Class A instructions, 1 billion Class B
instructions, and 1 billion Class C instructions.
Which compiler produces a higher MIPS? Which compiler produces a better execution time?
Ans:
10
Q j: Draw the functional view of a computer.
Ans:
11
Q k: Consider the execution of a program which results in the execution of 2 million
instructions on a 400-MHz processor. The program consists of four major types of
instructions. The instruction mix and the CPI for each instruction type are given below
based on the result of a program trace experiment:
Determine the CPI and MIPS rate.
Ans:
12
Q l: A program runs in 10 seconds on computer X with 2 GHz clock rate
1.What is the number of CPU cycles on computer X ?
We want to design computer Y to run same program in 6 seconds
But computer Y requires 10% more cycles to execute program
2.What is the clock rate for computer Y ?
3. Comment on the results.
Ans:
13

More Related Content

PDF
Vlsi lab viva question with answers
PDF
UVM ARCHITECTURE FOR VERIFICATION
PPT
pipelining
PPT
Distance vector routing
PPTX
Basics of Vhdl
PPTX
Computer Organisation - Addressing Modes
PPTX
Verilog presentation final
PDF
BUilt-In-Self-Test for VLSI Design
Vlsi lab viva question with answers
UVM ARCHITECTURE FOR VERIFICATION
pipelining
Distance vector routing
Basics of Vhdl
Computer Organisation - Addressing Modes
Verilog presentation final
BUilt-In-Self-Test for VLSI Design

What's hot (20)

PDF
Verification Engineer - Opportunities and Career Path
PPTX
AMBA Ahb 2.0
PPTX
4.2 variantsof turing machines (types of tm)
PPT
Arithmetic Logic Unit (ALU)
PDF
8085 microprocessor lab manual
PPTX
Advanced Pipelining in ARM Processors.pptx
PPTX
Job sequencing with deadline
PPTX
Instruction pipeline: Computer Architecture
PDF
Stop and-wait protocol
DOCX
8096 microcontrollers notes
PPTX
Processor Organization and Architecture
PPTX
Data transfer scheme
PDF
Delays in verilog
PPTX
Finite state machines
PPTX
Serial Data Communication
PPT
Instruction format
PPTX
Universal Serial Bus (USB)
PDF
Processor Organization and Architecture
PDF
ARM Processor Tutorial
Verification Engineer - Opportunities and Career Path
AMBA Ahb 2.0
4.2 variantsof turing machines (types of tm)
Arithmetic Logic Unit (ALU)
8085 microprocessor lab manual
Advanced Pipelining in ARM Processors.pptx
Job sequencing with deadline
Instruction pipeline: Computer Architecture
Stop and-wait protocol
8096 microcontrollers notes
Processor Organization and Architecture
Data transfer scheme
Delays in verilog
Finite state machines
Serial Data Communication
Instruction format
Universal Serial Bus (USB)
Processor Organization and Architecture
ARM Processor Tutorial
Ad

Similar to Assignment 01 (20)

PPT
Computer Organization Design ch2Slides.ppt
PPTX
2. Module_1_Computer Performance, Metrics, Measurement, & Evaluation (1).pptx
DOCX
Digital Electronics & Computer Oraganisation
PDF
Parallel Computing - Lec 6
PPT
Computer Performance Evaluation(CPI).ppt
DOCX
IFSM 310 Software and Hardware Infrastructure ConceptsComputer.docx
PDF
Full solution manual for modern processor design by john paul shen and mikko ...
PDF
Solution manual for modern processor design by john paul shen and mikko h. li...
PPT
Lecture 3
PDF
DRDO Previous Year Computer Question (1000 MCQ)
PPT
L-2 (Computer Performance).ppt
PDF
Computer architecture short note (version 8)
PPT
Risc revolution
DOCX
Penn  State  University          School  of.docx
PDF
How to use Apache TVM to optimize your ML models
DOC
circuit diagram
PPTX
CISC & RISC Architecture
PPTX
05-machine-basics.pptx
PPT
2 CPU Performance (1) by computer organization
Computer Organization Design ch2Slides.ppt
2. Module_1_Computer Performance, Metrics, Measurement, & Evaluation (1).pptx
Digital Electronics & Computer Oraganisation
Parallel Computing - Lec 6
Computer Performance Evaluation(CPI).ppt
IFSM 310 Software and Hardware Infrastructure ConceptsComputer.docx
Full solution manual for modern processor design by john paul shen and mikko ...
Solution manual for modern processor design by john paul shen and mikko h. li...
Lecture 3
DRDO Previous Year Computer Question (1000 MCQ)
L-2 (Computer Performance).ppt
Computer architecture short note (version 8)
Risc revolution
Penn  State  University          School  of.docx
How to use Apache TVM to optimize your ML models
circuit diagram
CISC & RISC Architecture
05-machine-basics.pptx
2 CPU Performance (1) by computer organization
Ad

More from Ashik Khan (12)

PDF
Online food project
PPTX
Removing ambiguity-from-cfg
PPTX
Set associative mapping
PDF
Travel management system in html 1
PDF
Dhakavehiclesystem 170417113343.pdf abid
PDF
Final project of vehicle system.pdf this is it
DOCX
Final project of vehicle system
PPTX
Push down automata
PPTX
Turing machine
DOCX
vehicle management system project report
PPTX
vehicle management system project
DOCX
Srs of dhaka vehicle system
Online food project
Removing ambiguity-from-cfg
Set associative mapping
Travel management system in html 1
Dhakavehiclesystem 170417113343.pdf abid
Final project of vehicle system.pdf this is it
Final project of vehicle system
Push down automata
Turing machine
vehicle management system project report
vehicle management system project
Srs of dhaka vehicle system

Recently uploaded (20)

PDF
Prof. Dr. KAYIHURA A. SILAS MUNYANEZA, PhD..pdf
PPTX
Information Storage and Retrieval Techniques Unit III
PDF
MLpara ingenieira CIVIL, meca Y AMBIENTAL
PPTX
AUTOMOTIVE ENGINE MANAGEMENT (MECHATRONICS).pptx
PDF
Computer organization and architecuture Digital Notes....pdf
PDF
Cryptography and Network Security-Module-I.pdf
PPTX
mechattonicsand iotwith sensor and actuator
PPTX
Petroleum Refining & Petrochemicals.pptx
PPTX
Amdahl’s law is explained in the above power point presentations
PPTX
ai_satellite_crop_management_20250815030350.pptx
PDF
LOW POWER CLASS AB SI POWER AMPLIFIER FOR WIRELESS MEDICAL SENSOR NETWORK
PDF
Unit I -OPERATING SYSTEMS_SRM_KATTANKULATHUR.pptx.pdf
PDF
Unit1 - AIML Chapter 1 concept and ethics
PDF
Applications of Equal_Area_Criterion.pdf
PPTX
A Brief Introduction to IoT- Smart Objects: The "Things" in IoT
PDF
UEFA_Carbon_Footprint_Calculator_Methology_2.0.pdf
PPTX
wireless networks, mobile computing.pptx
PDF
Accra-Kumasi Expressway - Prefeasibility Report Volume 1 of 7.11.2018.pdf
PDF
Introduction to Power System StabilityPS
PPTX
"Array and Linked List in Data Structures with Types, Operations, Implementat...
Prof. Dr. KAYIHURA A. SILAS MUNYANEZA, PhD..pdf
Information Storage and Retrieval Techniques Unit III
MLpara ingenieira CIVIL, meca Y AMBIENTAL
AUTOMOTIVE ENGINE MANAGEMENT (MECHATRONICS).pptx
Computer organization and architecuture Digital Notes....pdf
Cryptography and Network Security-Module-I.pdf
mechattonicsand iotwith sensor and actuator
Petroleum Refining & Petrochemicals.pptx
Amdahl’s law is explained in the above power point presentations
ai_satellite_crop_management_20250815030350.pptx
LOW POWER CLASS AB SI POWER AMPLIFIER FOR WIRELESS MEDICAL SENSOR NETWORK
Unit I -OPERATING SYSTEMS_SRM_KATTANKULATHUR.pptx.pdf
Unit1 - AIML Chapter 1 concept and ethics
Applications of Equal_Area_Criterion.pdf
A Brief Introduction to IoT- Smart Objects: The "Things" in IoT
UEFA_Carbon_Footprint_Calculator_Methology_2.0.pdf
wireless networks, mobile computing.pptx
Accra-Kumasi Expressway - Prefeasibility Report Volume 1 of 7.11.2018.pdf
Introduction to Power System StabilityPS
"Array and Linked List in Data Structures with Types, Operations, Implementat...

Assignment 01

  • 1. 1 Assignment 01 Computer Architecture Submitted By: Md. Ashikur Rahman Khan 152-35-1185 B Submitted To: SHEIKH SHAH MOHAMMAD MOTIUR RAHMAN Lecturer Department of SWE Daffodil International University Date of submission: 13-Oct-17
  • 2. 2 Question a: State the operations performed by a processor. Ans: Q b: What you understand by 64 bit processor? Ans:
  • 3. 3 Q c: A compiler designer is trying to decide between two code sequences for a particular machine. Based on the hardware implementation, there are three different classes of instructions: class A, class B, and class C, and they require one, two, and three cycles per instruction, respectively. The first code sequence has 5 instructions: 2 of A, 1 of B, and 2 of C The second sequence has 6 instructions: 4 of A, 1 of B, and 1 of C Compute the CPU cycles for each sequence. Which sequence is faster? What is the CPI for each sequence? Ans:
  • 4. 4 Q d: Define CPU Execution Time with possible equation. Ans:
  • 5. 5 Q e: State the functions and operations of a computer. Ans:
  • 6. 6 Q f: Suppose we have two implementations of the same Instructions For a given program, Machine A has a clock cycle time of 275 ps and a CPI of 2.0,Machine B has a clock cycle time of 450 ps and a CPI of 1.2 Which machine is faster for this program, and by how much? Ans:
  • 7. 7 Q g: Which parameters are used to evaluate the processor? Ans:
  • 8. 8 Q h: A benchmark program is run on a 40 MHz processor.The executed program consists of 100,000 instruction executions, with the following instruction mix and clock cycle count: Determine the effective CPI, MIPS rate, and execution time for this program. Ans:
  • 9. 9 Q i: Two different compilers are being tested on the same program for a 4 GHz machine with three different classes of instructions: Class A, Class B, and Class C, which require 1, 2, and 3 cycles, respectively. The instruction count produced by the first compiler is 5 billion Class A instructions, 1 billion Class B instructions, and 1 billion Class C instructions. The second compiler produces 10 billion Class A instructions, 1 billion Class B instructions, and 1 billion Class C instructions. Which compiler produces a higher MIPS? Which compiler produces a better execution time? Ans:
  • 10. 10 Q j: Draw the functional view of a computer. Ans:
  • 11. 11 Q k: Consider the execution of a program which results in the execution of 2 million instructions on a 400-MHz processor. The program consists of four major types of instructions. The instruction mix and the CPI for each instruction type are given below based on the result of a program trace experiment: Determine the CPI and MIPS rate. Ans:
  • 12. 12 Q l: A program runs in 10 seconds on computer X with 2 GHz clock rate 1.What is the number of CPU cycles on computer X ? We want to design computer Y to run same program in 6 seconds But computer Y requires 10% more cycles to execute program 2.What is the clock rate for computer Y ? 3. Comment on the results. Ans:
  • 13. 13