blob: e04b51638e9419e2ab153462fc2e8ad016d25e0e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
component mux2 "Select from one of two input values";
pin in bit sel;
pin out float out "Follows the value of in0 if sel is FALSE, or in1 if sel is TRUE";
pin in float in1;
pin in float in0;
function _;
license "GPL";
;;
FUNCTION(_) {
if(sel) out = in1;
else out = in0;
}
|