Board Verification and Basic Logic Circuits

Project 2, Exercise 2

Project 2, Exercise 2:

Board Verification and Basic Logic Circuits

Overview

This Exercise is based on the material covered in Real Digital Project 2, which can be found in the red tab to the right. A downloadable document for this exercise is available in the orange tab to the right. The mention of grading within the downloadable document is due to the exercise material being used as course work for an electrical engineering class at a university.

In this exercise, you will download a .bit file (yellow tab) to your board to configure the FPGA with eight different logic circuits. The circuits use buttons and switches for inputs, and LEDs for outputs. You must probe the logic circuits by applying all possible combinations of input signals, and from the results write logic equations that describe the circuit's behavior.

Before beginning this exercise, you should…
  • Obtain the reference manual and schematic for your Digilent board.
  • Be familiar with the basic concepts of electronic circuits and power supplies.
  • Know the definitions of voltage, current, resistance, power, and energy.
  • Be familiar with basic circuit components such as resistors, capacitors, diodes, LEDs, switches, transistors, and simple integrated circuits.
  • Be able to apply Ohm's law to basic circuits.
  • Be familiar with the basic logic operations AND, OR, NOT, NAND, NOR, XOR, and XNOR (or EQV).
After completing this exercise, you should…
  • Know that your Digilent board functions correctly.
  • Be able to use Adept to program your board.
  • Be able to recognize electronic components such as resistors, capacitors, and logic chips.
This exercise requires:
  • A Windows PC running the Xilinx ISE/WebPACK™ software.
  • A Digilent FPGA-based circuit board.

Problem 1.

Obtain the file “boardname_FPGA_lab1.bit” from the yellow tab above, and download it to your Digilent board following the procedure in Appendix A below. Your board will be configured with eight logic circuits that drive the eight on-board LEDs. You must find logic equations to describe the circuits. After the FPGA is configured with the bit file, apply all combinations of relevant inputs (hint: see the input variable names on the top row of each truth table), and use the output LED status to complete the following truth tables. Write a logic assignment equation that shows the behavior of each circuit (the equations do not need to be minimum).

Appendix A. Programming Digilent Boards Using Adept

Digilent Adept is a powerful application which allows for configuration and data transfer with Xilinx logic devices.

Although Adept is flexible enough to support many specific end-user requirements, most users can install Adept with default settings and immediately begin programming devices using a USB port.

This document provides a brief tutorial demonstrating the installation and basic use of Adept. For more complete information, please visit our website at www.digilentinc.com.

Installing Adept

Adept is compatible with Windows 2K, XP, Vista, and 7. To install Adept, you must log on to your PC as an Administrator, disconnect any USB devices connected to the PC, and run the Adept System Installer (digilent.adept.system_v2.x.x.exe). Then, follow the instructions below.

  1. When the installer application opens, click “Next”
  2. Read the EULA, click “I Agree”.
  3. We recommend installing all selected components. Click “Next”.
  4. We recommend installing Adept Suite “For anyone using this computer”.
  5. Although you can change the destination folder, most users will find the pre-determined Program Files directory to be sufficient. Click “Install”.
  6. The Digilent USB driver is not signed by Microsoft. Although it is completely safe and will not harm your computer, Windows 2K and XP may warn about installing it. Click the “Continue Anyway” button.
  7. Click the “Finish” button to complete the installation.
  8. Connect board to PC via USB cable. Windows should recognize the device.
  9. The Found New Hardware Wizard will appear. Select “No, not this time” and click the “Next” button.
  10. Set the wizard to “Install the software automatically”. Click the “Next” button.
  11. Windows 2K and XP may again prompt you with the warning about the unsigned USB driver. Once again, click “Continue Anyway” to allow the installation to complete.

Using Adept

To configure the Nexys2 board from your PC, open the Adept application (from the start menu, browse to “Start->Programs->Digilent->Adept ->Adept”). When launched, Adept connects to the first Digilent product it finds (or the last one selected) and attempts to initialize itself for device configuration. Most Digilent products contain device configuration capabilities, so the Config (configuration) tab is usually shown by default. Any configurable devices on the board are listed in the Config tab.

To directly program the FPGA, click the Browse button next to the FPGA device icon. An Open dialog box will appear. Select the appropriate configuration file in the Open dialog box and click the Open button. The selected file will be shown in a drop-gown list box next to the device. This drop-down list box also contains a history of opened configuration files for future access.

Click the Program button or right-click on the device icon and select Program Device. Once the FPGA has been programmed you should a screen similar to the following:

For more information on Adept, please see the Digilent Adept Application Users Manual.

Appendix B. Programming a Digilent Programmable Logic Board

  1. Configure board jumpers:
    1. Set the Mode Select jumper to JTAG or PC(JP9 for Nexys2, JP3 for Basys2)
    2. Set the Power Select jumper to USB power (JP7 for Nexys2, optional for Basys)
  2. Connect the board to the PC via retractable USB cable.
  3. Turn on the board via power switch.
  4. Program the board using Adept as outlined in the previous section.
  5. Note: Once you have selected the .bit file for programming, you may get this warning window:

  6. Click “yes” and continue programming the board.

  • Other product and company names mentioned herein are trademarks or trade names of their respective companies. © 2014 Digilent Inc. All rights reserved.