Activity 7 : Build DMUX by using (NAND, OR, AND, NOT, MUX)
/**
* Dmultiplexor.
* {a,b} = {in,0} if sel==0
* {0,in} if sel==1
*/
CHIP DMux {
IN in, sel;
OUT a, b;
PARTS:
// Put your code here.
Not(in=sel, out=notsel);
And(a=in, b=notsel, out=a);
And(a=in, b=sel, out=b);
}
/////////////////////////////////
This should be a piece of cake !!
Downloads :
activity 7
/**
* Dmultiplexor.
* {a,b} = {in,0} if sel==0
* {0,in} if sel==1
*/
CHIP DMux {
IN in, sel;
OUT a, b;
PARTS:
// Put your code here.
Not(in=sel, out=notsel);
And(a=in, b=notsel, out=a);
And(a=in, b=sel, out=b);
}
/////////////////////////////////
This should be a piece of cake !!
Downloads :
activity 7
No comments:
Post a Comment