Presentation is loading. Please wait.

Presentation is loading. Please wait.

Computer Organization and Architecture Tutorial 2 Kenneth Lee.

Similar presentations


Presentation on theme: "Computer Organization and Architecture Tutorial 2 Kenneth Lee."— Presentation transcript:

1 Computer Organization and Architecture Tutorial 2 Kenneth Lee

2

3

4

5 One instruction has 20 bits 8 bits for operation code (opcode) 12 bits for the address of operand

6

7 Binary, Octal, Decimal, Hexadecimal Binary: Base two Only 2 numbers: 0, 1 0+1=1; 1+1=10 Octal: Base eight 8 numbers: 0, 1, 2, 3, 4, 5, 6, 7 1+2=3; 7+1=10 Decimal: Base ten 9 numbers: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 1+2=3; 9+1=10

8 Hexadecimal Base sixteen 16 numbers: 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F 1+2=3; 9+1=A; E+1=F; F+1=10

9 2.2.a Load M(2) (Load the contents of memory address 2 to accumulator )

10 2.2.b Fetch: access the memory to fetch the instruction Execute: access the memory address 2 to load the data

11 This program will store the absolute value of the contents of memory address 0FA into memory address 0FB

12 Text book: p 53

13 (Text book p 56)

14

15 Text book p 64

16 Memory to processor Processor to memory I/O to processor Processor to I/O I/O to or from memory (Text book p 67-68)

17 Reduces propagation delay because each bus can be shorter Reduces bottleneck effects (Text book p 70-71)

18 MAR (Memory address register)  Specifies the address in the memory for the next read or write MBR (Memory buffer register)  Contains the data to be written into memory or receives the data read from memory Two registers used most frequently  All memory address related operation need go through MAR  All data transfer related operation need go through MBR

19

20

21

22

23 12 bit address 16 bit memory

24

25 16 bit bus 16 bit instruction

26 Ps. a 16-bit bus need one cycle to transfer a 8-bit instruction

27

28


Download ppt "Computer Organization and Architecture Tutorial 2 Kenneth Lee."

Similar presentations


Ads by Google