--- Quote Start ---
To check the voltage levels, I've set the GPIO_0 port to output a value of 0xffff0000. Then I have wires going into the IDE cable slot corresponding to the ground pin and a pin outputting a 0/1 and I measure the voltage difference between the two pins using a multimeter.
I keep getting a value of 1V for both 0 and 1 for some reason.
Could you possibly point out where im going wrong?
--- Quote End ---
Remove the IDE cable and probe at the header on the DE2 board. Ideally with a scope, but if all you have is a voltmeter, turn the board over and probe on the bottom, where the 100-mil headers are soldered into the board.
Look at the schematic. There should be a ground and maybe a couple of supply voltages, eg. 3.3V and perhaps a raw 5V voltage. Measure both of those relative to ground. That will confirm you have your voltmeter setup ok.
Now create a design where all you have is something like
gpio <= X"AAAAAAAA";
i.e, alternating high and low outputs. Do the same thing for the LEDs on the board, that way when the LEDs light up like you expect, you'll be a little more confident that the pinout is ok.
Load that into the DE2 (make sure unused pins are set to tri-state) and then measure.
If you're still not getting the right voltage, double check your pin assignments.
Cheers,
Dave