Why a CPLD input pin behaves almost like an output pin?
Found out that pin 44 was faulty, probably burnt by earlier experiments. Remapping to another pin like pin 52 solved the issue and the signal can now be read.