32/16 Bit XOR gate

digital-logicintegrated-circuit

Has someone of you seen a XOR gate with 16 or 32 inputs? (Integrated in a single chip, of course)

I would need it to compare two 16bits variables to each other.

Or are there better options for comparing such a high input count?

Clock would be 40MHz so it should be really fast (5-10ns delay).

Logic level: preffered 5V or 3.3V

Best Answer

You can cascade 2 or 4 74HC85 chips which will give you an '=' output as well as magnitude comparison.

Edit: Total delay will be much too long for your 5-10ns requirement, if you can't work with the propagation delay, I think some kind of programmable logic will be about your only choice.

You could use a small CPLD such as the XC2C32.