Switching circuits and logical design