Physics — 2-to-1 Multiplexer
Select line S routes A or B to the output.
Make it your own.
title "2-to-1 multiplexer"
type gates
input A at (0,0)
input B at (0,4)
input S at (0,7)
gate NOT NS at (3,6)
gate AND G1 at (5,1)
gate AND G2 at (5,4)
gate OR G3 at (8,2.5)
output Y at (11,2.5)
wire S NS
wire A G1
wire NS G1
wire B G2
wire S G2
wire G1 G3
wire G2 G3
wire G3 Y