On-chip spectrum analyzer for analog built-in self test
a dc - 4 - ghz true logarithmic amplifier : theory and implementation .