I'm attempting to create a digital circuit that has three inputs representing binary numbers. For example 001 would equal 1 in decimal , 011 would equal 3 and 111 would equal 7. So overall the highest number you can make is 7.
I have been designing a circuit that compares two of these sets of 3 numbers and I have realised that what I'm actually doing is comparing sets of 3 inputs, rather than looking at the numerical values 0-7. What this meant for me in practice was that my circuit output whichever set contained more 1's so that 101 would equal 110 because they both have 2 1's when in fact they are two different numbers when we convert it to binary.
I was wondering if anyone could tell me how to go about modelling the binary logic within my system so that I can be comparing numbers from 0-7 rather than sets of 1's.