1. First stage is to
prepare the source code. In this case we would pick a simple 7 segment driver
counter and use VHDL:
2. Next the code will be
loaded and compiled in Quartus to test for basic syntax and other trivial
programming mechanics.
Once the code is tested, a
tcl script is created in preparation for simulation under ModelSim:
3. The design is loaded
into ModelSim and stimulus is applied in order to generate the wave form and
observe behavior. A small 7 segment display is built by the tcl script above
and connected to the output waveform:
|
(click for larger picture) |
The
design is loaded into ModelSim and stimulus is applied in order to generate
the wave form and observe behavior. A small 7 segment display is built by the
tcl script above and connected to the output waveform. |
4. Then the compiled
binary is loaded into one of the development boards and it is executed in a
real-time lab. If the design allows live capture, it is so captured by lab
equipment:
|
(click for larger picture) |
This specific design is loaded onto a low-end CPLD and
bread board. The objective is to test basic functionality without the effort
of going to full blown FPGA development board, boot loader and so forth. Because
the Altera CPLD is an EEPROM based device, the entire breadboard only
requires few components, clock source and power. |
|
|
|
|
(click for larger picture) |
All
output pins are within the capture capability of logic analyzer and so the
entire waveform can be displayed and compared to the waveform generated by
ModelSim. |
|
|
|
|
(click for larger picture) |
In our
case the two waveforms – synthetically simulated and captured in real-time
happened to match J |
5. And finally we have the
product values displayed on a 7 segment LED:
|
(click for larger picture) |
Just to
be sure, an LED is connected via a driver IC directly into the same pins
where the logic analyzer was previously capturing the waveform above. The LED
is the ultimate confirmation that our VHD code does precisely what it was
supposed to do. |
6. At this point we can
proceed with Altium Designer PCB or close the project.
|
(click for larger picture) |
Boring
rats nets wiring and IC placement |
|
|
|
|
(click for larger picture) |
The
center piece is that FPGA IC |
|
|
|
|
(click for larger picture) |
Fresh
out of the fab house, and ready for solder pasting and reflow toaster oven J |