131 Week 5 - Memory Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Volatile memory

A

Memory that loses its contents when it loses power

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

Non-volatile memory

A

Memory that keeps its contents when it loses power

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

Dynamic memory

A

A type of volatile memory used for main memory
It is slower but cheaper than static memory.

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

Static memory

A

A type of volatile memory used for registers and cache
It is fast but more expensive than dynamic memory.

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

How is main (dynamic) memory organised?

A

Lots of locations which each store 1 unit of information/data.
Each location has an address it can be identified by.
Addresses are usually linear addresses - 0,1…n

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

Address decoding

A

Memory is usually split up into chips.
An address decoder maps from a linear address to a specific chip and address within the chip.

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

How can multi-byte words be organised?

A

Big endian or little endian

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

Big endian

A

The byte with the lowest address stores the most significant byte.

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

Little endian

A

The byte with the lowest address stores the least significant byte.

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

Combinatorial logic

A

Its outputs are purely a function of its inputs

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

Sequential logic

A

Its outputs are a function of its inputs and of its current outputs

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

S-R flip flop

A

A sequential logic circuit that can store a the state of a bit.
Has 1 output: Q
Has 2 inputs:
Set (S) - if set is high, Q will be stored as high.
Reset (R) - if reset is high, Q will be reset and store low.
When S or R returns to low after the high pulse, Q will stay where it is.
Cannot have S and R high at the same time.

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

Limitations of S-R flip flop

A

Needs distinct Set and Reset inputs where ideally there is 1 input that sets the state.
Cannot specify if we want input data to be stored or not when ideally there is a “latch” that states if the input should be stored or not.

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

Clocked D-type flip flop

A

Variation on clocked d-type flip-flop.
Has 1 output: Q
Has 2 inputs:
Data: the input to be stored.
Latch: if the data should be stored or not.

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

Limitations of clocked D-type flip-flop

A

Cannot control when the data leaves the circuit - ideally want an output enable (OE) signal on the end of the circuit.

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

Master-slave flip-flop

A

Variant on the clocked D-type flip flop.
Has an output enable signal which controls when data leaves the circuit.
Has 2 sides - the master and slave
When master latch is high, data input is stored in the master side.
When master latch returns to low, it allows the slave side to store the input from the master side.

17
Q

Reasons for a master slave flip flop

A

Allows data to leave the circuit before new data is let in meaning there is no chance of data being overwritten before it can be used.

18
Q

Master-slave flip-flops to create registers

A

Registers can be created from master-slave flip-flops by connecting latch and output enable inputs of flip flops so they can be used together.

19
Q

Busses

A

Connects components within the CPU and allows information to be transferred between them.
Bus wires are shared so only there can only be 1 active output at a time - the reason we need output enable.

20
Q

Address bus

A

Runs between the control unit and main memory and is used to tell main memory to access a specific address to be read from or written to.
It’s width corresponds to how many addresses it can access.

21
Q

Data bus

A

Carries data around the computer.
An n-bit processor will have a data bus of n bits wide.
Some processors have external and internal address busses with external busses being less wide to reduce costs.