A simple algorithm for specs definition in wireless receivers