CPLD/FPGA programmer for Bus Pirate

Get help, exchange designs for programmable logic chip dev-boards. XC9500XL and CoolRunner-II development boards available for $15.

CPLD/FPGA programmer for Bus Pirate

Postby ian » Wed Feb 16, 2011 8:20 am

The Bus Pirate currently has JTAG debugging support through OpenOCD, but that is overkill for programming CPLDs and FPGAs.

I dug up the old XSVF JTAG programming firmware based on the Xilinx XAPP058 app note and sample code (license unknown, so no distribution on the source until I clarify). I put just the XSVF and JTAG chain scan stuff into a new firmware that works with the v4 bootloader (attached). This firmware will quickly and easily program CPLDs and FPGAs (any brand that can export XSVF, or even SVF processed with the Xilinx converter) from the Bus Pirate v3.

It follows this simple protocol:
http://dangerousprototypes.com/docs/Bus ... SVF_player

We're working on a simple loader app now. It will take the XSVF output for CPLDs/FPGAs and hand it to the Bus Pirate.

This was spurred because urJtag doesn't want to work with teh XC9572XL breakout board, and we needed a way to test it. Not only that, but it should greatly expand the audience for the new boards.
Attachments
BPXSVFPlayer.zip
(52.87 KiB) Downloaded 731 times
User avatar
ian
Crew
Crew
 
Posts: 10803
Joined: Mon Jul 06, 2009 6:14 am

Re: CPLD/FPGA programmer for Bus Pirate

Postby rsdio » Wed Feb 16, 2011 8:34 am

Nice!
User avatar
rsdio
Developer
Developer
 
Posts: 1407
Joined: Sun Feb 28, 2010 10:53 pm
Location: Seattle

Re: CPLD/FPGA programmer for Bus Pirate

Postby PALMA » Wed Feb 16, 2011 10:04 am

Awesome!! I can't wait to get one XC9500XL board
PALMA
Newbie
Newbie
 
Posts: 22
Joined: Fri Feb 11, 2011 10:09 pm
Location: Colombia

Re: CPLD/FPGA programmer for Bus Pirate

Postby ian » Thu Feb 17, 2011 5:58 am

Got it working with the XC2c64a and the xc9500xl today.

Here's a screenshot, firmware, windows app, and app source (attachment on first post).
Attachments
bp-xsvf-v01.png
User avatar
ian
Crew
Crew
 
Posts: 10803
Joined: Mon Jul 06, 2009 6:14 am

Re: CPLD/FPGA programmer for Bus Pirate

Postby Rubu » Thu Feb 17, 2011 7:18 am

Cool! Just out of curiousity, could this also be used to program the FPGA in the OLS, without writing the flash?
Rubu
Jr. Member
Jr. Member
 
Posts: 88
Joined: Wed Oct 20, 2010 12:38 pm
Location: Netherlands

Re: CPLD/FPGA programmer for Bus Pirate

Postby ian » Thu Feb 17, 2011 7:42 am

The OLS is hard-wired for flash loading, and the JTAG is 2.5 volts (Bus Pirate is 3.3volts).
User avatar
ian
Crew
Crew
 
Posts: 10803
Joined: Mon Jul 06, 2009 6:14 am

Re: CPLD/FPGA programmer for Bus Pirate

Postby robots » Thu Feb 17, 2011 8:03 am

does it really need different fw ?:) couldn't it use OOCD1 binary protocol ?
User avatar
robots
Hero Member
Hero Member
 
Posts: 569
Joined: Sat Dec 05, 2009 11:19 am
Location: CZ/Prague

Re: CPLD/FPGA programmer for Bus Pirate

Postby ian » Thu Feb 17, 2011 8:25 am

Then the SVF player app would have to be smart. This uses a ready-made app-note on-PIC firmware to decode the SVF file. It was just a little bit of work. The application feeds the XSVF file in 4096 byte chunks, it doesn't know or care what the data is. It was only a marginal amount of work :)
User avatar
ian
Crew
Crew
 
Posts: 10803
Joined: Mon Jul 06, 2009 6:14 am

Re: CPLD/FPGA programmer for Bus Pirate

Postby Philip » Mon Feb 21, 2011 7:12 pm

It would be cool if we could read the contents of the CPLD/FPGA hihi <<-- i really need this option hehehe
Philip
Full Member
Full Member
 
Posts: 120
Joined: Tue Feb 16, 2010 4:14 am
Location: Philippines

Re: CPLD/FPGA programmer for Bus Pirate

Postby robots » Tue Feb 22, 2011 12:13 pm

of course you can, but not with [x]svf player. Xilinx ise can do it.
User avatar
robots
Hero Member
Hero Member
 
Posts: 569
Joined: Sat Dec 05, 2009 11:19 am
Location: CZ/Prague

Re: CPLD/FPGA programmer for Bus Pirate

Postby Philip » Tue Feb 22, 2011 2:07 pm

can i use the xilinx ise with the buspirate?
Philip
Full Member
Full Member
 
Posts: 120
Joined: Tue Feb 16, 2010 4:14 am
Location: Philippines

Re: CPLD/FPGA programmer for Bus Pirate

Postby ian » Tue Feb 22, 2011 2:35 pm

No, just the parallel cables, USB pods, and some JTAG debuggers under LInux with a special alternative Xilinx driver.
User avatar
ian
Crew
Crew
 
Posts: 10803
Joined: Mon Jul 06, 2009 6:14 am

Re: CPLD/FPGA programmer for Bus Pirate

Postby Philip » Fri Feb 25, 2011 9:01 am

Hi

can this parallel adapter be used with xilinx ISE to read from an FPGA?

http://www.sparkfun.com/products/8460

[i found an old computer with a parallel port hihi]
Philip
Full Member
Full Member
 
Posts: 120
Joined: Tue Feb 16, 2010 4:14 am
Location: Philippines

Re: CPLD/FPGA programmer for Bus Pirate

Postby ian » Fri Feb 25, 2011 9:08 am

I think that will probably work.
User avatar
ian
Crew
Crew
 
Posts: 10803
Joined: Mon Jul 06, 2009 6:14 am

Re: CPLD/FPGA programmer for Bus Pirate

Postby Philip » Fri Feb 25, 2011 9:27 am

ganna try to build one hehehehe
Philip
Full Member
Full Member
 
Posts: 120
Joined: Tue Feb 16, 2010 4:14 am
Location: Philippines

Next

Return to CPLD programmable logic

cron