Saturday, December 17, 2011

Truth tables and input variables?

What would be the truth table of a function with 4 input variables, A,B,C,D which is 1 if the binary value of the binary number represented by the bits AB = the value of the binary number represented by the bits CD.





For example: if AB = 10 and CD = 01 then the output is 0 since 2 is greater than 1.|||A B C D R


0 0 0 0 1


0 0 0 1 0


0 0 1 0 0


0 0 1 1 0


0 1 0 0 0


0 1 0 1 1


0 1 1 0 0


0 1 1 1 0


1 0 0 0 0


1 0 0 1 0


1 0 1 0 1


1 0 1 1 0


1 1 0 0 0


1 1 0 1 0


1 1 1 1 1





A+B = C+D

No comments:

Post a Comment