Changes between Version 14 and Version 15 of WARPLab/QuickStart


Ignore:
Timestamp:
Mar 29, 2013, 9:32:58 AM (11 years ago)
Author:
chunter
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WARPLab/QuickStart

    v14 v15  
    11[[TracNav(WARPLab7/TOC)]]
    22
    3 = WARPLab 7: Quick Start =
     3= Quick Start =
    44
    55=== System Requirements ===
    66 * Review the [wiki:../Requirements WARPLab 7 System Requirements]
    77
    8 === WARPLab 7 Framework ===
    9  1. Download the WARPLab 7 reference design m-code from [source:/ResearchApps/PHY/WARPLAB/WARPLab7/ /ResearchApps/PHY/WARPLAB/WARPLab7/]
    10   * Best to use SVN, to make updates easy: {{{svn co http://warpproject.org/svn/WARP/ResearchApps/PHY/WARPLAB/WARPLab7/}}}
    11  1. Open MATLAB and change to the {{{WARPLab7/M_Code_Reference}}} directory
    12  1. Run {{{wl_setup}}} on the MATLAB command line
    13  1. Follow the prompts to configure your WARPLab environment
     8=== Setting up the WARPLab 7 Framework ===
     9 1. Download the latest WARPLab Reference Design Release ([wiki:WARPLab7/Downloads Download]) and unzip it to a location of your choosing.
     10 1. Open MATLAB and change the current path to the {{{M_Code_Reference}}} directory from the downloaded archive.
     11 1. Run {{{wl_setup}}} on the MATLAB command line.
     12 1. Follow the prompts to configure your WARPLab environment.
    1413
    1514=== Hardware Setup ===
    1615 * For your PC:
    17   1. Assign one of your NICs to the manual IP address specified in the wl_setup step above (default 10.0.0.250)
     16  1. Assign one of your NICs to the manual IP address specified in the {{{wl_setup}}} step above (default 10.0.0.250)
    1817  1. Connect the NIC to a 1Gb Ethernet switch
    1918 * For WARP v3 nodes:
    2019  1. Connect ETH_A to the 1Gb Ethernet switch your PC is connected to.
    2120  1. Set the user DIP switch to a unique value on each node, starting at 0
    22   1. Configure the FPGA with the reference design. The reference bitstreams are included in the Reference_Bitstreams folder. Unzip {{{download.zip}}} to find {{{download.bit}}} and {{{download.bin}}} (see the [wiki:howto/SD_Config SD config howto] for help using the .bin file).
     21  1. Configure the FPGA with the Reference Design. The reference bitstreams are included in the Bitstreams_Reference folder from the downloaded archive. Find the bitstream appropriate for your hardware and program the .bit file to the board using the Xilinx iMPACT tool. The .bin file can be used to configure an SD card with the design (see the [wiki:howto/SD_Config SD config howto] for help using the .bin file).
    2322   1. On boot each node will display its node ID on the right hex display
    2423   1. The bottom green LED will blink until the Ethernet link is up
     
    2625
    2726=== Examples ===
    28  1. Confirm everything is ready by running {{{wl_initNodes(N)}}}, where N is the number of WARP v3 nodes
    29  1. Try one of the example scripts in {{{M_Code_Examples}}}
     27 1. Confirm everything is ready by copying and pasting the following lines to the MATLAB command line:
     28{{{
     29clear
     30N = 1;
     31nodes = wl_initNodes(N);
     32wl_nodeCmd(nodes,'identify');
     33disp(nodes)
     34}}}
     35Note: {{{N}}} can be changed to the number of nodes in your network. When you run these lines of code, you should see the User I/O LEDs on your {{{N}}} nodes blink as a result of the [wiki:WARPLab7/Reference/Commands/Node#identify 'identify'] command. Additionally, you should see your {{{nodes}}} object vector print status messages to the screen. For {{{N = 2}}}, your status display should be similar to
     36{{{
     37Displaying properties of 2 wl_node objects:
     38|  ID |  WLVER |  HWVER |    Serial # |  Ethernet MAC Addr |
     39------------------------------------------------------------
     40|   0 |  7.0.0 |      3 |  W3-a-00027 |  40-D8-55-04-20-36 |
     41------------------------------------------------------------
     42|   1 |  7.0.0 |      3 |  W3-a-00041 |  40-D8-55-04-20-52 |
     43------------------------------------------------------------
     44}}}
     45
     46 2. Try one of the example scripts in {{{M_Code_Examples}}}
    3047
    3148
     
    3855  1. Add the pnet folder to your MATLAB path. The pnet folder should contain pnet.m and th pnet.mex binary (i.e. pnet.mexw64)
    3956  1. Verify pnet is recognized by running {{{pnet('version');}}} on the MATLAB command line. The output should print the version number (currently 2.0.6d)
     57
     58== Tips ==
     59=== Jumbo Frames ===
     60=== MATLAB Object Oriented Syntax ===