Presentation is loading. Please wait.

Presentation is loading. Please wait.

Introduction Computer Organization 1403372 Spring 1436/37H (2015/16G) Dr. Mohammed Sinky Computer Architecture - 14034721.

Similar presentations


Presentation on theme: "Introduction Computer Organization 1403372 Spring 1436/37H (2015/16G) Dr. Mohammed Sinky Computer Architecture - 14034721."— Presentation transcript:

1 Introduction Computer Organization 1403372 Spring 1436/37H (2015/16G) Dr. Mohammed Sinky Computer Architecture - 14034721

2 General Information Instructor: Mohammed Sinky Office: 1102 in Building H ( مبنى ح ) Email: mhsinky@uqu.edu.samhsinky@uqu.edu.sa Lab TA: Mohsin Khan Email: mmnkhan@uqu.edu.sammnkhan@uqu.edu.sa Office Hours: Monday 10am-11:50am TEXTBOOK: Computer Organization and Design the Hardware/Software Interface, 5 th edition, David Patterson and John Hennessy, ISBN 9780124077263 Web Page: https://uqu.edu.sa/page/ar/93235738 Computer Architecture - 14034722

3 Class Meeting Times TimeSundayMondayTuesdayWednesdayThursday 8am (1) 7H (7 ح ) 9am (2) 10am (3) Office Hours 11am (4) 12pm 1pm (5) 2pm (6)6H (6 ح ) 3pm 4pm (7) Lab: Electronics Lab 5pm (8) 6pm (9) Computer Architecture - 14034723

4 Web Page and Required Software Class depends heavily on the internet, be sure to check regularly Web Page Contents Announcements Homework Notes Class grades Adobe Reader is needed for homework https://get.adobe.com/reader/ Class notes will be provided in Microsoft PowerPoint See UQU home page for free download for students Computer Architecture - 14034724

5 Homework Homework will be posted on the web page Submission should be on time or you receive no credit Solutions will be posted on due date after class Computer Architecture - 14034725

6 Classroom Policy Class will start ON TIME! Attendance No points for attendance, it is for your own good to attend 45 lecture hours throughout semester UQU policy states that 25% = 12 absences results in a grade of “banned” or محروم Cell phone – considered absent You are encouraged to ask questions Best way to pass class Attend and put forth effort Computer Architecture - 14034726

7 Test Policy NO MAKEUP EXAMS. If you miss a test or quiz you will not be allowed to take it No cell phones, no calculators. Solve using PEN You must show your work for credit! No work = 0 points Cheating results in an automatic score of 0. Computer Architecture - 14034727

8 Grade Distribution (tentative for now) Homework: 15 % Midterm: 20 % Lab: 25% Final: 40 % I will try to post updated class grades if possible Computer Architecture - 14034728

9 Computer Organization and Design Covers the organization and interconnections between components of a computer Basic understanding of what constitutes performance Major focus in this class Instruction set architecture (ISA) The language of a computer Understand the interface between ISA and hardware Computer Architecture - 14034729

10 Five Classic Components Five classic components of a computer: Input Output Memory Datapath Control Computer Architecture - 140347210

11 What is Under Your Program? Computer Architecture - 140347211 C, C++, Java Windows, iOS, Linux Compilers

12 Hardware Inputting data Keyboard, mouse, touchscreen Outputting data Speakers, LCD display Processing data Central Processing Unit (CPU) – old terminology Processor Microprocessor Storing data Cache SRAM, DRAM Flash Magnetic Disk Computer Architecture - 140347212 Hardware inputting dataoutputting data processing data storing data

13 The Hardware/Software interface Interface between hardware and lowest level software: Instruction Set Architecture (ISA) or Architecture Operating system hides ISA from application programmers ISA implementation may have many designs ISA can be discussed independent of hardware Computer Architecture - 140347213 Hardware ISA add $s1, $s2, $s3 beq $s1, $s2, CHECK.

14 Short review Computer Arithmetic – two’s complement Flip Flops Registers State Machine – relationship to Computer Operation Short discussion about MIPS assembly language Computer Architecture - 140347214

15 What Affects Performance? Algorithm Determines number of operations executed Programming language, compiler, architecture Determine number of machine instructions executed per operation Processor and memory system Determine how fast instructions are executed I/O system (including OS) Determines how fast I/O operations are executed Computer Architecture - 140347215

16 Defining Performance Which airplane has the best performance? Computer Architecture - 140347216

17 Response Time and Throughput Response time How long it takes to do a task Throughput Total work done per unit time E.g., tasks/transactions/… per hour How are response time and throughput affected by Replacing the processor with a faster version? Adding more processors? Focus: response time Computer Architecture - 140347217

18 Relative Performance Define Performance = 1/Execution Time “X is n times faster than Y” Example: time taken to run a program 10s on A, 15s on B Execution Time B / Execution Time A = 15s / 10s = 1.5 So A is 1.5 times faster than B Computer Architecture - 140347218

19 Computer Architecture - 1403472 Measuring Execution Time Elapsed time Total response time, including all aspects Processing, I/O, OS overhead, idle time Determines system performance CPU time Time spent processing a given job Discounts I/O time, other jobs’ shares Comprises user CPU time and system CPU time Different programs are affected differently by CPU and system performance 19

20 Computer Architecture - 1403472 CPU Clocking Operation of digital hardware governed by a constant- rate clock Clock (cycles) Data transfer and computation Update state Clock period Clock period: duration of a clock cycle e.g., 250ps = 0.25ns = 250×10 –12 s Clock frequency (rate): cycles per second e.g., 4.0GHz = 4000MHz = 4.0×10 9 Hz 20

21 Computer Architecture - 1403472 CPU Time Performance improved by Reducing number of clock cycles Increasing clock rate Hardware designer must often trade off clock rate against cycle count 21

22 Computer Architecture - 1403472 CPU Time Example Computer A: 2GHz clock, 10s CPU time Designing Computer B Aim for 6s CPU time Can do faster clock, but causes 1.2 × clock cycles How fast must Computer B clock be? 22

23 Computer Architecture - 1403472 Instruction Count and CPI Instruction Count for a program Determined by program, ISA and compiler Average cycles per instruction Determined by CPU hardware If different instructions have different CPI Average CPI affected by instruction mix 23

24 Computer Architecture - 1403472 CPI Example Computer A: Cycle Time = 250ps, CPI = 2.0 Computer B: Cycle Time = 500ps, CPI = 1.2 Same ISA Which is faster, and by how much? A is faster… …by this much 24


Download ppt "Introduction Computer Organization 1403372 Spring 1436/37H (2015/16G) Dr. Mohammed Sinky Computer Architecture - 14034721."

Similar presentations


Ads by Google