Prev Problem
Next Problem

4. NOT Gate

Back To All Submissions
Previous Submission
Next Submission

Solving Approach

Using the tilde (~), we can set the NOT operator.

 

 

Code

/*Write your code here*/
module top_module (
    input a,
    output y
);
    wire w;
    assign y = ~a;
endmodule

 

Was this helpful?
Upvote
Downvote