Archive

Archive for the ‘FPGA’ Category

Drive LCD TFT displays with an FPGA

February 22nd, 2013 11 comments

FPGA’s can be very advanced to get started using, especially if you are used to microcontrollers.
But when you first get the right feeling and the proper mindset you will soon see the endless possibilities with the programmable logic.

One of the great aspects of the logic is the speed and the full control of what happens at every single clock cycle.
With this full control it doesn’t takes many lines of code to generate a very time-critical signal such as a video signal.

In this short post I will walk thru our current test setup with an FPGA, the Spartan 3E, controlling a 18-bit 7″ 800×480 TFT display.

Spartan 3E controlling a 800×480 TFT LCD

Read more…

Categories: Development boards, FPGA, Guides Tags:

LVDS Display controller for microprocessors

October 3rd, 2012 38 comments

We have had a couple of embedded projects for our customers where the requirement were large-screen LVDS displays. By large screen I mean sizes over 7″ and a resolution of 800×480 where the common SSD1963 LCD controller can’t be used as the frame buffer RAM is too small.

LVDS Display Controller V1.0


So now we have decided to make our own similar display controller board but for LVDS displays as they are much more inexpensive and common (used in TVs and PCs).
Read more…

Categories: Arduino, ARM, FPGA, Other Microprocessors Tags:

Video Guide: How to get started with Xilinx ISE and VHDL

June 14th, 2011 21 comments

I posted this video guide on Youtube a couple of days ago, though I wanted to announce it in here too.

In this video tutorial I guide you thru how to make a counter application for the Basys2 board, which is an FPGA board from Digilent to those who are unfamiliar with it.
I will show you the required steps of setting up a project in Xilinx ISE, writing the VHDL code for the counter application, writing the pin constraints file (.UCF) and finally generating the bit-file for the Basys2 board.

This video tutorial was actually requested by a reader of the blog, so with this being my first video tutorial, I would like to show you that comments and requests ARE HEARD! :-)

EDIT:
The Xilinx ISE project files for the tutorial can be downloaded here: Basys2_CounterApp.zip

Categories: FPGA, Guides Tags:

Generating a VGA signal with an FPGA

March 22nd, 2011 25 comments

I posted this video on Youtube long time ago, but I forgot to write about it on my blog.

In the video I demonstrate how the Basys2 board, with a Spartan-3E 100K, can be used to generate a VGA signal.
I also show my bouncing ball application.

You can download the Xilinx project files here, including the VHDL files and User Constraint File for the Basys2 board.

Categories: FPGA Tags:

Porting the LatticeMico32 to a Xilinx FPGA

February 28th, 2011 50 comments

I finally finished my work getting the LatticeMico32 ported to a Xilinx FPGA, namely the Spartan 6. I’ve used the ZTEX FPGA Module for development, as it contains a Spartan 6 XC6SLX25 – I wrote a short review about it here: http://blog.tkjelectronics.dk/2011/02/reviewguide-ztex-spartan-6-module/

I wrote a guide about how to port the LatticeMico32 to a Xilinx FPGA, including the C-code programming stage in the Lattice system. You can download the guide here:
http://tutorials.tkjelectronics.dk/Porting_the_LM32_to_a_Xilinx_FPGA.pdf

The LatticeMico32 is an open source soft core processor provided by Lattice. The Lattice system makes a complete set of Verilog files, which can be ported to any FPGA. I decided to port it to the Xilinx series.

The example in the guide just blinks some LEDs, but it is not just LED blinking made with Verilog or VHDL coding, it’s made with C-coding inside an Eclipse enviroment, then compiled to the LatticeMico32. In the video above I show my first example and experience with the LM32 on the Spartan 6 FPGA.

The project files used in the video above can be downloaded here:
But please note that I recommend following the guide first, instead of just downloading the project files. The project files can then be used as a reference, to check if you did it correctly!

Review/Guide: ZTEX Spartan 6 module

February 25th, 2011 3 comments

A couple of weeks ago I recieved a Spartan 6 module from ZTEX. In this blog post I will be reviewing this excellent FPGA board.

ZTEX Spartan 6 module


The ZTEX USB FPGA Module 1.11 contains not only the Spartan 6 FPGA. It contains:

  • Cypress CY7C68013A EZ-USB-Microcontroller
  • Xilinx Spartan 6 XC6SLX9 to XC6SLX25 FPGA (I’ve got the XC6SLX25)
  • 64 MByte DDR SDRAM
  • MicroSD socket
  • 128 Kbit EEPROM memory
  • 48MHz Clock for the FPGA (going out from the Cypress)

Read more…

Categories: FPGA, Guides, Reviews Tags:

FPGA STAMP

November 16th, 2010 No comments

TKJ Electronics - FPGA STAMP Board


We have been working a while with a FPGA STAMP board, to make it easier for you to start using and develop with FPGAs. Finally we have a working prototype, which you can see on the following images.

The FPGA STAMP Board includes

  • Spartan 3E FPGA – XC3S500E
  • 4Mbit Xilinx Flash PROM for configuration storage
  • Voltage regulators and protection, as 3.3V has to be added externally

Read more…

Categories: Development boards, FPGA Tags:

First projects with FPGA

September 14th, 2010 49 comments

When I first recieved the board, I had already found out how to use Xilinx ISE to make schematic projects. So I made a 8-bit counter using flip-flops, AND and OR gates.
You can see the schematic here beneath:

Xilinx ISE - 8-bit Flip-Flop Counter Schematic



After a long chat with guy from HIH named Thomas (3rd semester), I got a pretty good understanding of the VHDL language and how to write to the FPGA.
So together with him I made my first project – a seven segment display decoder. It takes two 4-bit binary inputs and turns it into two HEX decimals on the seven segment display.
Afterwards I continued the project, and made a counter using the same seven segment decoder “module”.
Note: A module is like any other module in regular programming language; it works by importing it, and then using it’s “functions” – though you don’t have functions with FPGA’s, but instead you have entities with processes!

Finally I made a fully working 24-hour clock with hours, minutes and seconds. You are able to set the clock by using the switches and buttons.
I’ve uploaded a video to youtube about these projects so you can see what I’ve made.
Beneath the video I’ve also uploaded the VHDL code for the 3 projects, and the seven segment module, and the UCF (pin definition) files for use with the Basys2 board, for the different projects.



Read more…

Categories: FPGA Tags:

Digilent Basys2 FPGA Board

September 10th, 2010 No comments

Today I recieved my Digilent Basys2 FPGA board which has a Spartan-3E 100K BGA chip (XC3S100E CP132) on top.

BASYS2 Board


The Basys2 board is a simple FPGA development board, and it is easy to start with, as it has an onboard USB programmer. It has also got a 2Mbit flash for FPGA configuration storage.
The great thing with development boards though, is that you have some kind of periphirals, and on this board you have 8 switches, 8 LED’s, 4 buttons, a switchable clock (25/50/100MHz), VGA output and 4 expansion ports. This makes it alot easier to get started, because you only have to focus on the software/programming part – not the hardware.

I’ve uploaded a short video to show you the board, and the demo program which comes pre-programmed with the board!

Categories: Development boards, FPGA Tags: