Programmable array logic (PAL) architecture has a programmable AND array at the input and a fixed OR array at the…