 An improvement on the PAL was the generic array logic device, or GAL, invented by Lattice Semiconductor in 1985.This device has the same logical properties as the PAL but can be erased and reprogrammed.The GAL is very useful in the prototyping stage of a design, when any bugs in the logic can be corrected by reprogramming.