Prev Problem
Next Problem

4. NOT Gate

Back To All Submissions
Previous Submission
Next Submission

Solving Approach

How do you plan to solve it?

 

 

Code

// Module Name: top_module
module top_module(
    input  a,   // 1-bit input
    output y    // 1-bit output
);

    // The output is the logical negation of the input
    assign y = ~a;

endmodule

 

Was this helpful?
Upvote
Downvote