Appendix III: Configuring FPGA using Adept software from Digilent

EE201L - Introduction to Digital Circuits Configuring FPGA using a Parallel or an USB Cable and Adept Appendix III: Configuring FPGA using Adept sof...
Author: Shannon Hicks
6 downloads 0 Views 319KB Size
EE201L - Introduction to Digital Circuits

Configuring FPGA using a Parallel or an USB Cable and Adept

Appendix III: Configuring FPGA using Adept software from Digilent 1. Cables: This method is simple and works with either a Parallel Download cable or a special JTAGUSB cable from Digilent. Several students have only a notebook computer and do not have a desktop. Notebooks do not usually come with a parallel port. If you do not have a parallel port on your PC, then you should ask your TA or instructor to supply you with the special Digilent USB download cable. 2.

Adept Suite from Digilent:

Go to the following page of Digilent, and download their free Adept software. https://www.digilentinc.com/Software/Adept.cfm?Nav1=Software&Nav2=Adept Click on the Download button on the right top. You can also download the same using this address: https://www.digilentinc.com/Data/Software/Adept/DASv1-7.msi The file DASv1-7.msi can be brought on to your desktop. To install, double-click on it (on the DASv1-7.msi icon), accept the licensing agreement, accept the default installation folder C:\Program Files\Digilent\Adept\ . Ignore the Windows XP warning and click on

.

3. At the end of installation, it asks you to attach your device. Click without actually attaching the cable. Now the installation of Digilent Adept software is complete. Now you may delete the installation file DASv1-7.msi from your desktop. 4. FTP the file ee201l_s2_detour.bit (from your UNIX account if it was generated on UNIX) to a PC to which your FPGA board is connected using one of the above cables. Perhaps, you would like to create a directory called BIT_files under C:\ and ftp this bit file into that directory. 5. If you are using the JTAG-USB cable, please go through steps 6 to 18. If you are using parallel cable, please go through steps 19 to 30 below. 6.

USB Administrator Tool and ExPort Tool (for JTAG-USB cable users):

After installing the Adept software, you need to use the USB Administrator tool for it to recognize your JTAG-USB cable and add the module to the list of You need to use the USB Administrator tool only one time.

ee201l_configure_FPGA_Parallel_Cable_USB_Cable_Adept.fm [Revised: 3/16/07]

.

1/8

EE201L - Introduction to Digital Circuits

Configuring FPGA using a Parallel or an USB Cable and Adept

After your cable has been recognized, you only need to use the ExPort tool whenever you wish to download a .bit file to the FPGA. Export tool icons:

,

7. Connect the JTAG-USB cable to an USB port on your PC and the JTAG header on your D2XL FPGA board. Make sure that the JTAG header connection is in the correct orientation. Align TMS on the board with TMS on the cable. TMS Also make sure that SW1 switch on the D2XL board is set to PORT side. Power the FPGA board. 8. The moment you connect the JTAG cable to your PC (whether the other end is connected to the board or not, the windows operating system starts identifying the cable (identifying the USB interface embedded in the cable). 9. PC recognizes new hardware and asks for driver: The very first time you connect your JTAG-USB cable to your PC, the windows OS reports "... Found new hardware ... ". Decline windows offer to connect to windows update to search for software for this hardware (by selecting "No not this time"). In the next dialog box select "Install from a list or specific location (Advanced). 9.1 Locate driver. You need to point to Windows that the driver is located at C:\Program Files\Digilent\Adept\Drivers Depending whether you are running Window 2000 or XP your PC response may be slightly different.

ee201l_configure_FPGA_Parallel_Cable_USB_Cable_Adept.fm [Revised: 3/16/07]

2/8

EE201L - Introduction to Digital Circuits

Configuring FPGA using a Parallel or an USB Cable and Adept

Ignore the Windows XP warning and click on . Sometimes the Windows OS reports that there was some problem in installing the new hardware. However, it seems to work fine. 10.

Invoke USB Administrator utility in Adept: On your PC, go to Start => Digilent => Adept => USB Administrator.

10.1

Extract from Digilent Adept Software manual:

Close the

window.

Invoke ExPort. 11. On PC go to Start => Digilent => Adept => ExPort Click

ee201l_configure_FPGA_Parallel_Cable_USB_Cable_Adept.fm [Revised: 3/16/07]

3/8

EE201L - Introduction to Digital Circuits

Configuring FPGA using a Parallel or an USB Cable and Adept

11.1 Select USB tab in the Add Module dialog box on the side. Under Connected Modules, you find DCabUsb and its serial number as shown in the adjacent screen shot. The tool allows you to name the Device as you want. However, it is best to name it as DCabUsb (for Digilent Cable USB). That is the name chosen by Digilent for this cable. Click followed by in the ADD Module dialog box. As a result, the module shows up in the Communication dialog box.

Click

and then click

.

12. Now onwards, your ExPort tool will remember the addition of the DCabUsb driver/connection. 13.

Click on

14. It finds the FPGA in the scan chain.

15.

Click on

in the above box and point to the .bit file (in the C:\BIT_files).

ee201l_configure_FPGA_Parallel_Cable_USB_Cable_Adept.fm [Revised: 3/16/07]

4/8

EE201L - Introduction to Digital Circuits

16.

Click on

Configuring FPGA using a Parallel or an USB Cable and Adept

.

17. Hopefully the programing will be successful and it will return the response shown below. On both my computers, it returned the response shown below but I find that the FPGA is actually programmed correctly.

18.

Now it is time to CELEBRATE!

ee201l_configure_FPGA_Parallel_Cable_USB_Cable_Adept.fm [Revised: 3/16/07]

5/8

EE201L - Introduction to Digital Circuits

Configuring FPGA using a Parallel or an USB Cable and Adept

19. Configuring the FPGA using a parallel cable: Steps 20 to 23 below need to be performed only once to set up the communication modules in ExPort part of the tool. 20.

Invoke ExPort:

On PC go to Start => Digilent => Adept => ExPort Click

21. The

Click on

in the above dialog box. dialog box shown on the side appears.

22. Click Parallel tab . Notice that you have pull-down arrow under port. It is possible that the LPT1 parallel port on different computers may be set to work using different port addresses. The three addresses are 0x378 (378 hex), 0x278 (278 hex), or 0x3BC (3BC hex). We want to add each of them as a “module” to the ExPort software and finally make the right one as our default. Let us change the Device Name from the generic “module 1” to something which makes sense in our context. I suggest that we change the Device Name to "parallel_0x378" when we add 0x378, "parallel_0x278" when we add 0x278, and "parallel_0x3BC" when we add 0x3BC.

Add all three modules by using the After the last module addition click on

button. .

ee201l_configure_FPGA_Parallel_Cable_USB_Cable_Adept.fm [Revised: 3/16/07]

6/8

EE201L - Introduction to Digital Circuits

23. When all three modules are added, click on in

Configuring FPGA using a Parallel or an USB Cable and Adept

Default

the Add Module dialog box. Then click in the adjacent box, followed by in the adjacent box. Note: On my computer, the parallel port LPT1 is at the address 0x378. So I had set it as default. 24. Connect the board to your PC: Connect the parallel cable to the LPT1 parallel port on your PC and the 25-pin parallel cable connector on your D2XL FPGA board. Make sure that SW1 switch on the D2XL board is set to JTAG side. Power the FPGA board. 25.

Now

click on in the adjacent

window and point to the file, ee201l_s2_detour.bit, in C:\BIT_files . 26.

click

on ..

ee201l_configure_FPGA_Parallel_Cable_USB_Cable_Adept.fm [Revised: 3/16/07]

7/8

EE201L - Introduction to Digital Circuits

27. list.

Configuring FPGA using a Parallel or an USB Cable and Adept

It finds the FPGA in the scan chain. Assign the configuration file by using the pull-down

Pull-down 28.

Click on

29.

Hopefully the programing will be successful and it will return

the

30.

.

response shown below.

Now it is time to CELEBRATE!

ee201l_configure_FPGA_Parallel_Cable_USB_Cable_Adept.fm [Revised: 3/16/07]

8/8