Académique Documents
Professionnel Documents
Culture Documents
Flip-Flops
Slide 1
S 1
R0
S 0 0 1 1
R 0 1 0 1
P 1 1 0 ?
Q 1 0 1 ?
Slide 2
Non determinism
For input 1,1 we can only compute the output if we know what is was at the previous time interval
S
S 1 1 1 1
R 1 1 1 1
Pp 0 0 1 1
Qp 0 1 0 1
P 1 0 1 0
Q 1 1 0 0
Slide 3
Slide 4
Slide 6
Sequential Circuits
Notice that we can only describe the behaviour of the R-S if we know the time sequence of the inputs. For this reason it is referred to as a sequential circuit. In all practical cases we shall avoid using S=R=0, and thus it will always be the case that P=Q The input S=R=1 ensures that the output cannot change
DOC112: Computer Hardware Lecture 07 Slide 7
Slide 8
Q'
1 D
Q
D
Q'
0 D
Slide 10
Q Q'
Slide 11
Problem Break
For the given values of D and L calculate the values of Q and Q
Latch
111000111
D
101010100
Q Q'
Slide 12
Problem Break
For the given values of D and L calculate the values of Q and Q
Latch
111000111
D
101010100
Q
101111100
Q'
010000011
Slide 13
Slide 14
Slide 15
Edge triggering
In order to avoid the undesirable "spike", we adapt the circuit so that the value of D is transferred to Q only when the control input goes from 1 to 0. This is called an edge triggered circuit
Slide 16
Slide 17
L D
10110110
L Q D
00010111 00000011
Q Q'
Slide 18
Q1 C D
Q2
Q Q' C
Slide 19
Clocks
Notice that in the master slave design of the D type flip flop we have started to refer to the control input as a clock. Computers have clocks to drive their sequences of actions. Essentially they control the storage of bits on D-Type flip flops. They produce simply square waves.
Slide 20
Slide 22
Q 0 C 0
1 1 1 0
Slide 23
11, 10 J K C Q 00 01 0 1 00 10
11, 01
Slide 24
Q' CLOCK
Slide 25
1
Q
Q' CLOCK
Slide 26
1
Q
Q' CLOCK
Slide 27
0
Q
Q' CLOCK
Slide 28
1
Q
Q' CLOCK
Slide 29
1
Q
Q' CLOCK
Slide 30
Q Q'
Slide 31