Professional Documents
Culture Documents
Latches: Dr. Ihab Talkhan 1
Latches: Dr. Ihab Talkhan 1
Latches: Dr. Ihab Talkhan 1
1
Dr. Ihab Talkhan
SR-Latch (NOR gates)
Action Q
Q R S
reset
Set 0 1 0 1
state 0 1 0 0
Reset 1 0 1 0
State 1 0 0 0
Undefined 0 0 1 1
set
Action Q
Q R S
set
Set 0 1 1 0
state 0 1 1 1
Reset 1 0 0 1
State 1 0 1 1
Undefined 1 1 0 0
reset
set
Next state of Q R S C
No change X X 0
No change 0 0 1
Q=0 : reset state 1 0 1
Q=1 : set state 0 1 1
undetermined 1 1 1
reset
Next state of Q D C
No change X 0
5
Dr. Ihab Talkhan
Master-Slave Flip-Flop
• It consists of two Latches and an inverter.
• When clock pulse input C=“1”, then the output of the inverter is “0”. Thus the
Master is enabled and its output Y is equal to the external input D and the Slave is
disabled.
• When clock pulse input C=“0”, then the output of the inverter is “1”. Thus the
Slave is enabled and its output Q is equal to the Master output Y and the Master
is disabled.
• Any changes in the external D input changes the master output Y but cannot
affect the Slave output Q.
6
Dr. Ihab Talkhan
MASTER SLAVE
External D D
7
Dr. Ihab Talkhan