1. Trang chủ
  2. » Công Nghệ Thông Tin

Advanced Computer Architecture - Lecture 10: Computer hardware design

26 5 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Tiêu đề Computer Hardware Design
Người hướng dẫn Prof. Dr.. M. Ashraf Chughtai
Trường học MAC/VU-Advanced Computer Architecture
Chuyên ngành Advanced Computer Architecture
Thể loại lecture
Năm xuất bản 2024
Định dạng
Số trang 26
Dung lượng 867,56 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Advanced Computer Architecture - Lecture 10: Computer hardware design. This lecture will cover the following: pipeline datapath and control design; features of pipelined processor; pipelining lessons; pipelined processor design; pipelined registers included; multiple cycle verses pipeline – pipeline enhances performance;...

Trang 1

CS 704

Advanced Computer Architecture

Lecture 10

Computer Hardware Design

(Pipeline Datapath and Control Design)

Trang 2

Recap: Lecture 9 Single cycle verses multi cycle datapath

Key components of multi cycle data path Design and information flow in multi cycle data path

Multi cycle control unit design

Finite State Machine–based control Unit

Microprogram-based controller

Trang 3

What is pipelining?

Pipelining is a fundamental concept

It utilizes capabilities of the Datapath by

Trang 4

Pipelining is Natural!

Laundry Example!

Four loads: A, B, C, D

Four laundry operations:

Wash, Dry, fold and place into

drawers

Washer takes 30 minutes

Dryer takes 30 minutes

“Folder” takes 30 minutes

“Stasher” takes 30 minutes

to put clothes into drawers

Trang 6

Pipelined Laundry: Start work ASAP

Pipelined laundry takes 3.5 hours for 4

Trang 7

Features of Pipelined Processor

All the functional units operate independently

Multiple tasks operating simultaneously

using different resources

Pipelining doesn’t help latency of single

task, it helps throughput of entire workload

Potential speedup = Number pipe stages

……… Cont’d Next please!

Trang 8

Pipelining Lessons

Pipeline rate limited by:

- Slowest pipeline stage

- Time to “fill” pipeline and time to “drain” it

Trang 9

Five Steps of Datapath

Trang 10

Pipelined Processor Design

Execute/

Address

Memory Rd/Wrt

Write Back (Reg Wrt)

Trang 11

Instruction Fetch

ID/Reg Rd

Exe/Address

Memory Rd/Wrt

Trang 12

Pipelined Registers Included

A B

Execute/

Address Memory Rd/Wrt

Write Back (Reg Wrt)

Trang 13

Five Steps as Stages of Pipeline

.

Load

Trang 14

Multiple Cycle verses Pipeline – Pipeline enhances performance

   5   6   7    8   9    10 Clk

Multiple Cycle Implementation:

Ifetch Reg Exec Mem Wr Ifetch Reg Exec Mem

Ifetch

R­type

Reg Exec Mem

Load Ifetch Reg Exec Mem Wr

Trang 15

3 Instructions program reconsidered

Load

Store

R-type (ADD)

Trang 16

The cycle time of a single cycle machine is 45 ns, and of multi cycle and pipelined machines is 10 ns; and average CPI due to instruction mix on multi cycle machine is 4.6.

What is the execution time on each type of machine?

Ans:

Single Cycle Machine

– 45 ns/cycle x 1 CPI x 100 inst = 4500 ns

Multi Cycle Machine

– 10 ns/cycle x 4.6 CPI x 100 inst = 4600 ns

Pipelined machine

– 10 ns/cycle x (1 CPI x 100 inst + 4 cycle drain) = 1040 ns

Trang 17

Another Example

Consider a multicycle, unpiplined processor requires 4 cycles for the ALU and Branch operations and 5 cycles for the memory operation.

Assume the relative frequency of these operations is 40%, 25% and 35% respectively; and the clock cycle is of 1 n sec.

In pipelined implementation, due to clock skew and setup

processor adds 0.2 n sec to the clock

Trang 19

Pipelined Execution Representation

Program Flow

IFetch Dcd Exec Mem WB

Trang 22

Can pipelining get us into trouble? Structural hazards

– Data hazards

– Control hazards

Trang 23

How Stall degrades the performance?

The pipelined CPI with stalls =

Ideal CPI + Stall clock cycles per

instruction

Trang 24

How Stall degrades the performance?

CPI Unpiplined

1 + stall cycles per instruction

Trang 25

multi cycle datapath verses pipeline

datapath

Key components of pipeline data path

Performance enhancement due to pipeline Hazards in pipelined datapath

Trang 26

and ALLAH Hafiz

Ngày đăng: 05/07/2022, 11:49