Memory, Latches, - PowerPoint PPT Presentation

About This Presentation
Title:

Memory, Latches,

Description:

Memory, Latches, & Registers Structured Logic Arrays Memory Arrays Transparent Latches How to save a few bucks at toll booths Edge-triggered Registers – PowerPoint PPT presentation

Number of Views:34
Avg rating:3.0/5.0
Slides: 37
Provided by: McM137
Learn more at: http://www.cs.unc.edu
Category:

less

Transcript and Presenter's Notes

Title: Memory, Latches,


1
Memory, Latches, Registers
  1. Structured Logic Arrays
  2. Memory Arrays
  3. Transparent Latches
  4. How to savea few bucksat toll booths
  5. Edge-triggered Registers

2
General Table Lookup Synthesis
A
B
MUX Logic
Fn(A,B)
Generalizing Remember that, in theory, we can
build any 1-output combinational logic block
with multiplexers. For an N-input function we
need a _____ input multiplexer. BIG
Multiplexers? How about 10-input function?
20-input?
2N
3
A Muxs Guts
Decoder
Selector
Multiplexerscan be partitionedinto two
sections. A DECODER thatidentifies thedesired
input,and a SELECTOR that enables that
inputonto the output.
A
0
B
A decodergeneratesall possibleproductterms
fora set ofinputs
A
1
Y
B
A
2
B
A
3
B
Hmmm, by sharing the decoder part of the logic
MUXs could be adapted to make lookup tables with
any number of outputs
4
A New Combinational Device
D1
DECODER k SELECT inputs, N 2k DATA
OUTPUTs. Selected Dj HIGH all others LOW.
D2
Have Imentionedthat HIGHis a synonym for 1
andLOW meansthe sameas 0
DN
k
NOW, we are well on our way to building a general
purpose table-lookup device. We can build a
2-dimensional ARRAY of decoders and selectors as
follows ...
5
Shared Decoding Logic
Decoder
A B Cin
0
2
3
4
5
6
7
1
S
Cout
Configurable Selector
We can build a general purpose table-lookup
device calleda Read-Only Memory (ROM), from
which we can implementany truth table and, thus,
any combinational device
Made from PREWIRED connections , and
CONFIGURABLEconnections that can be either
connected or not connected
6
Logic According to ROMs
ROMs ignore the structure of combinational
functions ... Size, layout, and design are
independent of function Any Truth table can be
programmed by minor reconfiguration -
Metal layer (masked ROMs) - Fuses
(Field-programmable PROMs) - Charge on floating
gates (EPROMs) ... etc. Model LOOK UP value of
function in truth table... Inputs ADDRESS of a
T.T. entry ROM SIZE TT entries... ... for an
N-input boolean function, size __________
2N x outputs
7
Analog Storage Using Capacitors
Weve chosen to encode information using voltages
and we know from physics that we can store a
voltage as charge on a capacitor
N-channel FET serves as an access switch
Pros w compact! Cons w it leaks! ? refresh w
complex interface w reading a bit, destroys it
(you have to rewrite the value after each
read) w its NOT a digital circuit
word line
bit line
To write Drive bit line, turn on access fet,
force storage cap to new voltageTo read
precharge bit line, turn on access fet, detect
(small) change in bit line voltage
This storage circuit is the basis for commodity
DRAMs
8
A Digital Storage Element
Its also easy to build a settable DIGITAL
storage element (called a latch) using a MUX and
FEEDBACK
A
0
Y
Q stable
B
1
Q follows D
S
9
Looking Under the Covers
  • Lets take a quick look at the equivalent circuit
    for our MUX when the gate is LOW (the feedback
    path is active)

Advantages 1) Maintains remembered state
for as long as power is applied.
2) State is DIGITAL Disadvantage 1)
Requires more transistors
This storage circuit is the basis for commodity
SRAMs
10
Why Does Feedback Storage?
BIG IDEA use positive feedback to maintain
storage indefinitely. Our logic gates are built
to restore marginal signal levels, so noise
shouldnt be a problem!
Result a bistable storage element
VOUT
VIN
11
Static D Latch
Positive latch
Negative latch
What is thedifference?
Q follows D
D
G
Q
Q stable
static means latch will hold data (i.e., value
of Q) while G is inactive, however long that may
be.
12
A DYNAMIC Discipline
Design of sequential circuits MUST guarantee that
inputs to sequential devices are valid and stable
during periods when they may influence state
changes. This is assured with additional timing
specifications.
G
D
13
Flakey Control Systems
Heres a strategy for saving 2 bucks the next
time you find yourself at a toll booth!
14
Flakey Control Systems
Heres a strategy for saving 2 bucks the next
time you find yourself at a toll booth!
15
Flakey Control Systems
Heres a strategy for saving 2 bucks the next
time you find yourself at a toll booth!
WARNING Professional Drivers Used! DONT try
this At home!
16
Escapement Strategy
The Solution Add two gates and only open
one at a time.
17
Escapement Strategy
The Solution Add two gates and only open
one at a time.
18
Escapement Strategy
The Solution Add two gates and only open
one at a time.
19
Escapement Strategy
The Solution Add two gates and only open
one at a time. (Psst Dont tell the toll
folks)
20
Escapement Strategy
The Solution Add two gates and only open
one at a time. (Psst Dont tell the toll
folks)
21
Escapement Strategy
The Solution Add two gates and only open
one at a time. (Psst Dont tell the toll
folks)
22
Escapement Strategy
The Solution Add two gates and only open
one at a time. (Psst Dont tell the toll
folks)
23
Escapement Strategy
The Solution Add two gates and only open
one at a time.
24
Escapement Strategy
The Solution Add two gates and only open
one at a time.
25
Escapement Strategy
The Solution Add two gates and only open
one at a time. (Psst Dont tell the toll
folks)
26
Escapement Strategy
The Solution Add two gates and only open
one at a time. (Psst Dont tell the toll
folks)
27
Escapement Strategy
The Solution Add two gates and only open
one at a time. (Psst Dont tell the toll
folks)
28
Escapement Strategy
The Solution Add two gates and only open
one at a time. (Psst Dont tell the toll
folks)
29
Escapement Strategy
The Solution Add two gates and only open
one at a time.
30
Escapement Strategy
The Solution Add two gates and only open
one at a time.
31
Escapement Strategy
The Solution Add two gates and only open
one at a time. (Psst Dont tell the toll
folks)
KEY At no time is there an open path through
both gates
32
Edge-triggered Flip Floplogical escapement
D
Q
D
Q
master
slave
CLK
CLK
  • Observations
  • only one latch transparent at any time
  • master closed when slave is open (CLK is high)
  • slave closed when master is open (CLK is low)
  • ? no combinational path through flip flop
  • w Q only changes shortly after 0 ?1 transition of
    CLK, so flip flop appears to be triggered by
    rising edge of CLK

Transitions mark instants, not intervals
33
Flip Flop Waveforms
D
Q
D
Q
master
slave
CLK
CLK
D
CLK
Q
master closed slave open
slave closed master open
34
Two Issues
D
Q
master
slave
CLK
  • Must allow time for the inputs value to
    propagate to the Masters output while CLK is
    LOW.
  • This is called SET-UP time
  • Must keep the input stable, just after CLK
    transitions to HIGH. This is insurance in case
    the SLAVEs gate opens just before the MASTERs
    gate closes.
  • This is called HOLD-TIME
  • Can be zero (or even negative!)
  • Assuring set-up and hold times is what limits
    a computers performance

35
Flip-Flop Timing Specs
D
Q
Q
CLK
CLK
D
tPD maximum propagation delay, CLK ?Q
36
Summary
  • Regular Arrays can be used to implement
    arbitrary logic functions
  • ROMs decode every input combination (fixed-AND
    array) and compute the output for it
    (customized-OR array)
  • PLAs decode an minimal set of input combinations
    (both AND and OR arrays customized)
  • Memories
  • ROMs are HARDWIRED memories
  • RAMs include storage elements at each WORD-line
    and BIT-line intersection
  • dynamic memory compact, only reliable
    short-term
  • static memory controlled use of positive
    feedback
  • Level-sensitive D-latches for static storage
  • Dynamic discipline (setup and hold times)
Write a Comment
User Comments (0)
About PowerShow.com