module OA2222 (Z,A1,A2,B1,B2,C1,C2,D1,D2);

  output  Z;
  input   A1;
  input   A2;
  input   B1;
  input   B2;
  input   C1;
  input   C2;
  input   D1;
  input   D2;

  wire w0,w1,w2,w3;
  wire Z,A1,A2,B1,B2,C1,C2,D1,D2 ;

  or   o0 (w0,A1,A2);
  or   o1 (w1,B1,B2);
  or   o2 (w2,C1,C2);
  or   o3 (w3,D1,D2);
  and  a4 (Z,w0,w1,w2,w3);

endmodule
