A novel high-speed sense-amplifier-based flip-flop