CSE 581: Module 2 - Hardware Raghu Machiraju Slides: Courtesy - Prof. Huamin Wang, CSE, OSU.

19
CSE 581: Module 2 - Hardware Raghu Machiraju Slides: Courtesy - Prof. Huamin Wang, CSE, OSU

Transcript of CSE 581: Module 2 - Hardware Raghu Machiraju Slides: Courtesy - Prof. Huamin Wang, CSE, OSU.

Page 1: CSE 581: Module 2 - Hardware Raghu Machiraju Slides: Courtesy - Prof. Huamin Wang, CSE, OSU.

CSE 581: Module 2 - Hardware

Raghu Machiraju

Slides: Courtesy - Prof. Huamin Wang, CSE, OSU

Page 2: CSE 581: Module 2 - Hardware Raghu Machiraju Slides: Courtesy - Prof. Huamin Wang, CSE, OSU.

Architecture

CPU

Memory

Power

Hard drive

DVD ROM

Keyboard and mouseGraphics card

Page 3: CSE 581: Module 2 - Hardware Raghu Machiraju Slides: Courtesy - Prof. Huamin Wang, CSE, OSU.

Raster Graphics Systems

Raster: Images are represented by an array of picture elements (pixels).

Page 4: CSE 581: Module 2 - Hardware Raghu Machiraju Slides: Courtesy - Prof. Huamin Wang, CSE, OSU.

1 bit: black & white8 bits: 256 levels of gray32 bits: 16 million colors (true color)

Frame Buffer

Screen resolution Pixel format Refresh rate

Page 5: CSE 581: Module 2 - Hardware Raghu Machiraju Slides: Courtesy - Prof. Huamin Wang, CSE, OSU.

Size of Frame Buffer

• For example, the screen is 1960×1080 with 24 bits per pixel, how big is the frame buffer?

• Frame buffer may store other information, such as depth values.

Number of pixels × Bits per pixelScreen resolution Pixel format

1960×1080×24=51M bits = 6M bytes

Page 6: CSE 581: Module 2 - Hardware Raghu Machiraju Slides: Courtesy - Prof. Huamin Wang, CSE, OSU.

A Prototype Graphics System

System bus (motherboard)

CPU Memory

Video controller

Frame buffer Frame buffer in main memory?

Page 7: CSE 581: Module 2 - Hardware Raghu Machiraju Slides: Courtesy - Prof. Huamin Wang, CSE, OSU.

An Early Graphics System

System bus (motherboard)

CPU Memory

Video controller

Graphics card/video card/display card

Graphics memory

Graphics memory: on-board frame buffer for faster access

Page 8: CSE 581: Module 2 - Hardware Raghu Machiraju Slides: Courtesy - Prof. Huamin Wang, CSE, OSU.

An Early Graphics System

System bus (motherboard)

CPU Memory

Video controller

Graphics card

Graphics memory

A processor dedicated for graphics processing Graphics processor (GPU)

Page 9: CSE 581: Module 2 - Hardware Raghu Machiraju Slides: Courtesy - Prof. Huamin Wang, CSE, OSU.

Companies Building Graphics Cards

Page 10: CSE 581: Module 2 - Hardware Raghu Machiraju Slides: Courtesy - Prof. Huamin Wang, CSE, OSU.

Comparison

(Flops: Floating-point operations)

Page 11: CSE 581: Module 2 - Hardware Raghu Machiraju Slides: Courtesy - Prof. Huamin Wang, CSE, OSU.

Evaluation

Page 12: CSE 581: Module 2 - Hardware Raghu Machiraju Slides: Courtesy - Prof. Huamin Wang, CSE, OSU.

Graphics Pipeline: Software

Page 13: CSE 581: Module 2 - Hardware Raghu Machiraju Slides: Courtesy - Prof. Huamin Wang, CSE, OSU.

Graphics Pipeline: Hardware

Geometry stage Rasterization stage

Page 14: CSE 581: Module 2 - Hardware Raghu Machiraju Slides: Courtesy - Prof. Huamin Wang, CSE, OSU.

Graphics Bus Interface: Peripheral Component Interconnect (PCI)

System bus (motherboard)

CPU Memory

Video controller

Graphics card

Graphics memoryGraphics processor (GPU)

PCI bus

Other peripherals:wireless card,sound card,

133MB/s

Page 15: CSE 581: Module 2 - Hardware Raghu Machiraju Slides: Courtesy - Prof. Huamin Wang, CSE, OSU.

Problems with PCI

• PCI bus becomes a bottleneck!– Shared with other devices.– Lots of data from main memory to graphics

memory: textures, geometry…– Example: 2M triangles, 90 bytes each =>

180 MB > 133 MB (PCI bandwidth)

Page 16: CSE 581: Module 2 - Hardware Raghu Machiraju Slides: Courtesy - Prof. Huamin Wang, CSE, OSU.

Graphics Bus Interface:Accelerated Graphics Port (AGP)

System bus (motherboard)

CPU Memory

Video controller

Graphics card

Graphics memoryGraphics processor (GPU)

PCI bus

Other peripherals:wireless card,sound card,

AGP 1.1: 533 MB/sAGP 3.0: 2133 MB/s

AGP bus132 MB/s

Page 17: CSE 581: Module 2 - Hardware Raghu Machiraju Slides: Courtesy - Prof. Huamin Wang, CSE, OSU.

Features of AGP

• No local bus congestion.• Faster data transfer (20 times faster than PCI).• More geometry can be transferred.• Direct execution of many operations from the

man memory.

Page 18: CSE 581: Module 2 - Hardware Raghu Machiraju Slides: Courtesy - Prof. Huamin Wang, CSE, OSU.

Graphics Bus Interface: Peripheral Component Interconnect Express (PCI-e)

System bus (motherboard)

CPU Memory

Video controller

Graphics card

Graphics memoryGraphics processor (GPU)

(Shared, parallel) PCI-e bus

Other peripherals:wireless card,sound card,

3GB/s

Page 19: CSE 581: Module 2 - Hardware Raghu Machiraju Slides: Courtesy - Prof. Huamin Wang, CSE, OSU.

Readings & Labs

Textbook: Chapter 1 & 2