Professional Documents
Culture Documents
5 Memory
5 Memory
Hasrulnizam, Haibo Wang ECE Department Southern Illinois University Carbondale, IL 62901
5-1
8088
Memory
Data Bus Address bus
What are the control signals from the microprocessor to memory? What are the control signal from memory to the microprocessor? Address and data signals should be buffered
The use of buffers on address bus increases driving capability Bi-directional buffers are used to control the data transferring directions on data bus D latches are used to de-multiplex signals on AD[7:0] (and A[19:16])
5-2
T2
T3
T4
8088
Memory
AD[7:0] 12H
Trans -ceiver
5-3
256KB
CS Addr[17:0] Addr[18] Addr[19] CS IO/M
256KB
CS
256KB
CS
256KB
CS
2-to-4 decoder
5-4
256KB
CS Addr[19:2] Addr[1] Addr[0] CS IO/M
256KB
CS
256KB
CS
256KB
CS
2-to-4 decoder
5-5
256KB
Addr[19:18] Addr[16:7] Addr[5:0] Addr[17] Addr[6] CS IO/M CS
256KB
CS
256KB
CS
256KB
CS
2-to-4 decoder
It is a bad design, but still works! Does it work if the last memory chip is removed?
5-6
256KB
CS Addr[17:0]
256KB
CS
512KB
CS
Addr[18] Addr[19]
IO/M 5-7
32KB
CS
Can we design a decoder such that the first address of the 32KB memory is 37124H?
5-8
Damaged block
1M addressing space
1M addressing space
5-9
A[15:0]
64KB CS
A[8:0]
512B CS
5-10
1FFFFFH
0011 0 10 1 1111 1111 1111 0011 0 10 0 0000 0000 0000 0011 0 01 1 1111 1111 1111 0011 0 01 0 0000 0000 0000 0011 0 00 1 1111 1111 1111 0011 0 00 0 0000 0000 0000
5-12
8KB
CS
8KB
CS
8KB
CS
With the above decoding scheme, what happens if the processor accesses location 02117H, 32117H, and 9A117H? If two 16KB memory chips are used to implement the 32KB memory system, what is the partial decoding circuit? What are the advantage and disadvantage of partial decoding circuits?
5-13
D clk
clr Q
clr D Q
Ready
5-14
Advantages
1. 2. 1. 2.
1.
Disadvantages
1. 2.
Applications
Accessing DRAMs
DRAM block diagram
Addr[7:0] CAS Column decoder Row decoder
RAS
Storage Array
Accessing DRAMs
Address bus selection circuit
Row Address MUX Column Address To DRAM
CLK IO/M
5-18
Accessing DRAMs
Refreshing operations
Because leakage current will destroy information stored on DRAM capacitors periodic refreshing operations are required for DRAM circuits During refreshing operation, DRAM circuit are not able to response processors request to perform read or write operations How to suspend memory operations? DRAM controllers are developed to take care DRAM refreshing operations
5-19