Lecture 1: Welcome Computer Architecture Kai Bu [email protected] .

35
Lecture 1: Welcome Computer Architecture Kai Bu [email protected] http://list.zju.edu.cn/kaibu/comparch

Transcript of Lecture 1: Welcome Computer Architecture Kai Bu [email protected] .

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

Lecture 1: WelcomeComputer Architecture

Kai [email protected]

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

Page 2: Lecture 1: 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, Android)

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

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

Join LIST! Lab for Internet and Security Technology浙江大学互联网安全实验室http://list.zju.edu.cn/

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

Textbook

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

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

Textbook

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

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

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

Course Website

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

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

Syllabus

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

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

Components

• Lectures• Labs• Research Warm-up

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

Components

• Lectures• Labs• Research Warm-up

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

Lectures

• Chapter 1: Fundamentals of Computer Designclasses of computerstrends in tech, power, costdependabilityperformance measurement, reportquantitative principles of comp design

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

Lectures

• Appendix A: Instruction Set Principles and Examplesclassifying instruction set architecturememory addressingtype and size of operandsoperation in the instruction setinstructions for control flowencoding an instruction setthe role of compilersMIPS architecture

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

Lectures

• Appendix C: Pipelining: Basic and Intermediate Conceptspipeline principlespipeline hazardsimplementation hurdles and solutionsMIPS R4000 pipelineinstruction level parallelism (Chapter 3)

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

Lectures

• Chapter 2: Memory Hierarchy Designcache performance (App B.2)six basic cache optimizations (App B.3)ten advanced optimizations for cache performance;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 1: Welcome Computer Architecture Kai Bu kaibu@zju.edu.cn .

Lectures

• Chapter 5: Multiprocessorssymmetric shared-memory architecturedistributed shared-memorydirectory-based coherence

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

Components

• Lectures• Labs• Research Warm-up

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

Labs

• 5 lab sessions• Pipeline implementation

Page 17: Lecture 1: 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;

Page 18: Lecture 1: 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 19: Lecture 1: Welcome Computer Architecture Kai Bu kaibu@zju.edu.cn .

Labs

• Call for volunteer lab assistantshelp tutor & check the demo during lab sessions;get bonus credit via active class participation;

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

Components

• Lectures• Labs• Research Warm-up

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

Research Warm-up

• Grading: Bonus 5%75% Literature Review25% Presentation

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

Research Warm-up

• 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;

3. Write a review and prepare a presentation.

Page 23: Lecture 1: 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/comparch/research.html

Page 24: Lecture 1: 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 prticipation

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

How will I teach?

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

Not that professional yet…

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

My very first time teaching this course.You know what to expect.

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

But the upside is

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

I was still a studentuntil not very long ago.

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

I still clearly remember how it feels as a student.

This might ease your leaning process.

Page 31: Lecture 1: 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

Teaching in English for the most part

in accordance with the textbook.

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

Study Group

• 45 students• 6 groups• Group discussion & tutoring• Peer evaluation

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

?

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

Who’s Who

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

Ready?