1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
module TOP ( data0, data1, result ); input [2:0] data0; input [1:0] data1; output [2:0] result; wire n6, n7, n8, n9, n10;
nd02d0 U9 ( .A1(data1[0]), .A2(data0[0]), .ZN(n10) ); inv0d0 U10 ( .I(n10), .ZN(n9) ); nr02d0 U11 ( .A1(data0[1]), .A2(data1[1]), .ZN(n7) ); aor221d1 U12 ( .B1(n9), .B2(data1[1]), .C1(n10), .C2(data0[1]), .A(n7), .Z( n6) ); xn02d1 U13 ( .A1(data0[2]), .A2(n6), .ZN(result[2]) ); ora21d1 U14 ( .B1(data1[0]), .B2(data0[0]), .A(n10), .Z(result[0]) ); aor21d1 U15 ( .B1(data1[1]), .B2(data0[1]), .A(n7), .Z(n8) ); mx02d0 U16 ( .I0(n10), .I1(n9), .S(n8), .Z(result[1]) ); endmodule
|