The console throws comparison failure at line 10. That's where input is set to 1 and sel= 000
I bolded the "malfunction" that I'm seeing in the data flow with both "funny" AND gates. In the case when Sel=000 and in=1, it should be:
a= in (1 in this case)
b= notsel2 (1 in this case, in the previous line I inverted sel)
out= should be 1, but it's ALWAYS 0.
In both And Gates, not matter the values of a and b, output is always zero. I have no idea why this happens and this never occurred to me before with any chip. I executed every step of the comparison and both AND gates never outputs 1 when it should (a && b= 1)
This is messing with my chip and affecting the final results because it always feds 0 to inputs of both DMux4Way.
I am new at this, but I don't mind trying... -smile-
First: I noticed that the two DMux4Way you are using don't have any outputs. That will be a problem, I think.
Second: you are using AND to split the input into 2 signals, one for each DMux4Way, based on sel. But splitting the input into 2 separate signals, that's something we have a chip for, and you've already made it. Why not use that?
If you do, you can use sel as the first selector, each of sel and sel as selector for the DMux4Way, and you're done. Only three chips needed.
If the first two ANDs themselves throw zeroes out, whatever they get in, I can't explain it, but perhaps someone else will.