Top Banner
1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: [email protected] Office Hours: Saturday 10:00 11:00, 13:0014:00 Sunday 11:00 13:00. Wednesday 10:00 11:00.
80

1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: [email protected]@iugaza.edu Office Hours: Saturday 10:00 11:00, 13:00 14:00 Sunday.

Dec 20, 2015

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

1

Syllabus

Instructor: Dr. Wesam Ashour

Office: B231

Email: [email protected]

Office Hours: Saturday 10:00 11:00, 13:0014:00 Sunday 11:00 13:00. Wednesday 10:00 11:00.

Page 2: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

2

Page 3: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

3

Syllabus

Course: ECOM 3310 – Computer Architecture

Contents: 1- Ch.1: Introduction.

2- Ch.2: Instructions: Language of the Computer.

3- Ch.3: Arithmetic for Computers.

4- Ch.4: Assessing and Understanding Performance.

5- Ch.5: The Processor: Datapath and Control.

6- Ch.6: Enhancing Performance with Pipelining.

7- Ch.7: Large and Fast: Exploiting Memory Hierarchy

8- Ch.8: Input/Output Systems

We will cover as much as we can!

Page 4: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

4

Syllabus 

Grades: 1- 30% Mid Term Exam.

2- 50% Final Exam.

3- Teaching Assistants control %20.

Midterm Exam: Tuesday, 16th November 2010, 11:00am-12:30pmFinal Exam: Saturday, 15th January 2011, 11:00-14:00

Important Notice:

Sometimes (& Suddenly) I will test you by giving Quizzes at the beginning of the lecture! - To solve it easily and to get the highest mark, you should always read the last two lectures before attending the class – Good Luck.

Important Advice:

From first day in the semester you should work very hard and you must activate your mind to think!

Page 5: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

5

Page 6: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

6

Page 7: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

7

Page 8: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

8

Page 9: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

9

Page 10: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

10

Page 11: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

11

Page 12: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

12

Page 13: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

13

Page 14: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

14

Page 15: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

15

Page 16: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

16

Page 17: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

17

Page 18: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

18

Page 19: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

19

Page 20: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

20

Page 21: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

21

Page 22: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

22

Page 23: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

23

Page 24: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

24

Page 25: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

25

Page 26: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

26

Chapter 2

Page 27: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

27

Page 28: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

28

Page 29: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

29

Page 30: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

30

Page 31: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

31

Page 32: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

32

Page 33: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

33

Page 34: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

34

Page 35: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

35

Page 36: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

36

Page 37: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

37

Page 38: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

38

Page 39: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

39

Page 40: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

40

Page 41: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

41

Page 42: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

42

lw $t0, 1200($t1)

add $t0, $s2, $t0

sw $t0, 1200($t1)

What is the MIPS machine language code for these three instructions?

1200 (in base 10) = 0000 0100 1011 0000 (binary)

$t0 register is number 8

$t1 register is number 9

$s2 register is number 18

Opcode -> lw is 35 (100011), sw is 43 (101011), R-type (000000) add func is 32 (100000)

Page 43: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

43

lw $t0, 1200($t1)

add $t0, $s2, $t0

sw $t0, 1200($t1)

What is the MIPS machine language code for these three instructions?

1200 (in base 10) = 0000 0100 1011 0000 (binary)

$t0 register is number 8

$t1 register is number 9

$s2 register is number 18

Opcode -> lw is 35 (100011), sw is 43 (101011), R-type (000000) add func is 32 (100000)

100011 01001 01000 0000010010110000

000000 10010 01000 01000 00000 100000

101011 01001 01000 0000010010110000

Page 44: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

44

or $t0, $t1, $t2

ori $t0, $t1, 255

sll $t0, $t1, 4

and $t0, $t1, $t2

Page 45: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

45

Page 46: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

46

Page 47: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

47

Page 48: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

48

Page 49: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

49

if (save[i] >= k)

Code;

Assume save[i] is stored in $t1 and k is stored in $t2

Page 50: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

50

slt $t0, $t1, $t2

bne $t0, $zero, Exit

Code

Exit:

if (save[i] >= k)

Code;

Assume save[i] is stored in $t1 and k is stored in $t2

Page 51: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

51

if (save[i] < k)

Code;

Assume save[i] is stored in $t1 and k is stored in $t2

Page 52: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

52

slt $t0, $t1, $t2

beq $t0, $zero, Exit

Code

Exit:

if (save[i] < k)

Code;

Assume save[i] is stored in $t1 and k is stored in $t2

Page 53: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

53

if (save[i] > k)

Code;

Assume save[i] is stored in $t1 and k is stored in $t2

Page 54: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

54

slt $t0, $t1, $t2

bne $t0, $zero, Exit

beq $t1, $t2, Exit

Code

Exit:

if (save[i] > k)

Code;

Assume save[i] is stored in $t1 and k is stored in $t2

Page 55: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

55

if (save[i] <= k)

Code;

Assume save[i] is stored in $t1 and k is stored in $t2

Try it by yourself

Page 56: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

56

Page 57: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

57

Page 58: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

58

Page 59: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

59

Page 60: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

60

Page 61: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

61

Page 62: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

62

Page 63: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

63

Page 64: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

64

Page 65: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

65

Page 66: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

66

Page 67: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

67

Page 68: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

68

Page 69: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

69

Page 70: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

70

Page 71: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

71

Page 72: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

72

Page 73: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

73

Page 74: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

74

Page 75: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

75

Page 76: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

76

Page 77: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

77

Page 78: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

78

Page 79: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

79

Page 80: 1 Syllabus Instructor: Dr. Wesam Ashour Office: B231 Email: Washour@iugaza.eduWashour@iugaza.edu Office Hours: Saturday 10:00  11:00, 13:00  14:00 Sunday.

80