module AO22 (Z,A1,A2,B1,B2);

  output  Z;
  input   A1;
  input   A2;
  input   B1;
  input   B2;

  wire w0,w1;
  wire Z,A1,A2,B1,B2 ;

  and  a0 (w0,A1,A2);
  and  a1 (w1,B1,B2);
  or   o2 (Z,w0,w1);

endmodule
