Cognitive Radio Design: An SDR Approach