How do you plan to solve it?
we can another method as gate level by using keyword "not" itself.
/*Write your code here*/ module top_module(input a, output y); assign y=~a; endmodule