... but the GAL has been discontinued.
Still available from Atmel (Microchip) as ATF16V8. The TL866II can program them
Unfortunately, the XORs are on the inputs to the FFs in Registered mode, so probably wouldn't work as a 1-chip solution for xue's application (if I understand his latest description properly)...
Oh no, on further review it appears that the XORs cannot be driven from an input, but are just used to set an output to active high or low.