Combinational Circuits
- 2x1 MUX

2x1 MUX

Syntax

2x1_MUX {[Subcircuit-label-n] [label-n]}
# where, the Subcircuit labels are D1, D0, S and Y
# All Subcircuit labels are mandatory
# Order is arbitrary

Example

2x1_MUX D1 A D0 B S C Y D 
# (D1 and D0 - Data inputs), S-Select input, 
# Y-Output, Order of the Subciruit labels doesn't matter

This block selects one from the two Data inputs based on the logic level at the Select line/Select input and passes to the output, while the other Data input which isn't selected, doesn't influence the output.