0% found this document useful (0 votes)
10 views19 pages

CS224-Topic 01 Introduction

The document discusses the sixth edition of 'Computer Organization and Design,' focusing on computer abstractions and technology. It covers various classes of computers, the evolution of technology, and key concepts like performance, parallel processing, and the hardware/software interface. Additionally, it outlines the importance of abstraction in simplifying design and improving productivity in computer architecture.

Uploaded by

rasha awad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views19 pages

CS224-Topic 01 Introduction

The document discusses the sixth edition of 'Computer Organization and Design,' focusing on computer abstractions and technology. It covers various classes of computers, the evolution of technology, and key concepts like performance, parallel processing, and the hardware/software interface. Additionally, it outlines the importance of abstraction in simplifying design and improving productivity in computer architecture.

Uploaded by

rasha awad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 19

Morgan Kaufmann Publishers January 20, 2025

COMPUTER ORGANIZATION AND DESIGN 6th


Edition
The Hardware/Software Interface

TOPIC 01
Introduction

COMPUTER ORGANIZATION AND DESIGN 6th


Edition
The Hardware/Software Interface

Chapter 1
Computer Abstractions
and Technology

Chapter 1 — Computer Abstractions and Technology 1


Morgan Kaufmann Publishers January 20, 2025

§1.1 Introduction
The Computer Revolution
◼ Progress in computer technology
◼ Underpinned by domain-specific
accelerators
◼ Makes novel applications feasible
◼ Computers in automobiles
◼ Cell phones
◼ Human genome project
◼ World Wide Web
◼ Search Engines
◼ Computers are pervasive

Chapter 1 — Computer Abstractions and Technology — 3

Classes of Computers
◼ Personal computers
◼ General purpose, variety of software
◼ Subject to cost/performance tradeoff

◼ Server computers
◼ Network based
◼ High capacity, performance, reliability
◼ Range from small servers to building sized

The web server that powered the first web pages


on the WWW. Note the sticker with the warning
to not turn it off. https://cds.cern.ch/

Chapter 1 — Computer Abstractions and Technology — 4

Chapter 1 — Computer Abstractions and Technology 2


Morgan Kaufmann Publishers January 20, 2025

Classes of Computers
◼ Supercomputers
◼ Type of server
◼ High-end scientific and
engineering calculations
◼ Highest capability but represent
a small fraction of the overall https://www.kaust.edu.sa/en/news/
kaust-s-shaheen-iii-confirmed-as-
the-middle-east-s-most-powerful-
computer market supercomputer

◼ Embedded computers Supercomputing applications


◼ Hidden as components of
systems
◼ Stringent
power/performance/cost
constraints
Chapter 1 — Computer Abstractions and Technology — 5

The PostPC Era

cellphone - a telephone with no landline connection.


smartphone - includes web browsing, software applications and mobile OS.
Chapter 1 — Computer Abstractions and Technology — 6

Chapter 1 — Computer Abstractions and Technology 3


Morgan Kaufmann Publishers January 20, 2025

The PostPC Era


◼ Personal Mobile Device (PMD)
◼ Battery operated
◼ Connects to the Internet
◼ Hundreds of dollars
◼ Smart phones, tablets, electronic glasses
◼ Cloud computing
◼ Warehouse Scale Computers (WSC)
◼ Software as a Service (SaaS)
◼ Portion of software run on a PMD and a portion run in the Cloud
◼ Amazon and Google

https://www.ictinnovations.c
om/difference-between-
saas-iaas-and-paas

Chapter 1 — Computer Abstractions and Technology — 7


https://data-flair.training/blogs/features-of-cloud-computing/

What You Will Learn


◼ How programs are translated into the
machine language
◼ And how the hardware executes them
◼ The hardware/software interface
◼ What determines program performance
◼ And how it can be improved
◼ How hardware designers improve
performance
◼ What is parallel processing?
Chapter 1 — Computer Abstractions and Technology — 8

Chapter 1 — Computer Abstractions and Technology 4


Morgan Kaufmann Publishers January 20, 2025

Understanding Performance
◼ Algorithm
◼ Determines number of operations executed
◼ Programming language, compiler, architecture
◼ Determine number of machine instructions executed
per operation
◼ Processor and memory system
◼ Determine how fast instructions are executed
◼ I/O system (including OS)
◼ Determines how fast I/O operations are executed

Chapter 1 — Computer Abstractions and Technology — 9

§1.2 Seven Great Ideas in Computer Architecture

Seven Great Ideas


◼ Use abstraction to simplify design

◼ Make the common case fast

◼ Performance via parallelism

◼ Performance via pipelining

◼ Performance via prediction

◼ Hierarchy of memories
◼ Dependability via redundancy

Chapter 1 — Computer Abstractions and Technology — 10

10

Chapter 1 — Computer Abstractions and Technology 5


Morgan Kaufmann Publishers January 20, 2025

Seven Great Ideas (cont.)


Use abstraction to simplify design Make the common case fast
◼ Both computer architects and ◼ The common case is often
programmers had to invent simpler than the rare case and
techniques to make themselves hence is often easier to enhance.
more productive.
◼ This common sense advice
◼ Abstractions is a major productivity implies that you know what the
technique for hardware and common case is, which is only
software, to represent the design at possible with careful
different levels of representation. experimentation and
measurement.
◼ Lower-level details are hidden to
offer a simpler model at higher
levels.

Chapter 1 — Computer Abstractions and Technology — 11

11

Seven Great Ideas (cont.)


Performance via parallelism Performance via pipelining

◼ computer architects have ◼ A particular pattern of


offered designs that get more parallelism is so prevalent in
performance by performing computer architecture
operations in parallel
◼ A way of speeding up
execution of instructions

◼ Key idea: overlap execution


of multiple instructions

Chapter 1 — Computer Abstractions and Technology — 12

12

Chapter 1 — Computer Abstractions and Technology 6


Morgan Kaufmann Publishers January 20, 2025

Seven Great Ideas (cont.)


Performance via prediction Hierarchy of memories
◼ In some cases it can be faster ◼ Programmers want memory to
on average to guess and start be fast, large, and cheap.
working rather than wait until
you know for sure, assuming ◼ There are conflicting demands to
that the mechanism to recover memory speed, capacity, cost
from a misprediction is not too
expensive and your prediction
is relatively accurate. ◼ Hierarchy of memories, with the
fastest, smallest, and most
expensive memory per bit at the
top of the hierarchy and the
slowest, largest, and cheapest
per bit at the bottom.

Chapter 1 — Computer Abstractions and Technology — 13

13

Seven Great Ideas (cont.)


◼ Dependability via redundancy

◼ Computers not only need to be fast; they need to be dependable.


◼ Since any physical device can fail, we make systems dependable
by including redundant components
◼ These extra components can take over when a failure occurs
and to help detect failures.

Chapter 1 — Computer Abstractions and Technology — 14

14

Chapter 1 — Computer Abstractions and Technology 7


Morgan Kaufmann Publishers January 20, 2025

§1.3 Below Your Program


Below Your Program
◼ Application software
◼ Written in high-level language
◼ System software
◼ Compiler: translates HLL code to
machine code
◼ Operating System: service code
◼ Handling input/output
◼ Managing memory and storage
◼ Scheduling tasks & sharing resources
◼ Hardware
◼ Processor, memory, I/O controllers

Chapter 1 — Computer Abstractions and Technology — 15

15

Levels of Program Code


◼ High-level language
◼ Level of abstraction closer
to problem domain
◼ Provides for productivity
and portability
◼ Assembly language
◼ Textual representation of
instructions
◼ Hardware representation
◼ Binary digits (bits)
◼ Encoded instructions and
data

Chapter 1 — Computer Abstractions and Technology — 16

16

Chapter 1 — Computer Abstractions and Technology 8


Morgan Kaufmann Publishers January 20, 2025

§1.4 Under the Covers


Components of a Computer
The BIG Picture ◼ Same components for
all kinds of computer
◼ Desktop, server,
embedded
◼ Input/output includes
◼ User-interface devices
◼ Display, keyboard, mouse
◼ Storage devices
◼ Hard disk, CD/DVD, flash
FIGURE 1.5 The organization of a computer,
showing the five classic components. ◼ Network adapters
The processor gets instructions and data from
◼ For communicating with
memory. Input writes data to memory , and
output reads data from memory . Control sends other computers
the signals that determine the operations of the
datapath, memory , input, and output.
Chapter 1 — Computer Abstractions and Technology — 17

17

Touchscreen
◼ PostPC device
◼ Supersedes keyboard
and mouse
◼ Resistive and
Capacitive types
◼ Most tablets, smart
phones use capacitive
◼ Capacitive allows
multiple touches
simultaneously

Chapter 1 — Computer Abstractions and Technology — 18

18

Chapter 1 — Computer Abstractions and Technology 9


Morgan Kaufmann Publishers January 20, 2025

Opening the Box

Chapter 1 — Computer Abstractions and Technology — 19

19

Inside the Processor (CPU)


◼ Datapath: performs operations on data
◼ Control: sequences datapath, memory, ...
◼ Cache memory
◼ Small fast SRAM memory for immediate
access to data

Chapter 1 — Computer Abstractions and Technology — 20

20

Chapter 1 — Computer Abstractions and Technology 10


Morgan Kaufmann Publishers January 20, 2025

Inside the Processor


◼ A12 processor

Chapter 1 — Computer Abstractions and Technology — 21

21

Abstractions
The BIG Picture

◼ Abstraction helps us deal with complexity


◼ Hide lower-level detail
◼ Instruction set architecture (ISA)
◼ The hardware/software interface
◼ Application binary interface
◼ The ISA plus system software interface
◼ Implementation
◼ The details underlying and interface
Chapter 1 — Computer Abstractions and Technology — 22

22

Chapter 1 — Computer Abstractions and Technology 11


Morgan Kaufmann Publishers January 20, 2025

A Safe Place for Data


◼ Volatile main memory
◼ Loses instructions and data when power off
◼ Non-volatile secondary memory
◼ Magnetic disk
◼ Flash memory
◼ Optical disk (CDROM, DVD)

Chapter 1 — Computer Abstractions and Technology — 23

23

Networks
◼ Communication, resource sharing,
nonlocal access
◼ Local area network (LAN): Ethernet
◼ Wide area network (WAN): the Internet
◼ Wireless network: WiFi, Bluetooth

Chapter 1 — Computer Abstractions and Technology — 24

24

Chapter 1 — Computer Abstractions and Technology 12


Morgan Kaufmann Publishers January 20, 2025

§1.5 Technologies for Building Processors and Memory


Technology Trends
◼ Electronics
technology
continues to evolve
◼ Increased capacity
and performance
◼ Reduced cost
DRAM capacity

Year Technology Relative performance/cost


1951 Vacuum tube 1
1965 Transistor 35
1975 Integrated circuit (IC) 900
1995 Very large scale IC (VLSI) 2,400,000
2013 Ultra large scale IC 250,000,000,000

Chapter 1 — Computer Abstractions and Technology — 25

25

Semiconductor Technology
◼ Silicon: semiconductor
◼ With a special chemical process, it is
possible to add materials to silicon that
allow tiny areas to transform into one of
three devices:
◼ Conductors
◼ Insulators
◼ Switch

Chapter 1 — Computer Abstractions and Technology — 26

26

Chapter 1 — Computer Abstractions and Technology 13


Morgan Kaufmann Publishers January 20, 2025

Manufacturing ICs

◼ Yield: proportion of working dies per wafer


From Sand to Silicon: The Making of a Microchip | Intel
https://www.youtube.com/watch?v=_VMYPLXnd7E
Chapter 1 — Computer Abstractions and Technology — 27

27

Intel® Core 10th Gen

◼ 300mm wafer, 506 chips, 10nm technology


◼ Each chip is 11.4 x 10.7 mm
Chapter 1 — Computer Abstractions and Technology — 28

28

Chapter 1 — Computer Abstractions and Technology 14


Morgan Kaufmann Publishers January 20, 2025

§1.6 Performance
Defining Performance
◼ Which airplane has the best performance?
Performance ~ speed,
fastest is highest cruising
speed, taking a single
passenger from one point
to another in the least time.

Performance ~ transporting
500 passengers from one
point to another. Airbus A380-
800 is the fastest

We can define computer


performance in several
different ways (response time,
throughput, elapse time, CPU
time etc).

Chapter 1 — Computer Abstractions and Technology — 29

29

CPU Clocking
◼ Operation of digital hardware governed by a constant-
rate clock
Clock period

Clock (cycles)

Data transfer
and computation
Update state

◼ Clock period: duration of a clock cycle


◼ e.g., 250ps = 0.25ns = 250×10–12s
◼ Clock frequency (rate): cycles per second
◼ e.g., 4.0GHz = 4000MHz = 4.0×109Hz
◼ Higher clock frequencies result in faster performance, but with
higher energy consumption and heat production.

Chapter 1 — Computer Abstractions and Technology — 30

30

Chapter 1 — Computer Abstractions and Technology 15


Morgan Kaufmann Publishers January 20, 2025

CPU Time
CPU Time = CPU Clock Cycles  Clock Cycle Time
CPU Clock Cycles
=
Clock Rate
◼ Performance improved by
◼ Reducing number of clock cycles
◼ Increasing clock rate
◼ Hardware designer must often trade off clock
rate against cycle count

Chapter 1 — Computer Abstractions and Technology — 31

31

Instruction Count and CPI


Clock Cycles = Instruction Count  Cycles per Instruction
CPU Time = Instruction Count  CPI  Clock Cycle Time
Instruction Count  CPI
=
Clock Rate
◼ Instruction Count for a program
◼ Determined by program, ISA and compiler
◼ Average cycles per instruction (CPI)
◼ Determined by CPU hardware
◼ If different instructions have different CPI
◼ Average CPI affected by instruction mix

Chapter 1 — Computer Abstractions and Technology — 32

32

Chapter 1 — Computer Abstractions and Technology 16


Morgan Kaufmann Publishers January 20, 2025

Performance Summary
The BIG Picture

Instructions Clock cycles Seconds


CPU Time =  
Program Instruction Clock cycle

◼ Performance depends on
◼ Algorithm: affects IC, possibly CPI
◼ Programming language: affects IC, CPI
◼ Compiler: affects IC, CPI
◼ Instruction set architecture: affects IC, CPI, Tc (Clock
Cycle Time)

Chapter 1 — Computer Abstractions and Technology — 33

33

§1.8 The Sea Change: The Switch to Multiprocessors

Uniprocessor Performance

Constrained by power, instruction-level parallelism,


memory latency

Chapter 1 — Computer Abstractions and Technology — 34

34

Chapter 1 — Computer Abstractions and Technology 17


Morgan Kaufmann Publishers January 20, 2025

Multiprocessors
◼ Multicore microprocessors
◼ More than one processor per chip
◼ Requires explicitly parallel programming
◼ Compare with instruction level parallelism
◼ Hardware executes multiple instructions at once
◼ Hidden from the programmer
◼ Hard to do
◼ Programming for performance
◼ Load balancing
◼ Optimizing communication and synchronization

Chapter 1 — Computer Abstractions and Technology — 35

35

The latest as of January 2025

Chapter 1 — Computer Abstractions and Technology — 36

36

Chapter 1 — Computer Abstractions and Technology 18


Morgan Kaufmann Publishers January 20, 2025

§1.12 Concluding Remarks


Concluding Remarks
◼ Cost/performance is improving
◼ Due to underlying technology development
◼ Hierarchical layers of abstraction
◼ In both hardware and software
◼ Instruction set architecture
◼ The hardware/software interface
◼ Execution time: the best performance
measure
◼ Power is a limiting factor
◼ Use parallelism to improve performance
Chapter 1 — Computer Abstractions and Technology — 37

37

Chapter 1 — Computer Abstractions and Technology 19

You might also like