From: Matthijs Kooijman Date: Mon, 5 Oct 2009 11:32:27 +0000 (+0200) Subject: Add a "sel" point for the selector to the multiplexers. X-Git-Tag: final-thesis~224 X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fmaster-project%2Freport.git;a=commitdiff_plain;h=600d280f5ab94fa48bc84fc13b7d485b868918d3 Add a "sel" point for the selector to the multiplexers. --- diff --git a/Utils/Metapost.tex b/Utils/Metapost.tex index 590dfc5..fd21385 100644 --- a/Utils/Metapost.tex +++ b/Utils/Metapost.tex @@ -101,7 +101,7 @@ vardef newMux@# text options= assignObj(@#,"Mux"); StandardInterface; % Add ports - ObjPoint inpa, inpb, out; + ObjPoint inpa, inpb, out, sel; ObjCode MinimumStandardEquations, % Make it a parallel trapezium @@ -115,7 +115,8 @@ vardef newMux@# text options= % And space the input ports evenly "@#inpa = midpoint(@#nw, @#w)", "@#inpb = midpoint(@#w, @#sw)", - "@#out = @#e"; + "@#out = @#e", + "@#sel = @#n"; StandardTies; enddef;