Topic 2 Theory Flashcards

1
Q

4 CPU components

A

Memory Address Register (MAR)
- Specifies address in memory for the next read or write.
Memory Buffer Register (MBR)
- contains data read/write from/to memory
Program counter
- keeps track of the memory address of the next instruction to be fetched and executed.
Instruction Register
- holds the current instruction being executed, loaded with contents of the memory address pointed by program counter.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

4 action categories in Instruction Register (IR)

A

Processor-memory,Processor-I/O, Data processing, Control

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

4 Classes of Interrupts

A

Program Interrupts, Timer Interrupts, I/O Interrupts, Hardware Failure Interrupts

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Sequential Interrupt Approach

A

Disables interrupts when interrupt is being processed, handled in sequential order.
check for secondary interrupts before resuming user program.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Nested interrupt Approach

A

Define priorities for interrupts. Higher priority interrupts are handled first, higher the number, higher the priority.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Characteristics of memory

A

Capacity and Performance

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What affects the performance of memory?

A

Access time, memory cycle time and transfer rate

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Physical characteristics of memory

A

Volatile,non-volatile,nonerasable,erasable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Volatile memory

A

data decay naturally or lost when there is no power supply

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

non-volatile memory

A

no electrical power needed to retain data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

nonerasable memory

A

cannot be altered unless destroying storage units. Eg(Read-Only Memory) ROM

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Erasable memory

A

can be altered and erased from storage

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Physical characteristics of Semiconductor and magnetic-surface memory

A

Semiconductor: volatile or non-volatile.
Magnetic: non -volatile

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Memory Hierarchy tradeoffs

A

Lower access time, Higher cost per bit
Larger capacity, lower cost per bit
Larger capacity, Higher access time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Memory hierarchy from top to bottom

A

CPU,Registers,Cache,Multiple cache levels,Main Memory, (DRAM,SDRAM,DDR-SDRAM), SSD, Flash memory, Virtual memory and file/database memory/Magnetic Disk, Offline Bulk Memory, Magnetic Tape

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Locality of reference ( Cache memory principle)

A

looks for information in the same few places.

17
Q

Thrashing

A

words are being mapped into the same cache line, blocks are constantly being swapped, hit ratio is low.

18
Q

Address length

A

s + w

19
Q

Addressable memory units

A

2^(s+w)

20
Q

No. of cache line

A

m = 2^r

21
Q

Number of tag bits

A

s - r

22
Q

Block size

A

2^w

23
Q

No. of blocks in main memory

A

2^(s+w)/2^w = 2^s

24
Q

cache line and memory block relationship

A

Size of 1 cache line = size of 1 memory block