Lecture 7: Memory Organisation Flashcards

1
Q

What are the two ways data can be read in?

A

Little Endian and Big Endian.

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

Pros of Little Endian?

A

Conversion from 16bit to 32bit requires no arithmetic (Pad with 0s).

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

Pros of Big Endian?

A

More natural, sign is immediately apparent and strings and integers stored in same order.

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

Name three degrees of memory hierarchy. Describe them.

A

Register Memory: fastest, inside CPU, stores temp/partial results of calculations and not many.
Primary or main memory: includes RAM and cache, used for current data and code of executing programs,100x slower than registers.
Secondary memory: peripheral devices like HDDs and SSDs, for long term persistent data, 1000s of times slower than registers and often 1000s of times larger than secondary memory.

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

Name three degrees of memory hierarchy. Describe them.

A

Register Memory: fastest, inside CPU, stores temp/partial results of calculations and not many.
Primary or main memory: includes RAM and cache, used for current data and code of executing programs,100x slower than registers.
Secondary memory: peripheral devices like HDDs and SSDs, for long term persistent data, 1000s of times slower than registers and often 1000s of times larger than secondary memory.

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

Describe 4 different types of Primary Memory.

A

Dynamic RAM: volatile and temporarily stores programs.
Static RAM: faster, larger and more expensive than Dynamic RAM. Does not need to be refreshed and primarily used for cache memory.
Read Only Memory: uneditable and stores BIOS for booting OS.
Flash Style: used in USBs, cheap and non-volatile.

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

What are the two types of cache memory?

A

On-chip and off-chip.

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

Three types of secondary memory?

A

Magnetic Disks, Magnetic Tapes and Optical Disks.

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

What type of secondary memory might be most appropriate for backing up large amounts of data? Why?

A

Magnetic Tape. Cheap.

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

How does CD-ROM and DVD-ROM technology work? Which can store more?

A

Highpowered laser burns pits and lands into surface to write data. Laser is reflected off surface into sensor as it spins to read data. DVD-ROM can store more due to shorter light wavelength.

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

Two types of ways errors can occur?

A

Single bit and multibit (burst) errors.

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

What is Hamming Distance?

A

The # of bits that are different between two words.

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

For code with Hamming Distance, D, it can detect … errors and correct … errors.

A

Detect D-1 and correct (D-1)/2 errors.

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

Explain parity detection.

A

Adds an even or odd parity bit, 0 or 1, respectively, at the end of word. Hamming distance is 2 and so it can detect but not correct. It has 50% reliability.

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

How many parity bits do you need in a Hamming code to correct single bit errors?

A

Log2(n) + 1

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