2. Draw the PAL and PLA diagrams to implement the logic functions represented in the following truth table where the inputs are A, B, C, D, and the three outputs are X, Y, Z.
Inputs Outputs
A B C D X Y Z
0 0 0 0 1 0 1
0 0 0 1 0 1 1
0 0 1 0 1 1 0
0 0 1 1 0 0 1
0 1 0 0 1 1 1
0 1 0 1 0 1 0
0 1 1 0 1 0 1
0 1 1 1 0 0 0
1 0 0 0 1 0 0
1 0 0 1 0 0 1
1 0 1 0 1 1 1
1 0 1 1 0 1 0
1 1 0 0 1 0 1
1 1 0 1 0 0 0
1 1 1 0 1 1 0
1 1 1 1 0 1 1