Professional Documents
Culture Documents
Prerequisites
Have a Digilent FPGA board.
Have some time to set up your board and download the tools for further projects.
Software
Adept 2
Hardware
Basic Theory
The use of the word circuit in this context comes from the idea that electric power must
flow from the positive terminal of a power source through one or more electronic devices
and back to the negative terminal of a power source, thereby forming a circuit. If the
connections between an electronic device and either the positive or negative terminals of a
power supply are interrupted, the circuit will be broken and the device will not function.
A digital circuit consists of a power supply, devices, and conduction nets. Some nets
provide circuit inputs from the outside world; in a schematic, these input nets are
generally shown entering the left side of component and/or the overall circuit. Other nets
present circuit outputs to the outside world; these nets are generally shown exiting the
schematic on the right side. Circuit components are shown as arbitrary shapes, nets are
shown as lines, and inputs and outputs are denoted by connector symbols.
In a digital circuit, power supply voltage levels are constrained to two distinct values
logic high voltage (called LHV or Vdd) and logic low voltage (called LLV or GND).
The GND node in any circuit is the universal reference voltage against which all other
voltages are measured (in modern digital circuits, GND is typically the lowest voltage in
the circuit). In a schematic, it is often difficult to show lines connecting all GND nodes;
rather, any nodes labeled GND are assumed to be connected into the same node. The Vdd
node in a digital circuit is typically the highest voltage, and all nodes labeled Vdd are tied
together into the same node. Vdd may be thought of as the source of positive charges in a
circuit, and GND may be thought of as the source of negative charges in a circuit. In
modern digital systems, Vdd and GND are separated by anywhere from 1 to 5 volts. Older
or inexpensive circuits typically use 5 volts, while newer circuits use 1-3 volts.
In digital circuits, the Vdd and GND voltages are used not only to supply electric power to
circuit devices; they are used to represent information as well. The most basic digital
devices are called gates. The function of gates, orgating, is to allow or halt the flow of
digital information. In general, a gate has one or more inputs and produces an output (more
on that later).
Now that you have a basic understanding of what digital engineering is and how the circuits
function, lets move on to setting up your FPGA board and getting started.
Related Material
1. Follow the link to install Xilinx ISE WebPACK tools, all projects require a Xilinx
ISE Design Suite WebPACK Edition.
Select your board from the links below and download the file you need for this project:
NOTE: it is recommended that the path of location and working directory does not
contain white spaces (i.e., C:\Document and Settings\ is not recommended as
there are spaces in the path. Having white spaces in the file path may cause XST to
fail.)
4. In the project settings, you will need to select details that pertain to your FPGA on the
board. The Nexys 3 is being used for this example.
For Nexys 4:
o Family: Artix-7
o Device: XC7A100T
o Package: CSG324
o Speed: -1
For Nexys 3:
o Family: Spartan 6
o Device: XC6SLX16
o Package: CSG324
o Speed: -2
o Family: Spartan-3E
o Device: XC3S1600E
o Package: FG320
o Speed: -4
o Family: Spartan-3E
o Device: XC3S500E
o Package: FG320
o Speed: -4
For Basys 2:
o Family: Spartan-3E
o Device: XC3S100E
o Package: CP132
o Speed: -4
5. The final page of the wizard shows the project summary. Click finish after you have
looked over the details of your project.
6. After the wizard finishesm you will be left with a blank window similar to the image
below:
. Right-click on the name of your board
's chip and select the option add copy of source8. After adding the project0_demo.v file
to the project, add the .ucf file from the directory to the project using the instructio
ns from the previous step. You can examine both the Verilog file (file.v)
and the UCF file (.ucf) by double-clicking the file in the design window in the left pane.9
Now that you have the Verilog file and the appropriate UCF file added to the project, you
can build the project by double-clicking on generate programming file.
10. Once the project is done building the
bit file, the window will look like this:
3. You will now program the board with the compiled bit file from Step 2, to do this click
browse and navigate to the working directory you chose and select the .bit file.
4. Click on program and your board will be programmed. You will see the demo operating
and showing the green LEDs on except for a moving off LED. The seven segment display
will change through the different segments. When this is complete you have finished this
project!