Get Ready...
Links Mentioned
iMPACT Manual
 

Links
AWC PLD Page
 

Tip
JTAG is an industry standard that can be used to test circuits or, in this case, program them.

Home
Getting Started
Road Map
Half Adder
Adding I/O
Get Ready...
Testing
Testing (pt. 2)
GTS and GSR
Another Project
Another Project (page 2)
Another Project (page 3)
Schematic Tricks
A Real Project
Hardware
Simulation Revisited
Post Fit Sim
Information Please



The next step is to compile your design and program your chip. If the design were more complex, you might want to simulate it first, but we'll put that off for a later frame.

The Process Viewer has several entries:

bulletDesign Entry Utilities - Tools for entering your design (for example, ChipViewer).
bulletSynthesize - Compiles design files.
bulletImplement Design - Takes compiled files and "fits" them to your selected device.
bulletGenerate Programming File - Create a file to download to the device.

The Project Navigator is smart enough to perform any prerequisite steps before performing a requested action. Therefore, you can simply double click Configure Device (iMPACT). This will do all the compilation steps required and then launch iMPACT to program your chip. The iMPACT manual is available on the Web, but unless you are doing something other than just programming the chip, you'll probably never need it.

You should have the JTag programming board connected to your PC via a parallel port cable and the board should be plugged into the PBX84 (consult the PBX84 manual). The boards must have power applied. The iMPACT program should detect your JTag cable and show you a graphic representation of your device:

Of course, if you are using a 9572, the window will show the 9572 device instead of a 95108. Right click on the chip and select Program. This shows you this dialog:

Simply click OK. The operation takes a little while before the progress bar starts to move (15-30 seconds):

Once it starts moving, the operation completes quickly. The chip begins operating as soon as programming is complete. You'll want to connect pins 70 and 71 to LEDs through appropriate resistors (220-470 ohms). You'll connect pins 61 and 62 to pull up resistors and use a switch or wire to ground to set them to the zero state.

Note: The previous version of this figure had the pin numbers reversed. It really doesn't matter which pins you use as long as you set your constraints to match (see the last frame).

You should be able to manipulate the switches (or breadboard wires) and see that:

 0 + 0 = 0    0

 0 + 1 = 0    1

 1 + 0 = 0    1

 1 + 1 = 1    0

Congratulations! You programmed a CPLD!

Back Home Next

© 2002 by AWC. All Rights Reserved.