Using the tilde (~), we can set the NOT operator.
/*Write your code here*/ module top_module ( input a, output y ); wire w; assign y = ~a; endmodule