I wonder if it is possible to raise the CPLD's ground reference to shift up its logic levels...
Been there, done that. Not a real good idea. You get into all sorts of nasty diode clamp issues. Outputs swing sort of right until you hit a tri-state port. Inputs clamp on both sides, with occasional "interesting" outcomes. (as in you source enough current into the part to take the top or bottom side rail to +5 or to ground).
I do not understand the point, as the XC95108 data sheet says that
you can provide 5V to the internal logic and input buffers (VCCINT)
and 5V to the output drivers (VCCIO)
exactly, what have you done, guys ? and which is the nasty diode clamp issue ?
Hi
If you take a part that does not have 5V outputs (or inputs) and:
Raise the ground pin on the part up to 0.9V
Feed the supply with 4.2V
You have a part that swings roughly equally to both sides of 2.5V. Most 5V CMOS data sheets suggest that the logic threshold is at 2.5V plus minus some tolerance. (it isn't, but that's not part of this story). The 3.3V part has a 3.3V supply. If you run up to 3.6V, it's pretty much the same with slightly different numbers.
Normally the low side is done with some sort of series drop element (like a pair of low barrier voltage diodes). The high side is done with an adjustable series regulator. It all looks fine on paper.
Now, pull all the inputs low. The clamp diodes all fire and the low side voltage goes below your 0.9V supply. Worse yet, pull an output low. Then the 0.9V goes right to ground if it's pulled hard enough. (pull down resistor or something else).
Next pull all the inputs high. Again the clamp diodes all fire and your part is running off of the +5 through the clamp diodes rather than your series 4.3V regulator. Same issue if an output gets pulled high.
If you started with 3.3V you may or may not have fried the chip yet.
Now take some of the lines high and some of them low. You have both effects at the same time. Likely your supply is over the max on the chip at this point.
All of this is just looking at the output transistors and input clamps. It does not include neat stuff like parasitic stuff that gets triggered when you are above supply or below ground. Since you can get in trouble just with the outputs, having a part with no clamp to the high side rail does not keep you out of trouble. In the context of "drop it into anything" the split supply thing is not a good idea.
Bob