Prev Problem
Next Problem

36. 4-Input NAND Gate Primitive

Back To All Submissions
Previous Submission
Next Submission

Solving Approach

How do you plan to solve it?

 

Code

module nand4_prim (
    input  a,
    input  b,
    input  c,
    input  d,
    output y
);
wire e, f;
    assign e = ~(a & b);
    assign f = ~(c & d);
    assign y = e | f;
endmodule

 

Was this helpful?
Upvote
Downvote