Top Banner
Computer Organization and Architecture Tutorial 2 Kenneth Lee
28

Computer Organization and Architecture Tutorial 2 Kenneth Lee.

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: Computer Organization and Architecture Tutorial 2 Kenneth Lee.

Computer Organization and Architecture

Tutorial 2

Kenneth Lee

Page 2: Computer Organization and Architecture Tutorial 2 Kenneth Lee.
Page 3: Computer Organization and Architecture Tutorial 2 Kenneth Lee.
Page 4: Computer Organization and Architecture Tutorial 2 Kenneth Lee.
Page 5: Computer Organization and Architecture Tutorial 2 Kenneth Lee.

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

Page 6: Computer Organization and Architecture Tutorial 2 Kenneth Lee.
Page 7: Computer Organization and Architecture Tutorial 2 Kenneth Lee.

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

Page 8: Computer Organization and Architecture Tutorial 2 Kenneth Lee.

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

Page 9: Computer Organization and Architecture Tutorial 2 Kenneth Lee.

• 2.2.a

Load M(2) (Load the contents of memory address 2 to accumulator )

Page 10: Computer Organization and Architecture Tutorial 2 Kenneth Lee.

• 2.2.b Fetch: access the memory to fetch the instruction

Execute: access the memory address 2 to load the data

Page 11: Computer Organization and Architecture Tutorial 2 Kenneth Lee.

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

Page 12: Computer Organization and Architecture Tutorial 2 Kenneth Lee.

Text book: p 53

Page 13: Computer Organization and Architecture Tutorial 2 Kenneth Lee.

(Text book p 56)

Page 14: Computer Organization and Architecture Tutorial 2 Kenneth Lee.
Page 15: Computer Organization and Architecture Tutorial 2 Kenneth Lee.

Text book p 64

Page 16: Computer Organization and Architecture Tutorial 2 Kenneth Lee.

•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)

Page 17: Computer Organization and Architecture Tutorial 2 Kenneth Lee.

•Reduces propagation delay because each bus can be shorter•Reduces bottleneck effects

(Text book p 70-71)

Page 18: Computer Organization and Architecture Tutorial 2 Kenneth Lee.

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 frequentlyAll memory address related operation need go through MARAll data transfer related operation need go through MBR

Page 19: Computer Organization and Architecture Tutorial 2 Kenneth Lee.
Page 20: Computer Organization and Architecture Tutorial 2 Kenneth Lee.
Page 21: Computer Organization and Architecture Tutorial 2 Kenneth Lee.
Page 22: Computer Organization and Architecture Tutorial 2 Kenneth Lee.
Page 23: Computer Organization and Architecture Tutorial 2 Kenneth Lee.

12 bit address

16 bit memory

Page 24: Computer Organization and Architecture Tutorial 2 Kenneth Lee.
Page 25: Computer Organization and Architecture Tutorial 2 Kenneth Lee.

16 bit bus

16 bitinstruction

Page 26: Computer Organization and Architecture Tutorial 2 Kenneth Lee.

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

Page 27: Computer Organization and Architecture Tutorial 2 Kenneth Lee.
Page 28: Computer Organization and Architecture Tutorial 2 Kenneth Lee.