Direct Implementation of Discrete and Residue-Based Functions Via Optimal Encoding: A Programmable Array Logic Approach | IEEE Journals & Magazine | IEEE Xplore