Could anyone gimme code for SR flip flop? i.e., its a combinational circuit. How do i write a structural architecture for an SR flip flop which is composed of 2 NOR gates. My major problem in writing code for this is, the state transition table. i.e., when the present state and the inputs are "00", the output is "11", then with "11 as the present state and "00" as input, the output changes to "00", so the output keeps oscillating between "00" and "11".