Physics — Logic: 2-to-1 multiplexer
Select line steers one of two inputs to the output.
Make it your own.
title "2-to-1 multiplexer"
type gates
input A at (0,0)
input B at (0,3)
input Sel at (0,5)
gate NOT G0 at (2,5)
gate AND G1 at (4,0.5)
gate AND G2 at (4,3)
gate OR G3 at (7,1.7)
output Y at (10,1.7)
wire Sel G0
wire A G1
wire G0 G1
wire B G2
wire Sel G2
wire G1 G3
wire G2 G3
wire G3 Y