Transcript
Page 1: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

1

Syllabus

Instructor: Dr. Wesam Ashour

Office: B231

Email: [email protected]

Office Hours: Saturday 11:00 12:00. Sunday 11:00 12:00.

Monday 11:00 12:00. Wednesday 11:00 12:00.

Page 2: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

2

Page 3: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

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: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

4

Syllabus

Description: This course explores the design of computer systems and their architectures. Topics include central processing unit architecture, pipelining, system interconnections, memory systems, input/output systems, interrupt handling. Goals of the Course:Basic understanding of computer organization: roles of processors, main memory, and input/output devices. Understanding the concept of programs as sequences of machine instructions. Understanding the relationship between assembly language and machine language; development of skill in assembly language programming; understanding the relationship between high-level compiled languages and assembly language. Understanding arithmetic and logical operations with integer operands. Understanding floating-point number systems and operations. Understanding simple data path and control designs for processors. Understanding memory organization, including cache structures and virtual memory schemes. The course include basic machine architecture and design, digital logic circuits, digital components, central processing unit, machine representation of instructions and data, addressing techniques, memory organization, and execution of instructions at machine level. 

Page 5: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

Course Outcomes:• By the end of this course, students should be able to:• Write a simple program in assembler language to implement a high level program

segment• Design simple assembly language programs that make appropriate use of a registers

and memory. • Understand how the architecture affects program performance• Understand the basics of computer hardware and how software interacts with

computer hardware.• Understanding how to implement the instruction set architecture ISA• Understanding the levels and organizations of Hierarchies in Memories and cashes.• Assemble a simple computer with hardware design including data format, instruction

format, instruction set, addressing modes, bus structure, input/output, memory, Arithmetic/Logic unit, control unit, and data, instruction and address flow.

5

Syllabus

Page 6: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

6

Syllabus Grades: 20% Quizzes + HWs + Teaching Assistant control.

10% Project. 20% Midterm Exam. 50% Final Exam.

Midterm Exam: Sunday, 10th November 2013, 11:00am-12:30pmFinal Exam: Monday, 6th January 2014, 11:30am-14:30pm

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 7: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

7

Page 8: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

8

Page 9: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

9

Page 10: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

10

Page 11: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

11

Page 12: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

12

Page 13: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

13

Page 14: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

14

Page 15: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

15

Page 16: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

16

Page 17: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

17

Page 18: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

18

Page 19: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

19

Page 20: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

20

Page 21: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

21

Page 22: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

22

Page 23: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

23

Page 24: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

24

Page 25: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

25

Page 26: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

26

Page 27: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

27

Page 28: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

28

Chapter 2

Page 29: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

29

Page 30: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

30

Page 31: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

31

Page 32: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

32

Page 33: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

33

Page 34: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

34

Page 35: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

35

Page 36: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

36

Page 37: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

37

Page 38: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

38

Page 39: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

39

Page 40: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

40

Page 41: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

41

Page 42: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

42

Page 43: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

43

Page 44: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

44

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 45: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

45

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 46: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

46

or $t0, $t1, $t2

ori $t0, $t1, 255

sll $t0, $t1, 4

and $t0, $t1, $t2

Page 47: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

47

Page 48: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

48

Page 49: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

49

Page 50: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

50

Page 51: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

51

if (save[i] >= k)

Code;

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

Page 52: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

52

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 53: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

53

if (save[i] < k)

Code;

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

Page 54: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

54

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 55: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

55

if (save[i] > k)

Code;

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

Page 56: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

56

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 57: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

57

if (save[i] <= k)

Code;

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

Try it by yourself

Page 58: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

58

Page 59: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

59

Page 60: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

60

Page 61: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

61

Page 62: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

62

Page 63: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

63

Page 64: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

64

Page 65: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

65

Page 66: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

66

Page 67: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

67

Page 68: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

68

Page 69: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

69

Page 70: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

70

Page 71: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

71

Page 72: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

72

Page 73: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

73

Page 74: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

74

Page 75: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

75

Page 76: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

76

Page 77: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

77

Page 78: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

78

Page 79: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

79

Page 80: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

80

Page 81: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

81

Page 82: Syllabus Instructor:  Dr. Wesam Ashour Office:  B231 Email: Washour@iugaza

82


Top Related