42
Lecture 01: Welcome Computer Architecture! Kai Bu [email protected] http://list.zju.edu.cn/kaibu/comparch2015

Lecture 01: Welcome Computer Architecture! Kai Bu [email protected]

Embed Size (px)

Citation preview

Page 1: Lecture 01: Welcome Computer Architecture! Kai Bu kaibu@zju.edu.cn

Lecture 01: WelcomeComputer Architecture!

Kai [email protected]

http://list.zju.edu.cn/kaibu/comparch2015

Page 2: Lecture 01: Welcome Computer Architecture! Kai Bu kaibu@zju.edu.cn

Instructor

Kai Bu Kai Bu 卜凯卜凯Assistant Professor, College of CS, ZJUPh.D. from Hong Kong PolyU, 2013

Research InterestsResearch Interests:: wireless networking,network security (e.g., RFID, software-defined networking)

http://list.zju.edu.cn/kaibu

Page 3: Lecture 01: Welcome Computer Architecture! Kai Bu kaibu@zju.edu.cn

Textbook

Computer Architecture:A Quantitative Approach5th editionJohn L. HennessyDavid A. Patterson

Page 4: Lecture 01: Welcome Computer Architecture! Kai Bu kaibu@zju.edu.cn

Textbook

Computer Architecture:A Quantitative Approach4th editionJohn L. HennessyDavid A. Patterson

Some instructors may stick to the 4th edWe’ll coordinate to keep the harmony of the course content.

Page 5: Lecture 01: Welcome Computer Architecture! Kai Bu kaibu@zju.edu.cn

Why This Book?

• Quantitative approach: Performance driven

• Know not only how but also why• As in this book

Operating Systems: Three Easy Pieceshttp://pages.cs.wisc.edu/~remzi/OSTEP/

Page 6: Lecture 01: Welcome Computer Architecture! Kai Bu kaibu@zju.edu.cn

Course Website

http://list.zju.edu.cn/kaibu/comparch2015/

Page 7: Lecture 01: Welcome Computer Architecture! Kai Bu kaibu@zju.edu.cn

Syllabus

Reference syllabus by Prof. Jianghttp://list.zju.edu.cn/kaibu/comparch2015/Syllabus_2013spring.pdf

Reference schedulehttp://list.zju.edu.cn/kaibu/comparch/sc

hedule.html

Page 8: Lecture 01: Welcome Computer Architecture! Kai Bu kaibu@zju.edu.cn

Components

• Lectures• Labs• Research Warm-up

Page 9: Lecture 01: Welcome Computer Architecture! Kai Bu kaibu@zju.edu.cn

Components

• Lectures• Labs• Research Warm-up

Page 10: Lecture 01: Welcome Computer Architecture! Kai Bu kaibu@zju.edu.cn

Lectures

• Chapter 1: Fundamentals of Computer Design

classes of computerstrends in technology, power, costdependabilitydependability and performance quantitative principles of comp design

Page 11: Lecture 01: Welcome Computer Architecture! Kai Bu kaibu@zju.edu.cn

Lectures

• Appendix A: Instruction Set Principles

classifying instruction set architecturememory addressingoperationsinstruction encoding the role of compilersexample: MIPS architecture

Page 12: Lecture 01: Welcome Computer Architecture! Kai Bu kaibu@zju.edu.cn

Lectures

• Appendix C: Pipelining

pipeline principlespipeline hazardsimplementation hurdles and solutionsexample: MIPS R4000 pipelineinstruction level parallelism (Chapter 3)

Page 13: Lecture 01: Welcome Computer Architecture! Kai Bu kaibu@zju.edu.cn

Lectures

• Chapter 2: Memory Hierarchy Design

cache performance (App B.2)cache optimizations (App B.3)memory tech and optimizationsvirtual memory (App B.4)protection of virtual memory (App B.5)virtual memory and virtual machinesdesign of memory hierarchies

Page 14: Lecture 01: Welcome Computer Architecture! Kai Bu kaibu@zju.edu.cn

Lectures

• Appendix D: Storage System Performance

I/O performancequeuing theory

Page 15: Lecture 01: Welcome Computer Architecture! Kai Bu kaibu@zju.edu.cn

Lectures

• Chapter 5: Multiprocessors

symmetric shared-memory architecturedistributed shared-memorydirectory-based coherence

Page 16: Lecture 01: Welcome Computer Architecture! Kai Bu kaibu@zju.edu.cn

Components

• Lectures• Labs• Research Warm-up

Page 17: Lecture 01: Welcome Computer Architecture! Kai Bu kaibu@zju.edu.cn

Labs

• 5 lab sessions• Pipeline implementation

Page 18: Lecture 01: Welcome Computer Architecture! Kai Bu kaibu@zju.edu.cn

Labs

• Lab 1warmup Spartan 3E and ISE environment;update verilog code of multi-cycle CPU to 3E board;add one new branch instruction;

reference code:Spartan 3E Display: http://list.zju.edu.cn/kaibu/comparch/lab1-Spartan3E-Display.rar

Spartan Simulation: http://list.zju.edu.cn/kaibu/comparch/spartansimulation.txt

Page 19: Lecture 01: Welcome Computer Architecture! Kai Bu kaibu@zju.edu.cn

Labs

• Lab 2implement 5-stage pipelined CPU with 15 MIPS instructions;

• Lab 3implement stall technique against pipelining hazards;

• Lab 4implement forwarding paths toward faster CPU;

• Lab 5implement a pipelined CPU with 31 MIPS instructions;use predict-not-taken policy to solve control hazard;

Page 20: Lecture 01: Welcome Computer Architecture! Kai Bu kaibu@zju.edu.cn

Labs

• Call for volunteer lab assistants

help tutor & check the demo during lab sessions;

get bonus credit via active class participation;

Page 21: Lecture 01: Welcome Computer Architecture! Kai Bu kaibu@zju.edu.cn

Components

• Lectures• Labs• Research Warm-up

Page 22: Lecture 01: Welcome Computer Architecture! Kai Bu kaibu@zju.edu.cn

Why do you care?

Page 23: Lecture 01: Welcome Computer Architecture! Kai Bu kaibu@zju.edu.cn

Research Warm-up

• Grading: Bonus 5%

75% Literature Review25% Presentation

Page 24: Lecture 01: Welcome Computer Architecture! Kai Bu kaibu@zju.edu.cn

More than that?

Page 25: Lecture 01: Welcome Computer Architecture! Kai Bu kaibu@zju.edu.cn

Learn tolearn things differently

Page 26: Lecture 01: Welcome Computer Architecture! Kai Bu kaibu@zju.edu.cn

Know not only howbut also why

Page 27: Lecture 01: Welcome Computer Architecture! Kai Bu kaibu@zju.edu.cn

Read this book and you’ll seeOperating Systems: Three Easy Pieces

http://pages.cs.wisc.edu/~remzi/OSTEP/

Page 28: Lecture 01: Welcome Computer Architecture! Kai Bu kaibu@zju.edu.cn

Research Warm-up

• Basic Requirements1. Find a research topic you are interested

in: e.g., computer architecture, computer network, network security;

2. Read 2-3 latest papers from recent CCF A conferences; http://www.ccf.org.cn/sites/ccf/paiming.jsp

3. Write a review and prepare a presentation.

Page 29: Lecture 01: Welcome Computer Architecture! Kai Bu kaibu@zju.edu.cn

Research Warm-up

• Notes: The review should cover1. What is the research problem?2. Why is it important?3. What are the solutions?4. Any limitations?5. What would you do?

More on http://list.zju.edu.cn/kaibu/comparch2015/research.html

Page 30: Lecture 01: Welcome Computer Architecture! Kai Bu kaibu@zju.edu.cn

Research Warm-up• Advanced Requirements

your research, your way

improve your review report into a research paper

prototype your idea

Page 31: Lecture 01: Welcome Computer Architecture! Kai Bu kaibu@zju.edu.cn

Call for Research Interns

• and SRTP advisees

• Networking, Security, Architecture:RFID, SDN, Storage, etc.more on http://list.zju.edu.cn/kaibu/publication.html

• And, of course, what else you are interested in

Page 32: Lecture 01: Welcome Computer Architecture! Kai Bu kaibu@zju.edu.cn

Grade?

Page 33: Lecture 01: Welcome Computer Architecture! Kai Bu kaibu@zju.edu.cn

Grading

4% Class participation & performance

16% Homework

8% Pop quiz

32% Lab assignments

40% Final exam (closed-book)

Bonus 5%

Research Warm-up

Bonus 5%

Active class participation

Page 34: Lecture 01: Welcome Computer Architecture! Kai Bu kaibu@zju.edu.cn

How will I teach?

Page 35: Lecture 01: Welcome Computer Architecture! Kai Bu kaibu@zju.edu.cn

What Students Expect from Teachers

• Fun• Humor• Easy exam• High grades• …

Page 36: Lecture 01: Welcome Computer Architecture! Kai Bu kaibu@zju.edu.cn

I wish I knew someonelike this, too…

Page 37: Lecture 01: Welcome Computer Architecture! Kai Bu kaibu@zju.edu.cn

Teaching Plan

• Keep it Simple• Focus on the core concepts• Try to help you more easily understand

Page 38: Lecture 01: Welcome Computer Architecture! Kai Bu kaibu@zju.edu.cn

How will you contribute?

Page 39: Lecture 01: Welcome Computer Architecture! Kai Bu kaibu@zju.edu.cn

Thanks In Advance

• Study group• Lab assistants• Research interns• …

• Start a qq group for discussion?

Page 40: Lecture 01: Welcome Computer Architecture! Kai Bu kaibu@zju.edu.cn

?

Page 41: Lecture 01: Welcome Computer Architecture! Kai Bu kaibu@zju.edu.cn

Who’s Who

Page 42: Lecture 01: Welcome Computer Architecture! Kai Bu kaibu@zju.edu.cn

Ready?