csse132 introduc0on to computer systems
play

CSSE132 Introduc0on to Computer Systems 12 : Computa,onal - PowerPoint PPT Presentation

Adapted from Carnegie Mellon 15-213 CSSE132 Introduc0on to Computer Systems 12 : Computa,onal model March 21, 2013 1 Today: Computa0onal Model Basic structures


  1. Adapted from Carnegie Mellon 15-213 CSSE132 ¡ Introduc0on ¡to ¡Computer ¡Systems ¡ 12 ¡: ¡Computa,onal ¡model ¡ March ¡21, ¡2013 ¡ 1

  2. Today: ¡Computa0onal ¡Model ¡ ¢ Basic ¡structures ¡ ¢ Computa0onal ¡model ¡ § Instruc,ons ¡ § Execu,on ¡ § Save ¡ 2

  3. Basic ¡structures ¡ ¢ Clock ¡ § Regular ¡signal, ¡clock ¡edges ¡can ¡trigger ¡events ¡ ¢ Register ¡ § Stores ¡value, ¡can ¡change ¡each ¡clock ¡cycle ¡ ¢ Register ¡File ¡ § Several ¡addressable ¡read/write ¡registers ¡ ¢ ALU ¡ § Performs ¡math/logic ¡opera,ons ¡on ¡inputs ¡ ¢ Memory ¡ § Stores ¡data ¡and ¡instruc,ons ¡ § Abstracted ¡as ¡large ¡array ¡of ¡byte ¡storage ¡ § Convenient ¡to ¡split ¡into ¡instruc,on ¡and ¡data ¡ 3

  4. Computa0onal ¡model ¡ ¢ Processor ¡ § CPU ¡: ¡Central ¡Processing ¡Unit ¡ § Large, ¡fast ¡chip ¡that ¡drives ¡most ¡computer ¡opera,ons ¡ § GPU ¡: ¡Graphics ¡Processing ¡Unit ¡ ¡ § Large ¡chip, ¡made ¡of ¡many ¡simple, ¡slow ¡CPUs ¡ § Operates ¡on ¡vector ¡data ¡ ¢ For ¡all ¡processors ¡ § Instruc,on ¡directs ¡processor ¡opera,on ¡ § Instruc,ons ¡& ¡data ¡fetched ¡from ¡memory ¡ § Registers ¡store ¡intermediate ¡results ¡ § ALU ¡combines ¡data ¡into ¡new ¡results ¡ § New ¡results ¡can ¡be ¡wriOen ¡back ¡to ¡memory ¡ 4

  5. Processor ¡layout ¡ ¢ Combine ¡basic ¡logic ¡structures ¡into ¡datapath ¡ § Input ¡from ¡memory ¡ § Instruc,ons ¡ § Data ¡ § Track ¡current ¡instruc,on ¡with ¡Program ¡Counter ¡(PC) ¡register ¡ § Temporary ¡storage ¡in ¡register ¡file ¡ § Instruc,ons ¡direct ¡ALU ¡to ¡operate ¡on ¡data ¡ § Output ¡result ¡to ¡memory ¡ ¢ Most ¡datapaths ¡are ¡clock ¡driven ¡ § All ¡the ¡exci,ng ¡things ¡happen ¡on ¡a ¡clock ¡edge ¡ 5

  6. PC newPC Y86 ¡datapath ¡ implemen- valE, valM Write back valM instruction ¢ Simplified ¡x86 ¡ Data the Memory memory of Addr, Data valE CC ALU Execute Cnd aluA, aluB valA, valB srcA, srcB Decode dstE, dstM A B M Register file E icode, ifun valP rA, rB valC Instruction PC Fetch memory increment PC 6

  7. MIPS ¡datapath ¡ 4 Add Add Data Register # Address ALU PC Address Instruction Registers Register # Data Instruction memory memory Register # Data 7

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