WARP Project Forums - Wireless Open-Access Research Platform

You are not logged in.

#1 2010-Feb-11 18:41:38

sgupta
Administrator
Registered: 2007-Feb-26
Posts: 104

Workshop Labs with FPGAv2

A few people are using the new FPGA boards and want to try the workshop labs on them. The latest workshop code available online is focussed on FPGAv1. Here is how to make a few of the workshop labs work with FPGAv2.

Lab 1 - WARPLab. Use the bitstream for FPGAv2 from the latest WARPLab release (v5.2). All the MATLAB code that is in Workshop Exercises should work with the new bitstream.

Lab 2 - Hardware/XPS Tutorial. An updated version of the tutorial has been posted here. This walks you through building a design for both FPGAv1 or FPGAv2.

Lab 3 - Sweeping Sinusoid. Download the following zip file. It includes a System Generator model for the sweeping sine/cosine, a custom peripheral corresponding to that model (if you don't want to use Sysgen) and the C-code to control the model. The Sysgen design is the same as the Lab 3 files found on the wiki with an update to target the V4. Use this new System Generator model to create the custom peripheral. You should target the XPS project that was created from Lab 2 above. And use the C-code that is in the zip file to control the design. For the steps you can follow the same instructions as the original Lab 3 handout.

Offline

 

#2 2010-Feb-12 11:30:01

sgupta
Administrator
Registered: 2007-Feb-26
Posts: 104

Re: Workshop Labs with FPGAv2

A solution to Lab 2 and 3 is available here.

Offline

 

#3 2010-Feb-12 15:24:41

whitehat09
Member
Registered: 2010-Jan-21
Posts: 48

Re: Workshop Labs with FPGAv2

When I start lab 3 and try to run the sweeping model I receive this error
"??? Undefined variable "com" or class "com.xilinx.sysgen.XFixJavaLoader.setClassLoader"."

Sysgen 10.1 is installed and using matlab 2008a.

Offline

 

#4 2010-Feb-12 15:28:16

murphpo
Administrator
From: Mango Communications
Registered: 2006-Jul-03
Posts: 5159

Re: Workshop Labs with FPGAv2

-Make sure you have Sysgen 10.1.3 (run 'xlversion' in MATLAB; it should print 10.1.3.1386)

-Refer to Xilinx answer 31736 (http://www.xilinx.com/support/answers/31736.htm). For 10.1.3, the program will be named sysgengui10_1_3.exe.

Offline

 

#5 2010-Feb-12 16:13:36

whitehat09
Member
Registered: 2010-Jan-21
Posts: 48

Re: Workshop Labs with FPGAv2

ok got it working. I have the correct version '10.1.3.1386' but I must have forgotten to choose matlab for system generator.

Offline

 

#6 2010-Feb-17 15:03:28

whitehat09
Member
Registered: 2010-Jan-21
Posts: 48

Re: Workshop Labs with FPGAv2

At the end of lab 3 you show a spectrogram from the output of a SA. Im interested in doing the same thing but with matlab, I dont see any real issues with just setting 1 warp board as Rx and plotting it except the board needs to know what channel to look at (i.e. warplab_setRadioParameter(udp_node2,CARRIER_CHANNEL,CarrierChannel);). Is there a simple way of having the board Rx a larger band of frequencies? sorry if this is a naive question.

Offline

 

#7 2010-Feb-17 15:37:26

murphpo
Administrator
From: Mango Communications
Registered: 2006-Jul-03
Posts: 5159

Re: Workshop Labs with FPGAv2

We used a Wi-Spy (from metageek) for those plots. It's a great low cost (and, of course, low resolution) USB spectrum analyzer.

The radio board will capture ~40MHz of spectrum at once, so you'd need at least two tuned to different channels to cover the Wi-Fi bands.

Offline

 

Board footer