csee 3827 fundamentals of computer systems
play

CSEE 3827: Fundamentals of Computer Systems Lecture 21 and 22 April - PowerPoint PPT Presentation

CSEE 3827: Fundamentals of Computer Systems Lecture 21 and 22 April 22 and 27, 2009 Martha Kim martha@cs.columbia.edu Amdahls Law Be aware when optimizing. . . T + T T = affected improved unaffected improvement factor


  1. CSEE 3827: Fundamentals of Computer Systems Lecture 21 and 22 April 22 and 27, 2009 Martha Kim martha@cs.columbia.edu

  2. Amdahl’s Law Be aware when optimizing. . . T + T T = affected improved unaffected improvement factor Example: On machine A, multiplication accounts for 80s out of 100s total CPU time. How much improvement in multiplication performance to get 5x speedup overall? Corollary: make the common case fast CSEE 3827, Spring 2009 Martha Kim 2

  3. Single-Cycle CPU Performance Issues • Longest delay determines clock period • Critical path: load instruction • instruction memory → register file → ALU → data memory → register file • Not feasible to vary clock period for different instructions • We will improve performance by pipelining CSEE 3827, Spring 2009 Martha Kim 3

  4. �฀�� � � �฀�� ���� ���� ����� � � � �� �฀�� � � � �� �� �� � �� �� ���� � ��฀��฀�������฀������฀�������฀���฀���฀�����฀���฀�������฀������฀���������฀���฀��������฀����฀����฀��฀�������฀���฀ �����฀�����฀����������฀�������฀�����฀�฀�����฀���฀�฀�����฀��฀�����฀�����฀���������฀�������฀�����฀����฀���฀������฀ ��฀����฀���฀��������฀�����฀��฀���������฀�����฀����฀����฀��฀�������฀������฀��฀���฀����฀���������฀��฀����฀ ���������������฀����฀�����฀���฀��฀������฀����฀����฀���฀��฀����฀���������฀���������฀�฀����฀���������฀����฀���฀ ������฀��������� ���� ����� � � � � �฀�� � � ������������ ����������������������������������� ฀����฀������฀������฀���฀���฀����฀����฀�����฀�������฀ Pipelining Laundry Analogy CSEE 3827, Spring 2009 Martha Kim 4

  5. MIPS Pipeline • Five stages, one step per stage • IF: Instruction fetch from memory • ID: Instruction decode and register read • EX: Execute operation or calculate address • MEM: Access memory operand • WB: Write result back to register CSEE 3827, Spring 2009 Martha Kim 5

  6. ���� �� ��฀���฀������฀�����฀�������฀���฀��������฀� ฀��฀��฀�����฀���฀���฀����฀����฀��฀��฀��฀������฀��฀���฀� ฀���฀�����฀�������฀ ���฀��������฀� ฀��฀��฀��������฀���������฀�฀����฀���������฀����฀���฀������฀��������� ���� ���฀����฀����฀��� ��� ���฀�����฀���฀�������฀��฀����฀ �� �� �� ��� ��� ��� ��� ��฀����฀������฀���฀�������฀��฀���฀����฀����฀�����฀��฀��฀�������฀��฀����฀������฀�����฀���฀�����฀����฀��฀��฀��฀������฀ ฀��฀��฀���฀ � ฀��฀����฀������฀����฀���฀�������฀�������฀���฀��������฀� ��������������������������������� ����฀��฀���฀�������฀������������฀���฀��������฀���������฀����฀���฀ �������������฀���฀��������฀������฀����฀����������฀���฀��������฀���฀�������฀���฀���฀� ฀��฀�������฀ �� ฀���฀���฀ �����������฀�����฀������฀����฀���฀���฀������������฀�����������฀�������฀ �� ฀���฀���฀�������฀ ����฀���������������฀ ������฀���฀����฀�������฀�������฀��฀���฀�����฀����฀��฀���฀��������฀� ฀��฀�����฀�����฀ �� ฀���฀���฀�����฀ ����฀������฀����฀���฀ �������฀������������฀���฀����฀ ��� ฀���฀���฀������฀������฀������฀����฀���฀���฀������������฀����฀�������฀ ���฀ �� ฀���฀���฀����������฀������฀����฀���฀�������฀�������฀���฀��������฀� ฀��฀�����฀��������฀���฀�������฀ ���������฀���฀�������฀��฀����฀��฀���฀������������฀������฀���฀���฀�฀�����฀����฀ ������฀�������฀ ��� ฀����฀���฀ ������������ ������������������������������������������������������������������������������� MIPS Pipeline Illustration 1 CSEE 3827, Spring 2009 Martha Kim 6

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend