Abstract gate stage and create digital and analog gate stages.