I've seen that a few people on the forum have DE0-Nano FPGA dev boards, though not a lot of activity involving them. I have one myself but it's been sitting on the shelf since I bought it. I recall a few times where I've thought "Hmm, must look at that thing one of theses days", but beyond the thought, it remained snug in it's box on the shelf, until now..........
Well, I'm really not interested in blinking LEDs or whatever the usual familiarization process is, I want VGA, much more interesting to toy about with. Since I had to add VGA, I thought I'd document it for those looking at doing the same thing, and make it my first "DE0-Nano - Useful Bits" post, the plan is to add more in future.
How to easily add VGA & PS2 ports to the DE0-Nano for under $10Items Required:VGA/PS2 Module (see bellow for sources)
40 Way IDE cable (from an old PC)
This is the module (cheapest I could find):
http://www.aliexpress.com/item/VGA-to-VGA-module-PS2-PS2-module-module-test-module-adapter-board-development-board/1182820977.htmlLots there from other sellers though:
http://www.aliexpress.com/premium/VGA-module-PS2.html?g=y&needQuery=n&SearchText=VGA%2Bmodule%2BPS2&CatId=0&initiative_id=SB_20131006095829&SortType=price_ascWith a simple modified IDE cable, the module will plug straight in, I've used a piece of paper in the pictures to help with visualization.
Step 1:First you need to separate certain groups of wires from each other, do this from the
non-striped side of the cable by counting off the following groups of wires (you only need to separate an inch or two). Details in Picture 1.
Count off 10 wires, separate that group.
Count off 2 wires, separate that group.
Count off 4 wires, separate that group.
Count off another 4 wires and separate that group.
Step 2:Cut the wires as seen in Picture 2.
Step 3:Split and strip the two wire pair coming from the DE0-Nano Side, the top wire of the pair is 3.3v, the bottom wire is ground.
Split the group of four wires coming from the VGA module side of the cable into two pairs, strip and twist the conductors in each pair.
See Picture 3 for more detail.
Step 4:Solder the top wire from the DE0-Nano side to the top pair on the VGA module side.
Solder the bottom wire from the DE0-Nano side to the bottom pair on the VGA module side.
See Picture 4 for more detail.
All done, now if you plug the VGA/PS2 module into the
non-striped side of the connector, you'll be able to build designs including VGA and PS2.
Picture 5 is the whole lot connected up.
Pictures 6 and 7 show the test output on an LCD monitor.
I've attached a zip file containing pin files with the VGA and PS2 included, and the bit-stream file that you can load into the FPGA to display the test pattern on screen.
Enjoy your new VGA / PS2 capabilities.
Edit: Added pictures of test pattern display.