Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Programming Digilent Nexys 2 from Linux

Status
Not open for further replies.

AndyR71

Newbie level 2
Joined
Mar 24, 2009
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,306
digilent linux

I recently bought a Digilent Nexys 2 board, and after a few days of research got to the point where I can successfully program it over USB from a Linux host without the use of a separate (and expensive!) JTAG interface. Google told me even before I purchased the board that this is a very common requirement; it seems that I'm not the only one interested in linux-hosted FPGA development. The pieces to make this work were all there, happily (see the README in the download below for details -- the chain of responsibility here is long); it just took work to assemble them correctly.

For those interested, I wrote a quick perl script to automate the process, available at: **broken link removed**

This wraps the multi-step mess (device detection/configuration, SVF generation, and JTAG download) as fully as possible, most importantly by doing the USB bus enumeration and dynamically reprogramming the Nexys 2 with a patched usb_jtag firmware blob in the script itself. The user just specifies the Xilinx bitstream file as the sole argument.

Installation is as simple as I could make it, requiring only Xilinx ISE, two binary packages (fxload and libftdi -- both available via apt-get on Ubuntu Intrepid) and one source install (UrJTAG -- just a simple "./configure;make;make install" will do).

Hopefully this will help other newbies with the learning curve. Let me know if something doesn't work, or if there are questions.
 

nexys2 linux

What happened? I remember the datasheet says user can program the FPGA/PROM via the Windows platform through the USB port on the board using Digilent's software? Does it work? Does the script you programmed do the same thing in Linux as Digilent software in Windows?
 

nexys 2 linux

kel8157 said:
[...] the datasheet says user can program the FPGA/PROM via the Windows platform [...] Does the script [...] do the same thing in Linux

Not exactly. It's complicated; you need to download custom firmware to the FX2 chip on the board that makes it act like another kind of USB/JTAG cable. My script is only the "integration" work; the original firmware and patches are available elsewhere, but the process is very complicated (borderline insane, actually). As I mentioned, I tried to document all the people's work I'm relying on in the README.

And yes, I'm sure the Digilent software works when run in windows, but I haven't tried it. The screenshots look just awful, frankly. GUIs can't be automated.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top