Storing dataS-R Latch (set reset)Draw S-R latch What happens if both inputs are 1What happens if only one input is 1 What happens if both inputs are 0IF no prior state - value is inderterminate ELSE D latch (data)Draw D latchProblem is the circuit has no memory any more,due to when D = 0, the not gate will negate it to a 1Draw D latch with enableProblem is when enable is 1,the data can still be changed "leak",to solve this you could instantaneously turn off enable but that is hardD Flip-FlopDraw a: master slave edge-triggered D Flip-FlopNote: it is basically two D latches concatenated togetherData is only transferred to the slave when the master makes a enabled/disabled transitionDraw a: master slave edge-triggered D Flip-FlopInput only stored if clock is 1 and enable is 1