View
216
Download
0
Category
Preview:
Citation preview
8/4/2019 Computer Science 37 Lecture 5
1/18
1
4.1
Lecture5
MemoryChips
and
FiniteStateMachines
8/4/2019 Computer Science 37 Lecture 5
2/18
2
4.2
MoreandMoreBits
Flip-flop:onesinglebit
Register:asetofbits
Registerfile:asetofregisters
Whatsnext?
8/4/2019 Computer Science 37 Lecture 5
3/18
3
4.3
Memory
MemoryChip
Width=wordsize=mbits
Height=2^nwords
Bitsize=HeightxWidth
Addressn
]0..1[ mDin
]0..1[ mDout
Chip
select
Write
enable
Output
enable
m
m
8/4/2019 Computer Science 37 Lecture 5
4/18
4
4.4
ErrorDetection
ParityGenerator
data
paritybit
8/4/2019 Computer Science 37 Lecture 5
5/18
5
4.5
ErrorDetection
ParityGenerator
data
stored
parity
bit
comparator
computedparity
bit
8/4/2019 Computer Science 37 Lecture 5
6/18
6
4.6
TypesofMemory
ROM:Read-OnlyMemoryPROM:ProgrammableROM
EPROM:Erasable(byUV)PROMEEPROM:ElectricallyErasablePROM
RAM:RandomAccessMemory
SRAM:StaticRAM
DRAM:DynamicRAM
Writetoitanytime,readfromitanytime.
Writetoitoff-line,readfromitanytime.
8/4/2019 Computer Science 37 Lecture 5
7/18
7
4.7
SRAM
Storeeachbitinsidealatchanditsvalueremainsaslongasthechipispoweredup.
Accesstimeisfixed(maybedifferentforreadorwriteoperations).
Setupandholdtimesmustbeobservedfor
writes.
8/4/2019 Computer Science 37 Lecture 5
8/18
8
4.8
DRAM
Thebitsarestoredincapacitorsratherthaninlatches.
Catch:capacitorsleakcharge=>mustrefreshperiodically.
Refreshingtakesonly1%to2%ofactivecycles.
CostislowerthanSRAM,butaccesstimeis
higher.
8/4/2019 Computer Science 37 Lecture 5
9/18
9
4.9
SSRAMandSDRAM
Donthavetoaccessonewordatatime,butratherinchunksorbursts.
Giveitaaddressandburstlengthforeach
access.
Dontneedtopassoneaddressatatime,but
mustgiveitaclocksignaltosequentializeoperationswithinaburst.
8/4/2019 Computer Science 37 Lecture 5
10/18
10
4.10
SequentialLogic
CombinationalLogic:Nomemory.
Whatextracapabilitieswoulda
circuitwithmemoryhave?
Memory
CombinationalLogicClock
8/4/2019 Computer Science 37 Lecture 5
11/18
11
4.11
Whatsinastate?
Studytheproblemanddeterminewhat
informationneedstoberememberedbythe
circuitastimeevolves.
Thestateindicatesthecurrentcontentsof
memoryandwhatthevalueofanyoutput
linesthecircuitmayhave.
8/4/2019 Computer Science 37 Lecture 5
12/18
12
4.12
Example:SequenceGenerator
(orCounter)
A/000
B/001
C/010
D/011
E/100
F/101
G/110H/111
Noneedforinputsotherthana
referencesignalfortimekeeping.
8/4/2019 Computer Science 37 Lecture 5
13/18
13
4.13
Example:SequenceGenerator
(orCounter)
000111
111110110101
101100
100011
011010
010001
001000
Nextstate
(XYZ)
Currentstate(XYZ)
YZXZXYXX ++='
ZYZYY +='
ZZ ='
8/4/2019 Computer Science 37 Lecture 5
14/18
14
4.14
SequenceGeneratorCircuitCombinationallogic=generatesnextstate(statetransitionfunction)
Memory=storescurrentstate
8/4/2019 Computer Science 37 Lecture 5
15/18
15
4.15
Example:AnotherKindofCounter
A/000
B/001
C/010
D/011
E/100
F/101
G/110H/111
SinglebitinputWtellscircuittoeither
stoporgooncounting.
W=1
W=1
W=1
W=1
W=1
W=1
W=1W=1
W=0
W=0
W=0
W=0
W=0
W=0W=0
W=0
8/4/2019 Computer Science 37 Lecture 5
16/18
16
4.16
Example:AnotherKindofCounter
1
0
1
0
1
0
1
0
W
011011
100011
010010
011010
001001
010001
000000
001000
Nextstate
(XYZ)
Current
state(XYZ)
8/4/2019 Computer Science 37 Lecture 5
17/18
17
4.17
ASprinkleofFormalismMooreMachines
Memory
NextState
Function
Clock
Current
State Next
StateControl
Inputs
OutputGeneration
Circuit
Output
8/4/2019 Computer Science 37 Lecture 5
18/18
18
4.18
ASprinkleofFormalismMealyMachines
Memory
NextState
Function
Clock
Current
State Next
StateControl
Inputs
OutputGeneration
Circuit
Output
Recommended