You are on page 1of 8

Adept Software Advanced Tutorial

Revision: February 26, 2010 215 E Main Suite D | Pullman, WA 99163 (509) 334 6306 Voice and Fax

Overview
This tutorial provides advanced instruction for using the Adept application. Please refer to the Adept Software Basic Tutorial for information on board setup and basic use. This tutorial covers the following steps: Using dpimref.vhd and the Register I/O tab to establish data transfer Using Adept I/O expansion

Getting Started
You will first need to install Digilents Adept software, which is available as a free download from the Software->Adept section of www.digilentinc.com. Dpimref.vhd, DpimRefUcf.zip, and Adept IOExpansion are both available from this section of the website as well. This tutorial uses the Nexys2 500k board, which can be purchased from www.digilentinc.com. The Xilinx ISE WebPACK is required in order to generate a configuration .bit file to program the board. It is a free download from the www.xilinx.com. Please refer to Digilents Xilinx ISE WebPACK VHDL Tutorial for more information.

Doc: 594-007
Copyright Digilent, Inc. All rights reserved. Other product and company names mentioned may be trademarks of their respective owners.

page 1 of 8

Adept Software Advanced Tutorial

Digilent, Inc.
www.digilentinc.com

Register Transfer
Build a project in ISE WebPack using the dpimref.vhd file found on the Adept webpage and the Nexys2-500kdpimref.ucf found in DpimRefUcf.zip. Generate a configuration file from this project for the FPGA on the Nexys2 500K board. Use the Config tab in Adept to download the configuration to the Nexys2 board. Once programming is finished, select the Register I/O tab to view the following:

Using the Register I/O tab, you can read or write a register value on the system board by specifying a register address.

www.digilentinc.com
Copyright Digilent, Inc. All rights reserved. Other product and company names mentioned may be trademarks of their respective owners.

page 2 of 8

Adept Software Advanced Tutorial

Digilent, Inc.
www.digilentinc.com

Once a successful configuration of dpimref is loaded onto your board, you can light LEDs on the Nexys2 board by writing data values to register Address 10. For example, on one line, enter the register address value 10 and the data value 5.

Click the Write >> button to cause LD0 and LD2 to light on your board.

www.digilentinc.com
Copyright Digilent, Inc. All rights reserved. Other product and company names mentioned may be trademarks of their respective owners.

page 3 of 8

Adept Software Advanced Tutorial

Digilent, Inc.
www.digilentinc.com

You can also change the value of Data to any number 0-255 and can see the LED pattern change accordingly. For more information on Adepts Register I/O tab as well as dpimref.vhd, consult the Adept Users Manual and the DpimRef Programmers Manual, respectively.

Adept I/O Expansion


IOExpansion.vhd, included in Adept IOExpansion.zip availble from www.digilentinc.com, is designed to be a component in a larger project, not just the stand-alone module in a design. A simple demonstration project illustrates this. After you have successfully downloaded Adept IOExpansion.zip to your computer, create a new ISE WebPACK project for the Nexys2 500k board with IOExpansion.vhd as an added source file. Create two additional VHDL modules, one named test.vhd and another named SplitMerge.vhd. SplitMerge.vhd should have the following information:

Test.vhd should contain the top-level port definitions for the boards Epp interface. Component declarations for IOExpansion.vhd and SplitMerge.vhd should be present as signals for connecting the component ports Led, LBar, Btn, dwOut, and dwIn. The following figure illustrates the appropriate port definitions, and component and signal declarations.

www.digilentinc.com
Copyright Digilent, Inc. All rights reserved. Other product and company names mentioned may be trademarks of their respective owners.

page 4 of 8

Adept Software Advanced Tutorial

Digilent, Inc.
www.digilentinc.com

Connect all components in the final design as follows:

www.digilentinc.com
Copyright Digilent, Inc. All rights reserved. Other product and company names mentioned may be trademarks of their respective owners.

page 5 of 8

Adept Software Advanced Tutorial

Digilent, Inc.
www.digilentinc.com

Finally, create a .ucf file for the project with the following constraints (derived from DpimRef.ucf from the Nexys2):

Once this is done, generate the programming file and use the Config tab in Adept to download the configuration .bit file to the board. Now, select the I/O Ex tab. Click the Start I/O button and confirm that the red dot next to it turns green. If it doesnt, then the VHDL or .ucf file you used to generate a configuration file may be incorrect.

www.digilentinc.com
Copyright Digilent, Inc. All rights reserved. Other product and company names mentioned may be trademarks of their respective owners.

page 6 of 8

Adept Software Advanced Tutorial

Digilent, Inc.
www.digilentinc.com

www.digilentinc.com
Copyright Digilent, Inc. All rights reserved. Other product and company names mentioned may be trademarks of their respective owners.

page 7 of 8

Adept Software Advanced Tutorial

Digilent, Inc.
www.digilentinc.com

With the configuration you have loaded, you should be able to cycle all I/O switches on the board and see one of the virtual LEDs light accordingly. When all I/O switches are cycled to the on position, Adept should look like this:

Further Information
For more information on the Adept software refer to the Adept Users Manual, which can be found in the Digilent/Adept directory of your computer after installing the software.

www.digilentinc.com
Copyright Digilent, Inc. All rights reserved. Other product and company names mentioned may be trademarks of their respective owners.

page 8 of 8

You might also like