17-07-2012, 05:02 PM
My First FPGA Design
tt_my_first_fpga.pdf (Size: 1.64 MB / Downloads: 20)
Introduction
Welcome to Altera and the world of programmable logic! This tutorial
will teach you how to create a simple FPGA design and run it on your
development board. The tutorial takes less than an hour to complete. The
following sections provide a quick overview of the design flow, explain
what you need to get started, and describe what you will learn.
Design Flow
The standard FPGA design flow starts with design entry using
schematics or a hardware description language (HDL), such as
Verilog HDL or VHDL. In this step, you create the digital circuit that is
implemented inside the FPGA. The flow then proceeds through
compilation, simulation, programming, and verification in the FPGA
hardware (see Figure 1–1).
What You Will Learn
In this tutorial, you will perform the following tasks:
■ Create a design that causes LEDs on the development board to blink at a
speed that is controlled by an input button—This design is easy to create
and gives you visual feedback that the design works. Of course, you
can use your development board to run other designs as well. For the
LED design, you will write Verilog HDL code for a simple 32-bit
counter, add a phase-locked loop (PLL) megafunction as the clock
source, and add a 2-input multiplexer megafunction. When the
design is running on the board, you can press an input switch to
multiplex the counter bits that drive the output LEDs.
Design Entry
In the design entry phase, you use RTL or schematic entry to create the
logic to be implemented in the device. You also make pin assignments,
including pin placement information, and timing constraints that might
be necessary for building a functioning design.
In the design entry step you create a schematic or Block Design File (.bdf)
that is the top-level design. You will add library of parameterized
modules (LPM) functions and use Verilog HDL code to add a logic block.
When creating your own designs, you can choose any of these methods
or a combination of them.