0% found this document useful (0 votes)
49 views

Computer Architecture

This document provides an introduction to a computer organization lecture. It discusses why computer organization is important for computer scientists and engineers. It also covers trends like Moore's law and the power wall that are pushing the field towards parallelism. The document outlines the course topics, which will include assembly language, pipelining, memory hierarchies and reliability. It discusses how computer performance has historically improved and what this means for programmers going forward. Finally, it provides an overview of computer components, manufacturing processes, and technology trends impacting processors, memory and I/O.

Uploaded by

Asad Javed
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
49 views

Computer Architecture

This document provides an introduction to a computer organization lecture. It discusses why computer organization is important for computer scientists and engineers. It also covers trends like Moore's law and the power wall that are pushing the field towards parallelism. The document outlines the course topics, which will include assembly language, pipelining, memory hierarchies and reliability. It discusses how computer performance has historically improved and what this means for programmers going forward. Finally, it provides an overview of computer components, manufacturing processes, and technology trends impacting processors, memory and I/O.

Uploaded by

Asad Javed
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 21

Lecture 1: CS/ECE 3810 Introduction

• Today’s topics:

 Why computer organization is important


 Logistics
 Modern trends

1
Why Computer Organization

• Embarrassing if you are a BS in CS/CE and can’t


make sense of the following terms: DRAM, pipelining,
cache hierarchies, I/O, virtual memory, …

• Embarrassing if you are a BS in CS/CE and can’t decide


which processor to buy: 3 GHz P4 or 2.5 GHz Athlon
(helps us reason about performance/power), …

• Obvious first step for chip designers, compiler/OS writers

• Will knowledge of the hardware help you write better


programs?

2
Must a Programmer Care About Hardware?

• Must know how to reason about program performance


and energy

• Memory management: if we understand how/where data


is placed, we can help ensure that relevant data is nearby

• Thread management: if we understand how threads


interact, we can write smarter multi-threaded programs

 Why do we care about multi-threaded programs?

3
Example

200x speedup for matrix vector multiplication

• Data level parallelism: 3.8x


• Loop unrolling and out-of-order execution: 2.3x
• Cache blocking: 2.5x
• Thread level parallelism: 14x

4
Key Topics

• Moore’s Law, power wall


• Use of abstractions
• Assembly language
• Computer arithmetic
• Pipelining
• Using predictions
• Memory hierarchies
• Reliability

5
Logistics

• See class web-page


https://app.schoology.com/course/494865353

• Course access code: 4T3TG-7VN97

• Textbook: Computer Organization – HW/SW Interface,


Patterson and Hennessy, 5th edition

• Reference book: Structured Computer Organization,


Andrew S. Tanenbaum, 6th edition

6
Course Organization

• 20% midterm, 40% final, 20% quizzes & assignments,


20% semester project

• Co-operation policy: you may discuss – you may not


see someone else’s written matter when writing your
solution

• Its better to print slides just before class

7
Lab Organization

• Instead of Assembly Language, we will work on Arduino


Boards in the Lab. Read more about Arduino:
https://www.arduino.cc/

• Following kit will be used for lab work, three students will
work on one kit:
http://www.ewallpk.com/index.php?id_product=19&controller=product

• Semester project will be Arduino based project, its better to


decide early.

8
Microprocessor Performance

Source: H&P Textbook


50% improvement every year!!
What contributes to this improvement?
9
Important Trends

• Running out of ideas to improve single thread performance

• Power wall makes it harder to add complex features

• Power wall makes it harder to increase frequency

10
Important Trends

• Historical contributions to performance:


1. Better processes (faster devices) ~20%
2. Better circuits/pipelines ~15%
3. Better organization/architecture ~15%

In the future, bullet-2 will help little and bullet-1 will


eventually disappear!

Pentium P-Pro P-II P-III P-4 Itanium Montecito


Year 1993 95 97 99 2000 2002 2005
Transistors 3.1M 5.5M 7.5M 9.5M 42M 300M 1720M
Clock Speed 60M 200M 300M 500M 1500M 800M 1800M

Moore’s Law in action At this point, adding transistors


to a core yields little benefit 11
What Does This Mean to a Programmer?

• Today, one can expect only a 20% improvement; the


improvement is even lower if the program is not
multi-threaded

 A program needs many threads

 The threads need efficient synchronization and


communication

 Data placement in the memory hierarchy is important

12
Challenges for Hardware Designers

• Find efficient ways to

 boost single-thread performance

 improve data sharing

 boost programmer productivity

 manage the memory system

 build accelerators for important kernels

 reduce system energy per instruction


13
The HW/SW Interface

Application software a[i] = b[i] + c;

Compiler

lw $15, 0($2)
add $16, $15, $14
Systems software add $17, $15, $13
(OS, compiler) lw $18, 0($12)
lw $19, 0($17)
add $20, $18, $19
sw $20, 0($16)
Assembler

Hardware 000000101100000
110100000100010
14

Computer Components

• Input/output devices

• Secondary storage: non-volatile, slower, cheaper

• Primary storage: volatile, faster, costlier

• CPU/processor (datapath and control)

15
Wafers and Dies

Source: H&P Textbook 16


Manufacturing Process

• Silicon wafers undergo many processing steps so that


different parts of the wafer behave as insulators,
conductors, and transistors (switches)

• Multiple metal layers on the silicon enable connections


between transistors

• The wafer is chopped into many dies – the size of the die
determines yield and cost

17
Processor Technology Trends

• Shrinking of transistor sizes: 250nm (1997) 


130nm (2002)  70nm (2008)  35nm (2014)

• Transistor density increases by 35% per year and die size


increases by 10-20% per year… functionality improvements!

• Transistor speed improves linearly with size (complex


equation involving voltages, resistances, capacitances)

• Wire delays do not scale down at the same rate as


transistor delays

18
Memory and I/O Technology Trends

• DRAM density increases by 40-60% per year, latency has


reduced by 33% in 10 years (the memory wall!), bandwidth
improves twice as fast as latency decreases

• Disk density improves by 100% every year, latency


improvement similar to DRAM

• Networks: primary focus on bandwidth; 10Mb  100Mb


in 10 years; 100Mb  1Gb in 5 years

19
Power Consumption Trends

• Dyn power a activity x capacitance x voltage2 x frequency

• Voltage and frequency are somewhat constant now,


while capacitance per transistor is decreasing and number
of transistors (activity) is increasing

• Leakage power is also rising (function of #trans and voltage)

20
Source: H&P Textbook
Next Class

• Topics: Performance, MIPS instruction set


architecture (Chapter 2)

• Visit the class web-page


https://app.schoology.com/course/494865353

• Course access code: 4T3TG-7VN97

21

You might also like