Design and implementation of digital filters