Modelsim SE Socket & FLI Demo

Demo showing Modelsim communicating with an X-Display

Last Updated: 30-July-2003

 

Quick Windows demo setup

Quick Cygwin demo setup

 Quick Linux demo setup


Introduction

This page describes a simple demo of a Fractal generator in VHDL which transmits its generated coordinates real-time using FLI-sockets to an X-Display driver running under Cygwin or Linux. For this demo you need Modelsim SE (not PE or any of the OEM versions like XE, AE), HDL_Designer is optional. The X-Display driver and Modelsim FLI interface are written in standard C. I use Microsoft Visual  C/C++ 6.0 on windows and GNU gcc 3.x under Linux (Redhat 8.0)/Cygwin. The fern generator is written in synthesisable VHDL.

Tools used

Unfortunately there are no static libraries available for X and Imlib, thus the only way to run the display program under windows is to install Cygwin/XFree86

Setting up Cygwin

The output of Modelsim is directed via a TCP socket to a X-Display program called dispfern. This program can run under Linux or Cygwin and uses the standard X and Imlib library. The later one is not installed when you install Xfree86 under Cygwin. On Linux Imlib is normally installed when you select the development libraries during installation.

General Setup

For the sockets to work you obviously need to have TCP/IP protocol installed.

Running the Demo