1. Trang chủ
  2. » Giáo án - Bài giảng

kiến trúc máy tính võ tần phương chương ter01 sinhvienzone com

55 113 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

Định dạng
Số trang 55
Dung lượng 3,44 MB

Nội dung

dce 2013 COMPUTER ARCHITECTURE CSE Fall 2013 Faculty of Computer Science and Engineering Department of Computer Engineering BK TP.HCM Vo Tan Phuong http://www.cse.hcmut.edu.vn/~vtphuong CuuDuongThanCong.com https://fb.com/tailieudientucntt dce 2013 Chapter Introduction CuuDuongThanCong.com Computer Architecture – Chapter https://fb.com/tailieudientucntt © Fall 2013, CS dce 2013 Presentation Outline • Welcome to CA CSE Fall 2013 • Computer Architectures and Trends • High-Level, Assembly-, and Machine-Languages • Components of a Computer System • Chip Manufacturing Process • Programmer's View of a Computer System CuuDuongThanCong.com Computer Architecture – Chapter https://fb.com/tailieudientucntt © Fall 2013, CS dce 2013 Welcome to CA CSE Fall 2013 • Instructor: Võ Tấn Phương  Email: vtphuong@cse.hcmut.edu.vn • TA: Trần Thanh Bình  Email: thanhbinh.hcmut@gmail.com • Course Web Page: – http://www.cse.hcmut.edu.vn/~vtphuong/KTMT – https://piazza.com/hcmut.edu.vn/fall2013/cse_504002/home CuuDuongThanCong.com Computer Architecture – Chapter https://fb.com/tailieudientucntt © Fall 2013, CS dce 2013 Which Textbook will be Used? • Computer Organization & Design: The Hardware/Software Interface – Fourth Edition – David Patterson and John Hennessy – Morgan Kaufmann Publishers, 2009 • Read the textbook in addition to slides CuuDuongThanCong.com Computer Architecture – Chapter https://fb.com/tailieudientucntt © Fall 2013, CS dce 2013 Estimated Schedule • • • • • • • • • Introduction (1 week) MIPS Instruction Set Architecture (2 weeks) MIPS Assembly Programming (3 weeks) Performance (1 week) Basic Digital Function Block, ALU (1 week) Single Cycle MIPS Processor (2 weeks) Pipelined MIPS Processor (2 weeks) Main Memory System (1 week) Cache Memory System (1 week) CuuDuongThanCong.com Computer Architecture – Chapter https://fb.com/tailieudientucntt © Fall 2013, CS dce 2013 Course Learning Outcomes • Towards the end of this course, you should be able to … – Describe the instruction set architecture of a MIPS processor – Analyze, write, and test MIPS assembly language programs – Design the datapath and control of a single-cycle CPU – Design the datapath/control of a pipelined CPU & handle hazards – Describe the organization/operation of memory and caches – Analyze the performance of processors and caches • Required Background – Ability to program confidently in Java or C – Ability to design a combinational and sequential circuit CuuDuongThanCong.com Computer Architecture – Chapter https://fb.com/tailieudientucntt © Fall 2013, CS dce 2013 Tentative Grading Policy • Quizzes – • • • quizzes for each main topic Labs – MIPS assemble programming – ALU design Midterm Exam – 20% 30% Quiz questions, closed book, prepared document sheets Final Exam – 20% 30% Quiz questions, closed book, prepared document sheets CuuDuongThanCong.com Computer Architecture – Chapter https://fb.com/tailieudientucntt © Fall 2013, CS dce 2013 Software Tools • MIPS Simulators – MARS: MIPS Assembly and Runtime Simulator • Runs MIPS-32 assembly language programs • Website: http://courses.missouristate.edu/KenVollmar/MARS/ – SPIM • Also Runs MIPS-32 assembly language programs • Website: http://www.cs.wisc.edu/~larus/spim.html • CPU Design and Simulation Tool – Logisim • Educational tool for designing and simulating CPUs • Website: http://ozark.hendrix.edu/~burch/logisim/ CuuDuongThanCong.com Computer Architecture – Chapter https://fb.com/tailieudientucntt © Fall 2013, CS dce 2013 Presentation Outline • Welcome to CA CSE Fall 2013 • Computer Architectures and Trends • High-Level, Assembly-, and Machine-Languages • Components of a Computer System • Chip Manufacturing Process • Programmer's View of a Computer System CuuDuongThanCong.com Computer Architecture – Chapter https://fb.com/tailieudientucntt © Fall 2013, CS 10 dce 2013 Magnetic Disk Storage A Magnetic disk consists of a collection of platters Provides a number of recording surfaces Read/write head Actuator Recording area Arm provides read/write heads for all surfaces The disk heads are connected together and move in conjunction CuuDuongThanCong.com Computer Architecture – Chapter Track Track Track Arm Direction of rotation Platter Spindle https://fb.com/tailieudientucntt © Fall 2013, CS 41 dce 2013 Magnetic Disk Storage Disk Access Time = Seek Time + Rotation Latency + Transfer Time Read/write head Sector Actuator Recording area Seek Time: head movement to the desired track (milliseconds) Rotation Latency: disk rotation until desired sector arrives under the head Transfer Time: to transfer data CuuDuongThanCong.com Computer Architecture – Chapter Track Track Track Arm Direction of rotation Platter Spindle https://fb.com/tailieudientucntt © Fall 2013, CS 42 dce 2013 Inside the Processor (CPU) CuuDuongThanCong.com Computer Architecture – Chapter https://fb.com/tailieudientucntt © Fall 2013, CS 43 Inside the Processor (CPU) • Datapath: part of a processor that executes instructions • Control: generates control signals for each instruction Clock Next Program Counter Instruction 2013 Program Counter dce Instruction Cache Registers A L U Data Cache Control CuuDuongThanCong.com Computer Architecture – Chapter https://fb.com/tailieudientucntt © Fall 2013, CS 44 dce 2013 Datapath Components • Program Counter (PC) – Contains address of instruction to be fetched – Next Program Counter: computes address of next instruction • Instruction and Data Caches – Small and fast memory containing most recent instructions/data • Register File – General-purpose registers used for intermediate computations • ALU = Arithmetic and Logic Unit – Executes arithmetic and logic instructions • Buses – Used to wire and interconnect the various components CuuDuongThanCong.com Computer Architecture – Chapter https://fb.com/tailieudientucntt © Fall 2013, CS 45 2013 Fetch - Execute Cycle Infinite Cycle implemented in Hardware dce Instruction Fetch Instruction Decode Execute Fetch instruction Compute address of next instruction Generate control signals for instruction Read operands from registers Compute result value Memory Access Read or write memory (load/store) Writeback Result Writeback result in a register CuuDuongThanCong.com Computer Architecture – Chapter https://fb.com/tailieudientucntt © Fall 2013, CS 46 dce 2013 Clocking Operation of digital hardware is governed by a clock Clock period Clock (cycles) Data transfer and computation Update state  Clock period: duration of a clock cycle   e.g., 250 ps = 0.25 ns = 0.25 ×10–9 sec Clock frequency (rate) = / clock period  e.g., 1/ 0.25 ×10–9 sec = 4.0×109 Hz = 4.0 GHz CuuDuongThanCong.com Computer Architecture – Chapter https://fb.com/tailieudientucntt © Fall 2013, CS 47 dce 2013 Presentation Outline • Welcome to CA CSE Fall 2013 • Computer Architectures and Trends • High-Level, Assembly-, and Machine-Languages • Components of a Computer System • Chip Manufacturing Process • Programmer's View of a Computer System CuuDuongThanCong.com Computer Architecture – Chapter https://fb.com/tailieudientucntt © Fall 2013, CS 48 dce 2013 Chip Manufacturing Process Blank wafers Silicon ingot Slicer 20 to 40 processing steps 8-12 in diameter 12-24 in long < 0.1 in thick Tested dies Die Tester Packaged dies Bond die to package CuuDuongThanCong.com Patterned wafer Individual dies Computer Architecture – Chapter Dicer Tested Packaged dies Part Tester Ship to Customers https://fb.com/tailieudientucntt © Fall 2013, CS 49 dce 2013 Wafer of Pentium Processors • inches (20 cm) in diameter • Die area is 250 mm2 – About 16 mm per side • 55 million transistors per die – 0.18 μm technology – Size of smallest transistor – Improved technology uses • 0.13 μm and 0.09 μm • Dies per wafer = 169 – When yield = 100% – Number is reduced after testing – Rounded dies at boundary are useless CuuDuongThanCong.com Computer Architecture – Chapter https://fb.com/tailieudientucntt © Fall 2013, CS 50 dce 2013 Effect of Die Size on Yield Good Die Defective Die 120 dies, 109 good 26 dies, 15 good Dramatic decrease in yield with larger dies Yield = (Number of Good Dies) / (Total Number of Dies) Yield = (1 + (Defect per area  Die area / 2))2 Die Cost = (Wafer Cost) / (Dies per Wafer  Yield) CuuDuongThanCong.com Computer Architecture – Chapter https://fb.com/tailieudientucntt © Fall 2013, CS 51 dce 2013 Presentation Outline • Welcome to CA CSE Fall 2013 • Computer Architectures and Trends • High-Level, Assembly-, and Machine-Languages • Components of a Computer System • Chip Manufacturing Process • Programmer's View of a Computer System CuuDuongThanCong.com Computer Architecture – Chapter https://fb.com/tailieudientucntt © Fall 2013, CS 52 dce 2013 Programmer’s View of a Computer System Software Application Programs High-Level Language Level Assembly Language Level Operating System Interface SW & HW Level Instruction Set Architecture Level Microarchitecture Level Hardware Physical Design CuuDuongThanCong.com Computer Architecture – Chapter Increased level of abstraction Level Each level hides the details of the level below it https://fb.com/tailieudientucntt © Fall 2013, CS 53 dce 2013 Programmer's View – • Application Programs (Level 5) – Written in high-level programming languages – Such as Java, C++, Pascal, Visual Basic – Programs compile into assembly language level (Level 4) • Assembly Language (Level 4) – Instruction mnemonics are used – Have one-to-one correspondence to machine language – Calls functions written at the operating system level (Level 3) – Programs are translated into machine language (Level 2) • Operating System (Level 3) – Provides services to level and programs – Translated to run at the machine instruction level (Level 2) CuuDuongThanCong.com Computer Architecture – Chapter https://fb.com/tailieudientucntt © Fall 2013, CS 54 dce 2013 Programmer's View – • Instruction Set Architecture (Level 2) – Interface between software and hardware – Specifies how a processor functions – Machine instructions, registers, and memory are exposed – Machine language is executed by Level (microarchitecture) • Microarchitecture (Level 1) – Controls the execution of machine instructions (Level 2) – Implemented by digital logic • Physical Design (Level 0) – Implements the microarchitecture – Physical layout of circuits on a chip CuuDuongThanCong.com Computer Architecture – Chapter https://fb.com/tailieudientucntt © Fall 2013, CS 55 ... Machine-Languages • Components of a Computer System • Chip Manufacturing Process • Programmer's View of a Computer System CuuDuongThanCong .com Computer Architecture – Chapter https://fb .com/ tailieudientucntt... Machine-Languages • Components of a Computer System • Chip Manufacturing Process • Programmer's View of a Computer System CuuDuongThanCong .com Computer Architecture – Chapter https://fb .com/ tailieudientucntt... course CuuDuongThanCong .com Computer Architecture – Chapter https://fb .com/ tailieudientucntt © Fall 2013, CS 11 dce 2013 Computer Architecture In Context CuuDuongThanCong .com Computer Architecture

Ngày đăng: 28/01/2020, 23:10

TỪ KHÓA LIÊN QUAN