Mike Szczys gets a Spartan-6 LED blinking after untangling the Linux toolchain

FPGA, Spartan-6, Linux

This is the read-only HTML version. For the full Visual Space experience, open the app.

Spartan-6 FPGA board — Images

Spartan-6 FPGA board — Images

Source: Spartan-6 FPGA Hello World on Hackaday.io · Mike Szczys

FPGA toolchain

A borrowed board and a short VHDL example were enough for the hardware side of this 2014 FPGA hello world. Getting there meant sorting out ISE, Linux drivers, licensing and a stuck programming cable—and accepting that a 20 MHz clock wouldn’t match code written for 50 MHz.

👏 1

An LED blink is a small result with a useful burden of proof: the design tools, programmer, pin assignments and logic all have to cooperate. In his Spartan-6 FPGA Hello World project on Hackaday.io, Mike Szczys documented that first working path so he wouldn’t have to reconstruct it next time. His August 30–September 1, 2014 logs follow a borrowed, hand-populated board and programmer from software setup to a blinking LED.

The board and programmer came from Technolomaniac. Szczys’s goal wasn’t a novel circuit; it was to get an example working on the hardware in front of him. That makes the setup notes as much a part of the project as the VHDL.

The first dependency was the right toolchain

Szczys initially tried Vivado, then discovered the decisive compatibility problem: it didn’t support his Spartan-6. He switched to Xilinx ISE Design Suite. For someone approaching a board for the first time, that distinction comes before language choice or logic design—a tool can install successfully and still be the wrong tool for the chip.

His ISE installation log describes Linux Mint 17, a roughly 6.8 GB installer and an installation that took about 75 minutes. One attempt reached the end only to report that driver installation lacked root privileges. Further notes cover launching ISE, making its license manager accessible and installing a free WebPACK license.

Those are historical instructions for a particular software environment, not a tested recipe for a current Linux machine. Their lasting value is the way they separate several problems that can otherwise look like one failure: installing the design software, satisfying its licensing requirements and getting the programming interface to work.

The cable added another layer. After working around the Linux driver installation, Szczys could query the FPGA through the Platform Cable USB—until the software began reporting that another application held the cable. His cable-lock note records the recovery sequence: start impact -batch, run cleancablelock, then exit. It’s a small detail, but one worth preserving when a previously working connection suddenly stops responding.

Two pin assignments connect the example to the board

The successful hello-world log, posted September 1, 2014, credits a VHDL blink tutorial. Szczys adapted the example by selecting his hardware and tracing the board’s clock and LED connections through the schematics.

He points to the board schematic PDF directory and identifies page 6 as the relevant pinout. His resulting constraints connect:

•
CLK_50MHz to FPGA pin P56, corresponding to the board’s FPGA_CLK signal.
•
LED to FPGA pin P134, corresponding to IO12.

That mapping is the bridge between an example’s logical port names and actual board connections. Copying the VHDL alone wouldn’t tell the tools which physical pin receives the oscillator signal or drives the LED.

The logic itself is short: a 25-bit counter advances on each rising clock edge. At its threshold, it resets and toggles an internal signal that drives the LED. The counter turns a clock far too fast to watch into a visible change.

A blinking LED isn’t yet an accurate clock

There’s one deliberate mismatch in the working example. The code was written for a 50 MHz oscillator, but Szczys reports that his board has a 20 MHz oscillator. He explicitly accepted the timing error for this test.

The posted threshold is 25,000,000. With a 20 MHz input, that implies a toggle about every 1.25 seconds and a complete on/off cycle about every 2.5 seconds, rather than the nominal one-second cycle suggested by the code’s CLK_1Hz name. That’s a calculation from the published code and stated clock frequency, not a reported measurement.

For this milestone, the distinction is sensible: a visibly blinking LED demonstrated that the example could run on the board. A precise blink rate would be a separate check. The useful next step is to make the divider match the actual oscillator and compare the resulting period with a measurement—moving from “the design runs” to “the design does what its timing says.”

Source: Spartan-6 FPGA Hello World

Hardware

3 Followers

A workshop for electronics and physical computing. Share circuits, boards, tools and prototypes; work through measurement and debugging, compare components, and document the choices that turn an idea into working hardware.

Visual Space is built for projects like this—where creators collaborate, organize goals, and grow communities around real work.