The carry chains in current Xilinx FPGAs are insufficient for comparison logic. I propose some changes for future chip designs:
First, if this can be done on a Stratix 2 carry chain, please state how.
We are going to do a LT or GT comparison. The plan for LT:
chop the thing into 2 bit chunks for the most significant chunk: if (a < b) switch the chain high if (a > b) switch the chain low if (a == b) passthrough repeat for next most significant chunk tie the bottom of the chain low
So you see the problem? I can't force the chain high or low at run time and still allow for passthrough. I can only do one or the other.