Beruflich Dokumente
Kultur Dokumente
Hardware/Software Introduction
Chapter 5 Memory
m words
– k = Log2(m) address input signals
…
– or m = 2^k words
– e.g., 4,096 x 8 memory:
• 32,768 bits n bits per
• 12 address input signals word
• 8 input/output data signals memory external view
r/w
• Memory access 2k × n read and write
memory
– r/w: selects read or write enabl
eA
– enable: read or write only when asserted 0
…
– multiport: multiple accesses to different Ak-1
locations simultaneously …
Qn-1 Q0
permanence
Storage
• Traditional ROM/RAM distinctions Mask-programmed ROM Ideal memory
– ROM
• read only, bits stored without power
Life of OTP ROM
product
– RAM
• read and write, lose stored bits without Tens of EPROM
EEPROM FLASH
years
power Battery
Nonvolatile NVRAM
• Traditional distinctions blurred life (10
years)
– Advanced ROMs can be written to In-system
• e.g., EEPROM programmable SRAM/DRAM
– Advanced RAMs can hold bits without Near Write
zero ability
power
• e.g., NVRAM DuringExternalExternal
ExternalExternal
In-system, fast
fabrication
programmer,
programmer,
programmer
programmer writes,
• Write ability only 1,000s
one time only OR in-system,
OR in-system,
unlimited
of cycles1,000s
block-orientedcycles
– Manner and speed a memory can be writes, 1,000s
of cycles
of cycles
written
• Storage permanence Write ability and storage permanence of memories,
showing relative degrees along each axis (not to scale).
– ability of memory to hold stored bits
after they are written
…
• Uses Ak-1
…
– Store software program for general-purpose
Qn-1 Q0
processor
• program instructions can be one or more
ROM words
– Store constant data needed by system
– Implement combinational circuit
Truth table
Inputs 8×2 ROM
(address) 0 wor
wor
Outputs 0 d0
ena d1
a b c 0
y z ble c 1
b wor
0 0 0 a y 0 z
d7
0 0 1
0 0 1 1
0 1 0
0 1 Jurusan 1
0 Teknik Informatika Untag Surabaya 10
0 1 0
Mask-programmed ROM
• Connections “programmed” at fabrication
– set of masks
• Lowest write ability
– only once
• Highest storage permanence
– bits never change unless damaged
• Typically used for final design of high-volume systems
– spread out NRE cost for a low unit cost
(b)
UV light can pass
• Better write ability 5-30 min
– can be erased and reprogrammed thousands of times
• Reduced storage permanence source drain
Ak-1
…
during execution
…
• Internal structure more complex than ROM
Qn-1 Q0
– a word consists of several memory cells, each
storing 1 bit internal
I3view
I2 I1 I0
– each input and output data line connects to each
cell in its column 4×4 RAM
– rd/wr connected to every cell ena 2×4
ble deco
– when row is enabled by decoder, each cell has A
A1
0
der
logic that stores input data bit when rd/wr Mem
indicates write or outputs stored bit when rd/wr rd/wr To every cell ory
indicates read cell
Q3 Q2 Q1 Q0
Qn-1… Q0
2 × 3n ROM
m
Tag Offs
Dat
V T V Tet … V T
a
D D D
= = Valid
=
0.16
0.14
0.12
% cache 0.1 1 way
2 way
miss 0.08 4 way
0.06 8 way
0.04
0.02
0
1 Kb2 Kb4 Kb8 Kb16 Kb 128 Kbcache
32 Kb64 Kb
size
Jurusan Teknik Informatika Untag Surabaya 31
Advanced RAM
• DRAMs commonly used as main memory in processor based
embedded systems
– high capacity, low cost
• Many variations of DRAMs proposed
– need to keep pace with processor speeds
– FPM DRAM: fast page mode DRAM
– EDO DRAM: extended data out DRAM
– SDRAM/ESDRAM: synchronous and enhanced synchronous DRAM
– RDRAM: rambus DRAM
. Buffer
Circuit
In Buffer
latched in, sequentially, by
Addr
Sense
strobing ras and cas signals,
Buffer Col
rd/wr cas Col Decoder
respectively
Row Decoder
• Refresh circuitry can be external
Addr.
or internal to DRAM device
Data
Row
– strobes consecutive memory address
ras
Bit storage array
address periodically causing
memory content to be
refreshed
– Refresh circuitry disabled
during read or write operation
ras
cas ro c c c
w ol ol ol
da da da
ta ta ta
add
ress Jurusan Teknik Informatika Untag Surabaya 34
Extended data out DRAM (EDO
DRAM)
• Improvement of FPM DRAM
• Extra latch before output buffer
– allows strobing of cas before data read operation completed
• Reduces read/write latency by additional cycle
ras
dat
a Jurusan Teknik Informatika Untag Surabaya 35
(S)ynchronous and
Enhanced Synchronous (ES) DRAM
• SDRAM latches data on active edge of clock
• Eliminates time to detect ras/cas and rd/wr signals
• A counter is initialized to column address then incremented on
active edge of clock to access consecutive memory locations
• ESDRAM improves SDRAM
– added buffers enable overlapping of column addressing
– faster clocking and lower read/write latency possible
clock
ras
ro col
cas w da da da
ta ta ta
address
Jurusan Teknik Informatika Untag Surabaya 36
Rambus DRAM (RDRAM)
• More of a bus interface architecture than
DRAM architecture
• Data is latched on both rising and falling edge
of clock
• Broken into 4 banks each with own row
decoder
– can have 4 pages open at a time
• Capable of very high throughput
Jurusan Teknik Informatika Untag Surabaya 37
DRAM integration problem
• SRAM easily integrated on same chip as
processor
• DRAM more difficult
– Different chip making process between DRAM and
conventional logic
– Goal of conventional logic (IC) designers:
• minimize parasitic capacitance to reduce signal
propagation delays and power consumption
– Goal of DRAM designers:
• create capacitor cells to retain stored information
– Integration processes
Jurusan Teknik Informatika Untag Surabaya
beginning to appear 38
Memory Management Unit (MMU)
• Duties of MMU
– Handles DRAM refresh, bus interface and
arbitration
– Takes care of memory sharing among multiple
processors
– Translates logic memory addresses from
processor to physical memory addresses of
DRAM
• Modern CPUs often come with MMU built-in
• Single-purpose processors can be used
Jurusan Teknik Informatika Untag Surabaya 39