How to make a waveform generator with frequency of 20hz-20Mhz

I think you'll have better results with a simple NE555 timer

Read the data sheet, use a switch to select a resistor value to have a couple of ranges to select from.