6-bit CMOS Digital Attenuators With Low Phase Variations for $X$-Band Phased-Array Systems