間隙を縫うように検討着手。要件は以下らしい。
/**
* Demultiplexor:
* {a, b} = {in, 0} if sel == 0
* {0, in} if sel == 1
*/
ええと、a には (and in (not sel))、b には (and in sel) で良いのかな。なんとなくテストなソレと机上演算の結果は合致。
以下で試験にパスしてます。
Not(in=sel, out=notsel);
And(a=in, b=notsel, out=a);
And(a=in, b=sel, out=b);
こちらも commit つくって branch を push の方向。