Static and dynamic CMOS design