+ All Categories
Home > Documents > CMPT 250 Computer Architecture

CMPT 250 Computer Architecture

Date post: 31-Dec-2015
Category:
Upload: naomi-clarke
View: 38 times
Download: 0 times
Share this document with a friend
Description:
CMPT 250 Computer Architecture. Instructor: Yuzhuang Hu [email protected]. Memory Hierarchy. Some Questions. - PowerPoint PPT Presentation
Popular Tags:
19
Instructor: Yuzhuang Hu [email protected]
Transcript
Page 1: CMPT 250 Computer Architecture

Instructor: Yuzhuang [email protected]

Page 2: CMPT 250 Computer Architecture

Memory Hierarchy

Page 3: CMPT 250 Computer Architecture

Some QuestionsWhen you make a program, you may assign a value of

100 to memory location with address 4. When you make another program, address 4 may store value 200. How can we run these two program at the same time?

Many users are using a computer at the same time. Each user has an illusion that he is owning the whole computer. Assume each user is allocated 4GB memory address space. What if we have 1000 users? Do we need 4GB*1000 = 4TB memory?

Page 4: CMPT 250 Computer Architecture

Physical Memory

Physical memory is the amount of DRAM actually installed in your computer.

Physical address space is determined by the address lines of your computer.

Page and page frame. A page contains 1k to 8k bytes.

Page 5: CMPT 250 Computer Architecture
Page 6: CMPT 250 Computer Architecture
Page 7: CMPT 250 Computer Architecture

Fetch an instruction

Access for the directory entry.

Access for the page table entry.

Access for the operand or instruction.

Page 8: CMPT 250 Computer Architecture
Page 9: CMPT 250 Computer Architecture

Overall picture

Page 10: CMPT 250 Computer Architecture

How to run a programThe machine code of a program is in the file system.

To run a program, the operating system creates a process with its own virtual address space.

The program is then loaded into this space.

The operating system then instructs the CPU to fetch the first instruction of this program.

The instruction will go through the secondary memory to higher levels of the memory hierarchy.

The portion of the address space in use will remain in the main memory.

Page 11: CMPT 250 Computer Architecture
Page 12: CMPT 250 Computer Architecture

I/O Interface UnitsPeripherals are often eletro-mechanical devices whose

manner of operation is different from that of the CPU and memory.

The data-transfer rate of peripherals is usually different from the clock rate of the CPU.

Data codes and formats in peripherals differ from the word format in the CPU.

The operating modes of peripherals differ from each other.

Page 13: CMPT 250 Computer Architecture

I/O bus and interface

Page 14: CMPT 250 Computer Architecture
Page 15: CMPT 250 Computer Architecture
Page 16: CMPT 250 Computer Architecture
Page 17: CMPT 250 Computer Architecture
Page 18: CMPT 250 Computer Architecture
Page 19: CMPT 250 Computer Architecture

THANKS!


Recommended