Xilinx Frequency Generator manual Design Overview, Double click on ‘installfrequencygenerator.bat’

Page 3
Output Frequency provided on SMA socket

Design Overview

This design converts the Spartan-3E Starter Kit into a reasonably accurate frequency generator covering the nominal range 1Hz to 100MHz. The design allows you to attempt generation of higher frequencies to allow you to experiment with the maximum performance of the Spartan device on your board. The rotary control is used to edit the frequency displayed on the upper line of the LCD display and the corresponding frequency will then be output on the SMA connector (J17) as well as the stake pin J4-IO12. Internally to the device the frequency range is twice that provided externally (nominally up to 200MHz).

As well as providing the basic instructions to use the frequency counter, this document provides details of the Direct Digital Synthesis (DDS) techniques used in the design such that the can be transplanted into your own designs. PicoBlaze is used to provide the human interface and perform so high precision calculations which are passed to a simple but high performance (200MHz) frequency synthesizer formed from pure hardware and two Digital Clock Managers (DCMs). The lower line of the LCD display provides the information passed from PicoBlaze to the hardware which means that you can use this design with your board to determine the exact values required to implement a fixed frequency synthesizer without requiring PicoBlaze, the knob and LCD display. On this board the technique provides a convenient alternative to fitting a special oscillator in the IC16 socket and it may proves a cost effective solution for many real product applications too.

Load it now – it only takes 30 seconds!

It is recommended that you try this to become familiar with what the design does (operating instructions on the next page).

As well as the source design files, a compiled configuration bit file is provided which you can immediately download into the Spartan XC3S500E device on your board. To make this task really easy the first time, unzip all the files provided into a directory and then….

double click on ‘install_frequency_generator.bat’.

Assuming you have the Xilinx software installed, your board connected with the USB cable and the board powered (don’t forget the switch), then this should open a DOS window and run iMPACT in batch mode to configure the Spartan-3E with the design.

Spartan XC3S500E

50MHz Reference

Crystal Oscillator

 

Press and rotate knob

DDS control values

to set frequency

(bottom line)

J4-IO9

Phase

Accumulator

Test Point

J4-IO12

Copy of Output

Frequency

LEDs indicate

frequency

editing mode

Frequency display

(top line)

Frequency Generator for the Spartan-3E Starter Kit 3

Image 3 Contents
Frequency Generator Limitations Design Overview Double click on ‘installfrequencygenerator.bat’Edit cursor position mode Edit digit value modeOperating Instructions PicoBlaze Design Size MAP reportFpga Editor view Design Files ×16 Direct Digital Synthesis DDS Circuit DiagramOn the LCD PicoBlaze Circuit DiagramPhase Accumulator Waveforms 12.5MHz Harmonic Fundamental 12.4125MHz Fundamental Phase Accumulator SpectrumFinal Output Waveforms Phase Accumulator12.5MHz Fundamental 12.4125MHz Fundamental ±1.3MHz Final Output SpectrumSetting DCM Frequency Aligned Mode Exercises, Experiments and Suggestions