Prev Problem
Next Problem

4. NOT Gate

Back To All Submissions
Previous Submission
Next Submission

Solving Approach

  • The goal is to complete the Inverted Assignment to the output .
  • Here A is input and  Y is the output .
  • In Verilog ' ~ '  is used to invert the given input.
  • so we have assigned the ~ to the given input

 

 

Code

module top_module(input a ,output y);
    assign y=~a;
endmodule

 

Was this helpful?
Upvote
Downvote