using table look-up using programmable logic arrays