A CAD tool for noise tolerance analysis of CMOS digital circuits