Programming an FPGA Board with the Analog Discovery Pro (ADP3450/ADP3250)
There might be cases when you need to provide a complex stimulus to a circuit, or you might want to condition digital signals before measurement, in both cases using an FPGA board can be handy. However, FPGA boards are usually configured from a PC, so including them in a standalone measurement system might not have been an option until now.
This guide walks you through the steps required to use the Analog Discovery Pro to load a previously-created bit file to your Digilent FPGA board.
Inventory
Hardware
-
a FAT/FAT32 formatted USB drive
Software
-
Adept Utilitiesfor Linux ARM-Raspberry Pi
-
Tera Term, or any other terminal emulator of your choice
You will also need a bit file to load onto the FPGA board.
Installing the Adept Utilities
Download and copy theAdept Utilitiesto the USB flash drive. SelectLinux ARM-Raspberry Pias the operating system.
Copy your bit file to the USB flash drive as well, then insert the drive into the back of the Analog Discovery Pro.
Open the terminal emulator on your PC and connect to the ADP. Find the USB device path. It should look like /dev/sd
sudo fdisk -l
Make the drive contents accessible by entering the following command:
sudo mount /dev/sda1 /mnt
Navigate to the USB's directory:
cd /mnt
Now install the Adept Utilities with:
sudo dpkg -i digilent.adept.utilities_2.4.1-armhf.deb
Don't forget to change the name of the file according to the downloaded program version.
Loading the Bit File
Plug your Digilent FPGA board's USB programming port (typically labeled PROG) into the back of the Analog Discovery Pro, then list the available devices by typing the following command:
djtgcfg enum
Find the programmable JTAG devices (FPGA chip) by typing:
djtgcfg init -d
Don't forget to change the device name according to your board. In this case, the device name is CmodS6.
In this case, there is only one programmable chip, with index 0. If your board contains more JTAG devices, note the index of the one you want to upload the bit file to.
Next Steps
For more guides and example projects for the Analog Discovery Pro, check out itsResource Center.
For technical support, please visit theDigilent Forum.