Prev Problem
Next Problem

73. SR Latch

Back To All Submissions
Previous Submission
Next Submission

Solving Approach

How do you plan to solve it?

 

Code

module sr_latch_nor (
    input  S,
    input  R,
    output Q,
    output Qn
);
    // Write your code here
    wire nR, S_eff; 

    not u_invR(nR, R); 
    and u_setg(S_eff, S, nR); 

    nor uQ(Q,R, Qn);
    nor uQn(Qn, S_eff, Q);
endmodule
Was this helpful?
Upvote
Downvote