How can we establish an equation to calculate next states based on negative edge triggered clk,rest and set
I am experimenting with the equation::Qn+1 = !CK&(!SB|!RB)&Qn&!D
But is not working in a generalised manner
Your equation won't work properly without an "edge detect"
function. It is not a combinational circuit, it's a sequential
circuit. Although you can make a flip-flop out of logic gates,
such implementations still depend on phase lag for the
master/slave handoff to work properly. The equation has
nothing for that.