Beruflich Dokumente
Kultur Dokumente
1. Introduction
As informaes armazenadas em circuitos sobre a histria prvia das entradas
so chamadas armazenamento ou elementos de memria. Um elemento primitivo
de armazenamento pode ser construdo de um nmero pequeno de portas
conectando as sadas de volta como tambm as entradas. Esses circuitos so
clulas binrias capazes de armazenar um nico bit de informao. Eles tem duas
sadas, um para valores normais e outra para valores complementares de bit
armazenados nele. Elementos da memria primitive realmente se inserem em duas
grandes classes: latches e flip-flop.
Se uma latch tem somente entradas de dados, ela chamdad de unlocked
latch (ou somente latch). As latches sensveis de nvel tem uma entrada de
habilitao adicional, as vezes chamada de clock. Level-sensitive latches
continuously sample their inputs when they are enabled. Any change in the level of
the input is propagated through to the output. When the enable signal is
unasserted, the last value of the inputs is determines the state held by the latch.
Flip-flops differ from latches in that their output change only with repeat to the
clock, whereas latches change output when their inputs change. Flip-flops are
characterized on the basis of the clock transition that cause the output change :
there are positive edge-triggered, negative edge-triggered, and master/slave flipflops.
A positive edge-triggered flip-flop samples its inputs on the low-to-high clock
transition. A negative edge-triggered flip-flop works in a similar fashion, with the
input sampled on the high-to-low clock transition.
A master-slave flip-flop is constructed from two stage separate flip-flops. The
first stage ( first flip-flop) samples the inputs on the rising edge of a clock signal.
The second stage transfer them to the output on the falling edge of the clock
signal.
These circuits have two additional control inputs. These are Preset and Clear,
which force the output of the flip-flop or latch to the logic-1 or logic-0 state,
respectively, independent of the flip-flop or latch inputs [2].
S-R Latch:
S=0 and R=0: Assume the latch is set ( Q 0 and Q 1 ), then the
output of the top NOR gate remains at Q 1 and the bottom NOR gate
stays at Q 0 .
Similary, when the latch is in a reset state ( Q 1 and Q 0 ), it will
remain there with this input combination.
Therefore, with inputs S=0 and R=0, the latch remains in its state.
S=1 and R=1: This input combination must be avoided
The logic diagram and graphic symbol are shown in Figure.4.1.
The following truth table can be summarized the operation of the S-R
latch.
R
Q '
S
(a) Logic Diagram
S
0
0
1
1
Q'
(b)Graphic Symbol
R
0
1
0
1
Q
Q
0
1
-
Q'
Q'
1
0
-
Comment
Hold State
Reset
Set
Forbidden
Q '
R
1
1
0
Q
Q
1
0
Q'
(b)Graphic Symbol
Q'
Q'
0
1
14
Comment
Hold State
Set
Reset
Forbidden
Q '
Q'
R
0
1
0
1
x
(b)Graphic Symbol
C
1
1
1
1
0
Q
Q
0
1
Q
Q'
Q'
1
0
Q'
Comment
Hold State
Reset
Set
Forbidden
Hold State
D
Q
Q '
Q'
C
15
(b)Graphic Symbol
C
1
1
0
D
0
1
x
Q
0
1
Q
Q'
1
0
Q'
C
Q '
J
(a) Logic Diagram
C
1
1
1
1
0
J
0
0
1
1
x
Q'
(b)Graphic Symbol
K
0
1
0
1
x
Q
Q
0
1
Q'
Q
Q'
Q'
1
0'
Q
Q'
16
Comment
Hold
Reset
Set
Toggle
Hold
Positive-Edge Triggered:
CLK
Q'
Q'
Q'
CLK
Q'
Negative-Edge Triggered:
CLK
Q'
Q'
17
CLK
Q'
Q'
J-K Flip-Flop:
Positive-Edge Triggered:
CLK
Q'
Q'
CLK
0
1
Q'
x
x
x
x
Q
Q
Q'
Q'
Q'
Q'
Q'
CLK
1
18
Q'
0
1
Q'
x
x
x
x
Q
Q
Q'
Q'
0
1
Q'
Q'
Q'
x
x
Q
Q
Q'
Q'
T
CLK
J
CLK
K
Q'
19