Académique Documents
Professionnel Documents
Culture Documents
Memory system
Overview Read-only memory can normally only be read Internal organization similar to SRAM ROMs are effective at implementing truth tables
Any logic function can be implemented using ROMs
Multiple single-bit functions embedded in a single ROM Also used in computer systems for initialization
ROM doesnt lose storage value when power is removed
3 Input Lines
A B C
F0
F1 F2
F3
F4
5 Output Lines
ROM Implementation
ROM = "Read Only Memory"
values of memory locations are fixed ahead of time if the address is m-bits, we can address 2m entries in the ROM. our outputs are the bits of data that the address points to.
0 0 0 0 1 1 1 1
0 0 1 1 0 0 1 1
0 1 0 1 0 1 0 1
0 1 1 1 0 0 0 0
0 1 1 0 0 0 1 1
1 0 0 0 0 0 1 1
1 0 0 0 0 1 0 1
ROM Implementation Suppose there are 10 inputs 10 address lines (i.e., 210 = 1024 different addresses) Suppose there are 20 outputs ROM is 210 x 20 = 20K bits size) (and a rather unusual
3 Inputs Lines
B 0 0 1 1 0 0 1 1
C 0 1 0 1 0 1 0 1
F0 0 1 0 1 0 0 1 1
F1 F 2 F 3 F 4 1 1 0 1 1 1 0 1 0 1 0 1 0 1 1 0 1 1 1 0 1 1 0 1 0 0 1 1 0 1 1 0
A B C
F0
F1 F2
F3
F4
0 0 0 0 1 1 1 1
5 Outputs Lines
n Inputs Lines . . .
n bit decoder
. . .
...
m Outputs Lines
m0=ABC m1=ABC
A B C
m2=ABC
3 to 8 decoder
F0
F1
F2
F3
F4
ROM Example
Specify a truth table for a ROM which implements:
F = AB + ABC G = ABC + C H = ABC + ABC + ABC
A 0 0 0 0 1 1 1 1
B 0 0 1 1 0 0 1 1
C 0 1 0 1 0 1 0 1
ROM Example
Specify a truth table for a ROM which implements:
F = AB + ABC G = ABC + C H = ABC + ABC + ABC
A 0 0 0 0 1 1 1 1
B 0 0 1 1 0 0 1 1
C 0 1 0 1 0 1 0 1
F 0 0 1 0 0 0 1 1
ROM Example
Specify a truth table for a ROM which implements:
F = AB + ABC G = ABC + C H = ABC + ABC + ABC
A 0 0 0 0 1 1 1 1
B 0 0 1 1 0 0 1 1
C 0 1 0 1 0 1 0 1
F 0 0 1 0 0 0 1 1
G 1 1 1 0 1 0 1 0
H 0 1 0 0 1 0 1 0
Function Implementation
m0=ABC m1=ABC
A B C
m2=ABC
3 to 8 decoder
ROM Implementation of a Moore Machine ROMs implement combinational logic Note that ROMs do not hold state
Inputs ROM
Present State
Next State
ROM
Outputs
ROM Implementation of a Mealy Machine ROMs implement combinational logic Note that ROMs do not hold state
Inputs ROM
Present State
Next State
ROM
Outputs
Summary ROMs provide stable storage for data ROMs have address inputs and data outputs
ROMs directly implement truth tables
ROMs can be used effectively in Mealy and Moore machines to implement combinational logic In normal use ROMs are read-only
They are only read, not written