Lab 3: Embedding VHDL code in a Xilinx Spartan 3E VI

Similar documents
DSP Laboratory: Analog to Digital and Digital to Analog Conversion

Lab 1: Introduction to Xilinx ISE Tutorial

Design of Remote Laboratory dedicated to E2LP board for e-learning courses.

Getting Started with Embedded System Development using MicroBlaze processor & Spartan-3A FPGAs. MicroBlaze

Xilinx ISE. <Release Version: 10.1i> Tutorial. Department of Electrical and Computer Engineering State University of New York New Paltz

Creating a Webserver on the Nios development kit Stratix Edition board Enoch Hwang

Building an Embedded Processor System on a Xilinx Zync FPGA (Profiling): A Tutorial

2. Scope of the DE0 Board and Supporting Material

Lab View with crio Tutorial. Control System Design Feb. 14, 2006

LAB #3 VHDL RECOGNITION AND GAL IC PROGRAMMING USING ALL-11 UNIVERSAL PROGRAMMER

Using the Communication Ports on the DG-700 and DG-500 Digital Pressure Gauges

EasyC. Programming Tips

Installing S500 Power Monitor Software and LabVIEW Run-time Engine

PLC training panel (Twido version)

Lab Experiment 1: The LPC 2148 Education Board

Hands-On: Introduction to Object-Oriented Programming in LabVIEW

Implementation of Web-Server Using Altera DE2-70 FPGA Development Kit

DUKANE Intelligent Assembly Solutions

PM1122 INT DIGITAL INTERFACE REMOTE

The goal is to program the PLC and HMI to count with the following behaviors:

Technical Note. Micron NAND Flash Controller via Xilinx Spartan -3 FPGA. Overview. TN-29-06: NAND Flash Controller on Spartan-3 Overview

Keep it Simple Timing

Using the VEX Cortex with ROBOTC

Additional Guides. TETRIX Getting Started Guide NXT Brick Guide

To perform Ethernet setup and communication verification, first perform RS232 setup and communication verification:

Easy! Smooth! GP/ST-3500 Series->GP4000 Series Replacement Guidebook

BECKHOFF. Application Notes. BC9000: Getting Started Guide. For additional documentation, please visit.

PRODUCTIVITY THROUGH INNOVATION 600 CONTROL DIRECT DRIVE TECHNICAL/OPERATION MANUAL

EVAL-UFDC-1/UFDC-1M-16

Installation Guide (No Router)

Best Practises for LabVIEW FPGA Design Flow. uk.ni.com ireland.ni.com

LP 2844 Thermal Printer

ChipScope Pro Tutorial

What s in the Box? Welcome. The GymAware Kit. Congratulations on your purchase of a GymAware PowerTool POWERTOOL CHARGER.

FPGA Implementation of an Advanced Traffic Light Controller using Verilog HDL

The FlexiSchools Online Order Management System Installation Guide

System update procedure for Kurio 7 (For build number above 110)

INF-USB2 and SI-USB Quick Start Guide

JVC Monitor Calibration 2 User's Guide

SKP16C62P Tutorial 1 Software Development Process using HEW. Renesas Technology America Inc.

Midland BT Updater BTUpdater Program Program file (x86) ), Midland

Quick Start Using DASYLab with your Measurement Computing USB device

No serious hazards are involved in this laboratory experiment, but be careful to connect the components with the proper polarity to avoid damage.

TE100-P21/TEW-P21G Windows 7 Installation Instruction

BounceBack Server Solution Reference Guide

OS X LION SET UP THE SYSTEM

Start A New Project with Keil Microcontroller Development Kit Version 5 and Freescale FRDM-KL25Z

Embedded System Deployment and Management

Using MCC GPIB Products with LabVIEW

Accessing I2C devices with Digi Embedded Linux 5.2 example on Digi Connect ME 9210

Guide to Installing BBL Crystal MIND on Windows 7

VHDL Test Bench Tutorial

SA-9600 Surface Area Software Manual

PROFINET IRT: Getting Started with The Siemens CPU 315 PLC

Quartus II Introduction Using VHDL Design

Waspmote. Quickstart Guide

Software Upgrade Assistant Manual for DuraXV

ezsystem elab16m Project 1F: Alarm System (Full Project description)

MSP-EXP430G2 LaunchPad Workshop

Super Pro Net TM Network Key Installation and Operation

USB - FPGA MODULE (PRELIMINARY)

Downloading the GAIG Annuity App. Log In Screen. Home Page

DDS. 16-bit Direct Digital Synthesizer / Periodic waveform generator Rev Key Design Features. Block Diagram. Generic Parameters.

Kinect Interface to Play Computer Games with Movement

Current Cost Data Cable User Guide. Installing and configuring the data cable

The FlexiSchools Online Order Management System Installation Guide

EC313 - VHDL State Machine Example

EMBEDDED C USING CODEWARRIOR Getting Started Manual

How do I Check if My Computer is Compatible with Windows 7

LABVIEW DSP TEST TOOLKIT FOR TI DSP

EDK 350 (868 MHz) EDK 350U (902 MHz) EnOcean Developer Kit

Getting Started with the Xilinx Zynq All Programmable SoC Mini-ITX Development Kit

Sirona SIDEXIS Installation

How to setup a serial Bluetooth adapter Master Guide

LabVIEW DSP Test Integration Toolkit for TI DSP

Ultra Thin Client TC-401 TC-402. Users s Guide

Getting Started with the LabVIEW Embedded Module for ARM Microcontrollers 1.0 For the Keil MCB2300

SecureLinx Spider Duo Quick Start Guide

SIEMENS S

Syncing ipad devices using itunes

Section 5: Installing the Print Driver

Post-Configuration Access to SPI Flash Memory with Virtex-5 FPGAs Author: Daniel Cherry

POS Integration. Prepared by: Binh Nguyen

WinPFT File Transfer Utility (Catalog No ND7)

ScanWin Installation and Windows 7-64 bit operating system

Config software for D2 systems USER S MANUAL

#include <Gamer.h> Gamer gamer; void setup() { gamer.begin(); } void loop() {

Distribution List Manager User s Manual

Addendum Advanced POS Printer Drivers

RCC2 Test Proceedures

HL2170W Windows Network Connection Repair Instructions

An Introduction to MPLAB Integrated Development Environment

How To Connect A300 To A300 Time Clock On A Pc Or Mac Computer

isppac-powr1220at8 I 2 C Hardware Verification Utility User s Guide

BASLER ACE QUICK INSTALLATION GUIDE

Additional Requirements for ARES-G2 / RSA-G2. One Ethernet 10 Base T/100 Base TX network card required for communication with the instrument.

AN655 R ANGE TEST APPLICATION FOR EZRADIO AND EZRADIOPRO. 1. Introduction. 2. Supported Radio Types

E-Blocks Easy RFID Bundle

1. Preparations Before Updating or Recovering

Downloading a Sample Program over USB

Transcription:

Lab 3: Embedding VHDL code in a Xilinx Spartan 3E VI Keywords: LabVIEW, LabVIEW FPGA, Xilinx SPARTAN3E Starter Kit, VHDL, Even Parity.

Introduction Welcome to Lab3 in the serie of programming a SPARTAN3E Starter Kit by use of LabVIEW FPGA. These labs are created by Vincent Claes. If you encounter problems using this labs or want some advice/consultancy on LabVIEW and especially LabVIEW FPGA you can always contact the author. These labs are free to use however to show respect to the author please email him when you use them with your contact details (feedback is also welcome). Contact Information: Vincent Claes claesvincent@gmail.com http://www.linkedin.com/in/vincentclaes Software Requirements: LabVIEW 8.5 or above LabVIEW 8.5 FPGA module XUP Spartan3E starter board: download for free from: https://lumen.ni.com/nicif/us/infolvfpgaxilsprtn/content. xhtml Hardware Requirements: Xilinx Spartan3E Starter kit: http://www.xilinx.com/products/devkits/hw-spar3e-sk-us- G.htm User manual: www.xilinx.com/support/documentation/boards_and_kits/ug23 0.pdf Getting Started When you want to use this labs you have to setup your board. This labs are written for the Xilinx SPARTAN3E Starter Kit so it is quite interesting to read the user manual of the board. Be sure to plug in the USB cable, plug in the Power cord and Switch the board on before starting the lab.

Step 1: Adding the FPGA I/O to your LabVIEW FPGA Project The first things we have skipped because it is the same as in Lab 1 & Lab 2. Try to setup yourself an LabVIEW FPGA project for the Xilinx Spartan3E starter board. When you reach the step where you have to add FPGA I/O to the FPGA Project add the SW0, SW1, SW2, SW3 and LED0 I/O pins. In this lab we are going to create a parity checker. We will put LED0 of the Spartan3E Starter board on when the input of the checker system (by use of SW0, SW1, SW2 and SW3 ) has even bits. Step 2: Creating the VI. Do a right mouse click on the FPGA Target in the Project Explorer. From the pull down menu select New >> VI. Name it FPGA_VI_VHDL. On the block diagram of this vi you have to put a Timed Loop.

In this Timed Loop you have to place a HDL Interface Node. Now double click the HDL Node ; you will get the following screen: In the first screen try to add the following 2 parameters: inp with direction in, type TF[] and Length 4. outp with direction out type TF.

In the code screen replace hdlnode (name of the entity) to even_parity. The field below architecture implementation of even_parity is has to been filled with the following VHDL rule: signal s1, s2, s3, s4, s5, s6, s7, s8: std_logic; The field below the VHDL keyword begin has to been filled with the following VHDL code: outp(0)<=((s1 or s2) or (s3 or s4)) or ((s5 or s6) or (s7 or s8)); s1 <=(not inp(3)) and (not inp(2)) and (not inp(1)) and (not inp(0)); s2 <=(not inp(3)) and (not inp(2)) and inp(1) and inp(0); s3 <=(not inp(3)) and inp(2) and (not inp(1)) and inp(0); s4 <=(not inp(3)) and inp(2) and inp(1) and (not inp(0)); s5 <=inp(3) and (not inp(2)) and (not inp(1)) and inp(0); s6 <=inp(3) and (not inp(2)) and inp(1) and (not inp(0)); s7 <=inp(3) and inp(2) and (not inp(1)) and (not inp(0)); s8 <=inp(3) and inp(2) and inp(1) and inp(0); enable_out<='1'; This is a very simple VHDL program to show you how you can add VHDL code to your Spartan3E LabVIEW FPGA project. In the tab Execution Control check the option Single-Cycle Timed Loop Allowed and click the OK button.

Now place two FPGA I/O Node s on the block diagram of your vi. Build an array with SW0, SW1, SW2 and SW3 as inputs. Connect the output of this build array function to the input of the HDLNode called inp. Connect now LED0 to outp of the HDLNode.

Step 3: Running the VI. Now go to the Project Explorer. Right mouse click on FPGA Target then select Properties. Be sure to check in this window Run when loaded to FPGA before compiling the vi. Go back to Project Explorer. Do a right mouse click on FPGA_VI_VHDL. Select Compiler and let the LabVIEW FPGA code compile. When the compilation completed go to Project Explorer and do a right mouse click on FPGA_VI_VHDL and select Download VI to Flash Memory

When the download completed push the reset button on the Xilinx Spartan3E board and the application should run. Enjoy. Vincent Claes XIOS Hogeschool Limburg Department of Industrial Sciences and Technology Universitaire Campus - Agoralaan Gebouw H B-3590 Diepenbeek Belgium vincent.claes@xios.be tel.: +32 11 26 00 39 fax: +32 11 26 00 54 mobile: +32 478 35 38 49