Assigning y = a can solve this problem.
module top_module(input a, output y); assign y = a; endmodule