131 Week 5 - Memory Flashcards
Volatile memory
Memory that loses its contents when it loses power
Non-volatile memory
Memory that keeps its contents when it loses power
Dynamic memory
A type of volatile memory used for main memory
It is slower but cheaper than static memory.
Static memory
A type of volatile memory used for registers and cache
It is fast but more expensive than dynamic memory.
How is main (dynamic) memory organised?
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
Address decoding
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 can multi-byte words be organised?
Big endian or little endian
Big endian
The byte with the lowest address stores the most significant byte.
Little endian
The byte with the lowest address stores the least significant byte.
Combinatorial logic
Its outputs are purely a function of its inputs
Sequential logic
Its outputs are a function of its inputs and of its current outputs
S-R flip flop
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.
Limitations of S-R flip flop
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.
Clocked D-type flip flop
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.
Limitations of clocked D-type flip-flop
Cannot control when the data leaves the circuit - ideally want an output enable (OE) signal on the end of the circuit.