Generic Topology for FIR Filter based Up- and Down-Sampling