I already know how to make a device that can detect if an incoming signal is a specific binary number, but how do I make it test for >Greater than <Less than inequalities. Any tutorials I should be watching?
By flag, do you mean booleans that keep track of each bit and whether it is greater than the other one.
Lets say we are comparing which one is greater out of these 2 binary numbers.
Are you saying I need to break down each number bit by bit and use a flag for each bit to know which one is greater, then look at the results to determine if number A (top) is greater or less than number B (bottom)?
If that is the case, how exactly should I design this thing? And lets do something simple like comparing two four bit numbers as an explanation.
The Meaning of Life, the Universe, and Everything.
Sorry, the link I gave you doesn't give a good explanation of expanding to multiple bits at all.
Chaining them makes it a bit more complex, mostly for the inequality tests.
So lets say our two numbers A and B both have n-bits. Individual digits are numbered An, An-1, ... A1.
The test for equality is simply an AND gate for all the outputs from An=Bn down to A1=B1. (An=Bn)(An-1=Bn-1)....(A1=B1)
Inequality gets more complex, you look at the most significant bit first, if An>Bn then A>B, but if those bits are the same (An=Bn) then you have to look at the next bit (moving right). So the test for the second bit would check that (An=Bn) AND (An-1>Bn-1). If that is false, you have to move on to the next bit until you get to the least significant bit. Each of these individual bit tests are one big OR.
Its not that complicated. I don't remember exactly how I made mine but I think Grizedale has a design. I took one input off the final result and one off from the carry-out. The only way it would work is if my adders were in two's complement(subtraction) mode. If I get a chance back on my world I will make a video. The problem is that I wont be able to use my Xbox at the moment as I have places to go.
I honestly don't know. I looked around for one but cant find one. I will eventually put one up since I need to anyway. Try to learn things from an engineering aspect. Do that and bring that knowledge into Minecraft and you can do some really cool things.