"xpart @#out = xpart @#e",
"xpart @#d = xpart @#ck = xpart @#w",
fi
- "ypart @#d = ypart @#out = ypart (@#sw * .25 + @#nw * .75)",
+ "ypart @#out = ypart midpoint(@#n, @#s)",
+ "ypart @#d = ypart (@#sw * .25 + @#nw * .75)",
"ypart @#ck = ypart (@#sw * .75 + @#nw * .25)";
StandardTies;
assignObj(@#,"Mux");
StandardInterface;
% Add ports
- ObjPoint inpa, inpb, out;
+ ObjPoint inpa, inpb, out, sel;
ObjCode MinimumStandardEquations,
% Make it a parallel trapezium
% And space the input ports evenly
"@#inpa = midpoint(@#nw, @#w)",
"@#inpb = midpoint(@#w, @#sw)",
- "@#out = @#e";
+ "@#out = @#e",
+ "@#sel = @#n";
StandardTies;
enddef;