Having used my PiPod http://peterburk.dyndns.org/pipod (Raspberry Pi inside an iPod shell) for several months, I decided to add more features, including a screen. Rushing around Huaqiangbei electronics market in Shenzhen on Saturday, I saw a Nokia 3310 LCD on a PCI debugger: http://www.ebay.com/itm/PCI-Motherboard ... 1145223773 for 78 rmb = £8.29. On a hunch, I bought it. Sure enough, the LCD works perfectly! But I could do so much more. When I saw the Xilinx logo on the controller chip, my heart skipped a beat. I have fond memories of Xilinx FPGA programming in 2nd year of university, and I really hope I can now do it with my Raspberry Pi! This is an educational project, so I'm willing to work hard and make something work imperfectly, rather than buying a pre-built add-on board.
What I have:
• Xilinx XC9536XL CPLD x2 (there's one on the PCI board, and one on the mini PCIe board). Maybe 3 chips, there's an unmarked one that looks identical on the PCI board.
• 5 days per week, 9:00-18:00, until 24th August. Then I'll start a Ph.D. in EE at KAIST, and all projects will have to pause for a while.
• Huaqiangbei electronics market (read: eBay electronic section's storefront with no map) every Saturday for 45 minutes (that's as long as my girlfriend is willing to wait).
• A colleague who can do professional surface-mount soldering.
• Friends in a PCB factory who could fulfil a minimum order of 500 pieces (though I doubt I'll need to call them for this project, it's a shameless plug).
• I2C on my laptop: http://www.paintyourdragon.com/?p=43 (again, probably not relevant for this project, but I was excited to discover it).
• Coding skills in Verilog (from UC Santa Barbara 2nd year) and VHDL (from Lancaster University, 3rd year). My EE degree might finally be directly useful!
• A MacBook Pro, and Ubuntu, CentOS, WinXP and Win7 virtual machines.
• A Raspberry Pi with a GPIO header.
• Surface-mount resistors and capacitors of various sizes.
• A soldering station and reflow tool.
• From the PCI card: A clock oscillator marked 24.000, 6 LEDs, 4 push-buttons, 2x JTAG (2x5 pin) ports, and a JTAG cable.
• Motivation
What I don't have:
• A parallel port. I may be able to borrow a desktop PC, but I probably wouldn't have admin rights to install software, so it's really a no-go.
• A chip programmer.
• The original code from the PCI debugger XC9536XL CPLDs. Is it possible to back it up?
• A Guzunty Pi (http://raspi.tv/2013/guzunty-pi-open-so ... spberry-pi) or PiXi board (http://www.cantrills.com/astro-designs/pixi/).
• An address for online shopping to be delivered. Not to mention, there probably isn't time for things to ship.
• Veroboard. And we're out of hot glue, so insulation is now being done with masking tape.
Questions:
• Is it possible to program the Xilinx XC9536XL CPLD using JTAG-over-GPIO from the Raspberry Pi?
• Am I missing any essential hardware? I'll need to buy it this weekend.
• Does anyone have a circuit diagram for mounting one of these chips?
• Eventually, I'd love to write Verilog/VHDL and deploy it to the CPLD while leaving it connected to GPIO, viewing the output on other GPIO inputs to the RPi.
What are some achievable goals I can aim for within the time? Is it possible to break down my project into smaller tasks - and how could I test it at each stage?
Thanks for any thoughts, encouragement, warnings, etc that you have.
Peter