Professional Documents
Culture Documents
EN Ch2 Memories
EN Ch2 Memories
Chapiter II (Memories)
Memories
Mokrani Hocine
dr.mokrani@gmail.com
1 2
combinational logic
Input exchanges are propagated directly to the outputs.
Combinational logic Propagation
&
Combinational
Sequential logic Inputs
circuit
Output
Outputs
Input events
Time
1
1/30/2024
3 input wires
Multiplexer: selects one of several inputs. Decoder: activate one of several outputs
5 6
Results
Propagation
Input s
Operation selection a
Output
Sequential circuit
2
1/30/2024
Asynchronous mode
Tasks can be performed in two ways. W
Bascule D Q
D= DATA W= WRITE
• Asynchronous mode: • When W = 1 then Q ← D. (This value is stored).
• When W = 0, the bascule remains in the same state and the output is set to
The logic output can change state at any time the last stored value.
Synchronous Mode
• Synchronous mode:
D
The change of state is controlled by a clock H
Bascule D Q
Memories
• Definition
Device for recording, storing and retrieving information.
11 12
3
1/30/2024
13 14
Access method
Locating the different memory types • Sequential access
To access a piece of information, you have to go through all the
Motherboard information that precedes it.
Example: magnitic band.
directly.
Registres
4
1/30/2024
17 18
• DRAM memory:
– Dynamic: information needs to be periodically refreshed.
– 1 bit = 1 transistor + 1 condensateur.
5
1/30/2024
Bus d’adresse
• Number of memory cells: 2ᴺ cell -> N address bus wires.
N bits
• Memory size: 2ᴺ Χ K bits.
Address bus
Mémoire Centrale
R/W
Data bus CS
Bus de données
K bits
Cell 4
2N Cells
Cell 2N -3
Cell 2N -2
Cell 2N -1
Memory_Size = K x 2N
6
1/30/2024
Memory operation
(Read mode) Memory operation
Reading cycle: (Write mode)
Establishing the address.
Writing cycle:
Read signal (R/W=0 for example)
Set address.
Chip selection (CS=1)
Chip Selection (CS=1).
After a certain time, the information appears on the output and
remains there until the end of the cycle. Set input data.
Write signal (R/W=1 below).
Cycle time
Address
Address
R/W
R/W
CS
CS
Data
Data
25 26
Access time
27 28
7
1/30/2024
• Information in memory may contain one or more errors • Logical memory is how the processor (or programmer) sees
(due to its physical nature). (physical) memory.
• To detect and correct, control bits are added: • Memory is defined as a set of N consecutive bytes whose first
address is 0 and whose last address is N-1.
ECC memory: (Error correction coding) • A 32-bit word consists of 4 consecutive bytes.
has several additional bits to detect and correct errors.
29 30
31 32
8
1/30/2024
• Memory paging.
• Memory segmentation.
• Pagining memory segment.
35