













Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Assignment; Class: Microprocessors; Subject: Electrical & Computer Engineer; University: Boise State University; Term: Fall 2007;
Typology: Assignments
1 / 21
This page cannot be seen from the preview
Don't miss anything!














Ranges of write ability
High end
Middle range
Lower range
Low end
In-system programmable memory
memoryCan be written to by a processor in the embedded system using the
Memories in high end and middle range of write ability
Range of storage permanence
essentially never loses bits
e.g. mask-programmed ROM
holds bits days, months, or years after memory’s power source turned off
e.g. NVRAM
holds bits as long as power supplied to memory
e.g. SRAM
begins to lose bits almost immediately after written
e.g. DRAM
Nonvolatile memory
Horizontal lines = words
Vertical lines = data
Lines connected only at circles
address input is 010Decoder sets word 2’s line to 1 if
Data lines Q
3
and Q
1
are set to 1
connection with word 2’s linebecause there is a “programmed”
lines QWord 2 is not connected with data
2
and Q
0
Output is 1010
8
4 ROM
3 8
decoder
Q
0
Q
3
A
0
enable A
2
word 1word 0
A 1 Q 2 Q 1
programmable connection
wired-OR
data line word line
word 2
Internal view
Implementing Combinational Function
Any combinational circuit of
n
functions of same
k
variables can be done with 2
x
n
ROM
Truth table
Inputs (address)
Outputs
a
b
c
y
z
0
0
0
0
0
0
0
1
0
1
0
1
0
0
1
0
1
1
1
0
1
0
0
1
0
1
0
1
1
1
1
1
0
1
1
1 1 1 1 1 0 0
0
1
0
1
1
0
1
0
1
1
1
1
1
1 z
y
c
enable
a b
word 7 word 1word 0
OTP ROM: One-Time Programmable ROM
user provides file of desired contents of ROM
file input to machine called ROM programmer
each programmable connection is a fuse
not existROM programmer blows fuses where connections should
devicetypically written only once and requires ROM programmer
more fuses blownbits don’t change unless reconnected to programmer and
cheaper, harder to inadvertently modify
EPROM: Erasable Programmable ROM
transistorProgrammable component is a MOS
insulatorTransistor has “floating” gate surrounded by an
(a)
Negative charges form a channel between source
and drain storing a logic 1
(b)
Large positive voltage at gate causes negative
floating gate storing a logic 0charges to move out of channel and get trapped in
(c)
(Erase) Shining UV rays on surface of floating-gate
floating gate restoring the logic 1causes negative charges to return to channel from
(d)
An EPROM package showing quartz window
through which UV light can pass
Better write ability
of timescan be erased and reprogrammed thousands
Reduced storage permanence
susceptible to radiation and electric noiseprogram lasts about 10 years but is
developmentTypically used during design
(d) (b) (a)
source
drain
+15V
source
drain
0V
(c)
source
drain
floating gate
5-30 min
Extension of EEPROM
Same floating gate principle
Same write ability and storage permanence
Fast erase
word at a timeLarge blocks of memory erased at once, rather than one
Blocks typically several thousand bytes large
Writes to single words may be slower
written backEntire block must be read, word updated, then entire block
items in nonvolatile memoryUsed with embedded systems storing large data
e.g., digital cameras, TV set-top boxes, cell phones
RAM: “Random-access” memory
Typically volatile memory
No power - no bits!
R
ead and written to easily by embedded
system during execution
Internal structure more complex than ROM
each storing 1 bita word consists of several memory cells,
ea
ch input and output data line connects to
each cell in its column
rd/wr connected to every cell
when rd/wr indicates readrd/wr indicates write or outputs stored bithas logic that stores input data bit whenwhen row is enabled by decoder, each cell
k
A
0
…
r/w
…
Q
0
Q
n-
A
k-
external view
4 4 RAM 2 4
decoder
0
3
A
0
enable
A 1 Q 2 Q 1
Memory
cell
I 0
I 3
I 2
I 1
rd/wr
internal view
PSRAM: Pseudo-static RAM
DRAM with built-in memory refresh controller
Popular low-cost high-density alternative to SRAM
NVRAM: Nonvolatile RAM
Holds data after external power removed
Battery-backed RAM
SRAM with own permanently connected battery
writes as fast as reads
memoryno limit on number of writes unlike nonvolatile ROM-based
SRAM with EEPROM or flash
power turned offstores complete RAM contents on EEPROM or flash before
Composing memory
Connect side-by-side to increase width of words
Connect top to bottom to increase number of words
wordsCombine techniques to increase number and width of
…
2 m
3n ROM
2 m
n
ROM
A
0
…
enable
2 m
n
ROM
…
2 m
n
ROM
…
Q
3n-
Q
2n-
…
Q
0
…
A
m
Increase width
of words
2 m+
n ROM
m
0
…
enable
…
m
m-
m
1 (^) (^2)
decoder
…
…
…
Q
n-
Q
…
Increase number of words
enable A
outputs
Increase number
and width of
words
SRAM easily integrated on same chip as processor
DRAM more difficult
conventional logicDifferent chip making process between DRAM and
Goal of conventional logic (IC) designers:
delays and power consumptionminimize parasitic capacitance to reduce signal propagation
Goal of DRAM designers:
create capacitor cells to retain stored information
Integration processes beginning to appear
Memory Management Unit (MMU)
Duties of MMU
arbitrationHandles DRAM refresh, bus interface and
processorsTakes care of memory sharing among multiple
DRAMprocessor to physical memory addresses ofTranslates logic memory addresses from
Modern CPUs often come with MMU built-in