Design, high-level synthesis, and discrete optimization of digital filters based on particle swarm optimization