Simple circuit A

module top_module (input x, input y, output z);
    assign z = (x^y)& x;
endmodule