CSE141: Introduction to Computer Architecture
Hung-Wei Tseng
CSE141: Introduction to Computer Architecture Hung-Wei Tseng - - PowerPoint PPT Presentation
CSE141: Introduction to Computer Architecture Hung-Wei Tseng CSE141: Lets say something! Whats your name? Whats the most exciting thing you did so far this summer? Whats the most interesting computer science topic for you?
Hung-Wei Tseng
2
3
4
5
6
the art or science of building computers
7
8
9
CPU+DR AM
CPU DRAM CPU DRAM
CPU
DRAM DRAM DRAM
CPU
DRAM
CPU+DR AM
CPU CPU CPU CPU DRAM DRAM DRAM DRAM
10
Memory CPU Socket
SATA
I/O connectors
11
CPU Socket
Memory Memory Memory Memory CPU Socket CPU Socket CPU Socket
12
System Hub Memory CPU Connectors SSD Slot
13
Sim Card CPU + DRAM
Peripherals Peripherals
14
CPU+ GPU Memory Memory
Memory
Connectors
Peripherals
15
16
17
18
SATA SSD HDD Wireless NIC NIC
Processor
DRAM processor-memory bus GPU Accelerator NVMe SSD FPGA/ASIC
19
20
21
1822: English mathematician Charles Babbage conceives of a steam-driven calculating machine that would be able to compute tables of numbers.
22
ENIAC(Electronic Numerical Integrator And Computer) was the first electronic general-purpose computer. It was Turing-complete, digital, and could solve "a large class of numerical problems" through reprogramming.
You have to change the physical hardware configuration
23
https://az-eandt-live-legacy.azureedge.net/news/2013/apr/images/640_edsac-web.jpg
24
25
memory
2 8 3
CPU is a dominant factor of performance since we heavily rely
By pointing “PC” to different part
different functions!
26
You can only store 0 or 1 in each memory cell
27
Decimal Binary Decimal Binary 0000 4 0100 1 0001 5 0101 2 0010 6 0110 3 0011 7 0111
3 + 2 = 5 0 0 1 1 + 0 0 1 0 1 1 carry 1 3 + 3 = 6 0 0 1 1 + 0 0 1 1 1 1 1 1
28
Decimal Binary Decimal Binary 0000
1111 1 0001
1110 2 0010
1101 3 0011
1100 4 0100
1011 5 0101
1010 6 0110
1001 7 0111
1000
Does not waste 1111 anymore
numbers?
29
0 0 1 1 + 0 0 1 0 1 1 1 0 0 1 1 + 1 1 1 0 1 = 1 1 1 1
30 sign bit (adder output from bit 31) Binvert
CI
Operation
ADD 2 SUB 1 1 2 AND OR 1 SLT 3
31
S E (8 bits) M (23 bits)
b‘01111110=126 126 - 127 = -1 b‘1.1 = 1+1*2-1 = 1.5
1.5 * 2-1 = 0.75
32
33
add $v0, $a1, $a2
rs rt rd shift amount function
R-format
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
rs rt rd shift amount function
00110 000000 100000 00000 00010 00101
34
Processor PC
$0 $at $v0 $ra
........
registers ALU
Register file 4-bit ALU memory each of them has different structure — different timing
Register file 4-bit ALU
use by others
35
clock cycle
memory
36
37
Processor PC
120007a30: 0f00bb27 ldah gp,15(t12) 120007a34: 509cbd23 lda gp,-25520(gp) 120007a38: 00005d24 ldah t1,0(gp) 120007a3c: 0000bd24 ldah t4,0(gp) 120007a40: 2ca422a0 ldl t0,-23508(t1) 120007a44: 130020e4 beq t0,120007a94 120007a48: 00003d24 ldah t0,0(gp) 120007a4c: 2ca4e2b3 stl zero,-23508(t1)
instruction memory data memory
800bf9000: 00c2e800 12773376 800bf9004: 00000008 8 800bf9008: 00c2f000 12775424 800bf900c: 00000008 8 800bf9010: 00c2f800 12777472 800bf9014: 00000008 8 800bf9018: 00c30000 12779520 800bf901c: 00000008 8
$0 $at $v0 $ra
........
registers ALU
program counter & instruction memory registers ALUs data memory registers
38
39
every 12 ~ 24 months.
(1) Moore, G. E. (1965), 'Cramming more components onto integrated circuits', Electronics 38 (8) . (1) Transistor Count 1 10 100 1,000 10,000 100,000 1,000,000 10,000,000 100,000,000 1,000,000,000 10,000,000,000 1970 1975 1980 1985 1990 1995 2000 2005 2010 2015
Moore’s Law is the most important driver for historic CPU performance gains
40
41
SPECRate 10 20 30 40 50 60 70 80 90 Sep-06 Dec-06 Mar-07 Jun-07 Sep-07 Dec-07 Mar-08 Jun-08 Sep-08 Dec-08 Mar-09 Jun-09 Sep-09 Dec-09 Mar-10 Jun-10 Sep-10 Dec-10 Mar-11 Jun-11 Sep-11 Dec-11 Mar-12 Jun-12 Sep-12 Dec-12 Mar-13 Jun-13 Sep-13 Dec-13 Mar-14 Jun-14 Sep-14 Dec-14 Mar-15 Jun-15 Sep-15 Dec-15 Mar-16 Jun-16 Sep-16 Dec-16 Mar-17 Jun-17 Sep-17
5x in 67 months 1.5x in 67 months
42
istor Performance vs. Leakage
1x 0.001x 0.01x 0.1x 14 nm 22 nm 32 nm 45 nm 65 nm
Lower Leakage Power Higher Transistor Performance (switching speed)
Static power under different process technologies
linear with V
percentage of active power
43
Leakage power becomes increasingly significant
44
45
46
Intel P4 (2000) 1 core Intel Nahalem (2010) 4 cores Nvidia Tegra 3 (2011) 5 cores SPARC T3 (2010) 16 cores AMD Zambezi (2011) 16 cores AMD Athlon 64 X2 (2005) 2 cores
47
GPU TPU CPU DRAM SSD H.D.D. Network Interface FPGA
Additional data movement
48
49
Physics/Materials Devices Micro-architecture Instruction Set Architectures Processors
50
JVM
Instruction Set Architecture Operating Systems Compilers Runtime Virtual Machines Programming Languages Programmers/ Users
51
52
if(option) std::sort(data, data + arraySize); for (unsigned c = 0; c < arraySize*10000; ++c) { if (data[c%arraySize] >= rand()) sum ++; } }
if option is set to 1 —> O(nlogn),
pthread programming
53
Date Topic Readings Due 2019/08/05 (8a) Introduction & ISA 2019/08/05 (9:30a) ISA 2.1-2.7, 2.10, 2.8, 2.12, 2.13, 2.14 and 2.17 2019/08/07 (8a) Performance Evaluation 1.5-1.10 Reading quizzes for 1.5-1.10 due before class 2019/08/07 (9:30a) Performance Evaluation (II) 2019/08/12 (8a) Performance (III) and Single-cycle Processor Design 4.1-4.4 Homework 1 due before class Reading quizzes for 4.1-4.9 due before class 2019/08/12 (9:30a) Pipeline processor 4.5-4.9 2019/08/14 (8a) Pipeline Processor (II) Reading quizzes for 4.5-4.9 due before class 2019/08/14 (9:30a) Pipeline (III) 2019/08/19 (8a) Branch Prediction Homework 2 due before class Reading quizzes for 5.1-5.4 due before class 2019/08/19 (9:30a) Midterm Review 2019/08/21(8a) Midterm 2019/08/21 (9:30a) Memory and caching 5.1-5.4 2019/08/26 (8a) Memory and caching 5.1-5.4 Homework 3 due Reading quizzes for 5.1-5.4 due before class 2019/08/26 (9:30a) Memory and caching 5.8 2019/08/28 (8a) Memory and caching Reading quizzes for 5.6 and 5.7 due before class 2019/08/28 (9:30a) Virtual Memory 5.6 and 5.7 2019/09/04(8a) Modern Processor Design 4.10 Homework 4 due before class Reading quizzes for 6.4-6.5, 5.10 due before class 2019/09/04(9:30a) Introduction to multithreaded processors 6.4-6.5 2019/09/04 (2p) Final Review 2019/9/7 Final
54
You need to complete the reading of H&P Check due dates here Subject to change
55
http://cseweb.ucsd.edu/classes/su19_2/cse141-a/
https://piazza.com/class/jyvn9cs1nxx4m5
https://podcast.ucsd.edu/watch/s219/cse141_a00
56
57
58
previous editions are not supported
text.
59
60
61
Me
Me You
62
material
63
CSE 141 - Intro/Computer Architecture - Tseng [S119] (Course is unavailable to students) Tools
Tools
Announcements Create and view Course Announcements. Blogs Create and manage blogs for Courses and Course Groups. Calendar Track important events and dates through the Calendar. Contacts Instructors can post contact information about themselves and others. Discussion Board Create and manage Forums within the Discussion Board. Glossary View a list of important terms and their denitions. Groups Create and manage formal groups of students to collaborate on work. Journals Create and manage journals that can be assigned to each user in a group for the purposes of private communication with the instructor. My Grades Displays detailed information about your grades. Tasks Use tasks to keep track of work that must be completed. Each Task has a status and a due date. Wikis Create and manage wikis for Courses and Course Groups WileyPLUS Open the complete eTextbook for your course. Start using WileyPLUS for your assignments. Zoom Meeting i>clicker Student Registration Register your i>clicker Remote ID
?
Student Preview mode is ON
Exit Preview Settings
64
65
from when the assignment is return to bring it to our attention. You must submit (via email to the instructor and the appropriate TAs) a written description of the problem. Neither I nor the TAs will discuss regrades without receiving an email from you about it first.
66
college dean.
points either. You will also take at least 25% penalty on the exam grades.
67
68