Confused why MUX implementation is not working:

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Confused why MUX implementation is not working:

davidtaylor23
I am not sure if its that the logic is wrong or that I am making some syntax errors, but the file does not seem to load onto the hardware simulator and I am unsure what is wrong.
Here is the implementation:
And(a=a, b=b, out=AandB);
And(sel=sel, b=b, out=BandSel);
Not(in=b, out=NotB);
Not(in=sel, out=NotSel);
And(a=NotSel, b=NotB, out=NotSelNotB);
And(a=a, b=NotSelNotB, out=out1);
Or(a=BandSel, b=AandB, out=out2);
Or(a=out2, b=out1, out=out);

Any help would be greatly appreciated
Reply | Threaded
Open this post in threaded view
|

Re: Confused why MUX implementation is not working:

WBahn
Administrator
In your second line you are connecting a signal to the 'sel' pin of an And gate.

Does an And gate have a 'sel' pin?