Installing an ML402 Platform for Ethernet Hardware Co-Simulation. Xilinx DSP
Реклама
Реклама
Installing Your Hardware Co-Simulation Board
Installing Your Hardware Co-Simulation Board
Note:
If installation instructions for your particular platform are not provided here, please refer to the installation instuctions that come with your Platform Kit.
Installing an ML402 Platform for Ethernet Hardware Co-Simulation
The following procedure describes how to install and configure the hardware and software required to run Ethernet Hardware Co-Simulation on an ML402 board.
Assemble the Required Hardware
1.
Xilinx Virtex®-4 SX ML402 Platform which includes the following: a.
Virtex®-4 ML402 platform b. 5V Power Supply bundled with the ML402 Kit c.
CompactFlash Card
2.
You also need the following items on hand: a.
Ethernet network Interface Card (NIC) for the host PC.
b. Ethernet RJ45 Male/Male cable. (May be a Network or Crossover cable.) c.
CompactFlash Reader for the PC.
Install the Software on the Host PC
Make sure the following software is installed on your PC:
•
System Generator version as specified in the current System Generator Release Notes
•
Xilinx ISE® Software version as specified in the current System Generator Release
Notes
•
WinPcap version 4.0, which may be installed through the System Generator installer or obtained from the website at http://www.winpcap.org
.
Setup the Local Area Network on the PC
You are required to have a 10/100 Fast Ethernet or a Gigabit Ethernet Adapter on you PC.
To configure the settings do the following:
System Generator for DSP User Guide
UG640 (v11.4) December 2, 2009 www.xilinx.com
235
Chapter 3: Using Hardware Co-Simulation
1.
As shown below, from the Start menu, select Control Panel, then right-click on Local
Area Connection
, then select Properties.
2.
As shown below, select Internet Protocol (TCP/IP), then click on the Properties button and set the IP Address 192.168.8.2 and Subnet mask to 255.255.255.0. (The last digit of the IP Address must be something other than 1, because 192.168.8.1 is the default IP
address for the ML402. See the topic Load the Sysgen ML402 HW Co-Sim
below for further details.)
236
www.xilinx.com
System Generator for DSP User Guide
UG640 (v11.4) December 2, 2009
Installing Your Hardware Co-Simulation Board
3.
Click on the Configure button, select the Advanced tab, select Flow Control, then select Auto.
4.
Set Speed & Duplex to Auto, then click out using the OK button.
System Generator for DSP User Guide
UG640 (v11.4) December 2, 2009 www.xilinx.com
237
Chapter 3: Using Hardware Co-Simulation
Load the Sysgen ML402 HW Co-Sim Configuration Files
System Generator comes with HW Co-Sim configuration files that first need to be loaded into the ML402 CompactFlash card with a CompactFlash Reader.
1.
Optionally Backup the ML402 Demo Files
The ML402 CompactFlash card comes with a series of demo files that you might want to re-load and exercise later. a.
Connect the CompactFlash Reader to the PC. This is usually done through a USB port.
b. Insert the CompactFlash card into a CompactFlash Reader. c.
Click on the MyComputer icon, then select the Removable Disk drive that represents the CompactFlash Reader.
d. Create or open a backup folder on the PC and copy the content of the
CompactFlash card to that folder for later use.
Note:
For the following steps, 'e:' is assumed to be the drive name associated with the
CompactFlash reader.
2.
Re-Format the CompactFlash Card
The card needs to be re-formatted to a FAT16 file system before the System Generator files can be transferred. You use the mkdosfs utility to format the card. a.
Download the mkdosfs program from the Xilinx URL address: http://www.xilinx.com/products/boards/ml310/current/utilities/mkdosfs.zip.
b. Extract to folder C:/mkdosfs c.
Open a Windows shell by selecting Start > Run..., then type cmd in the Run dialog box and click OK.
d. In the shell, move to the mkdosfs folder: cd C:\mkdosfs
Caution!
In the following step, make sure the drive name (e.g., 'e:' in this case) is specified correctly for the Compact Flash Removable Disk. Otherwise, the information on the mistakenly targeted drive will be erased and the drive will be re-formatted.
e.
Type the following mkdosfs command after the Windows command prompt: mkdosfs -v -F 16 e:
The content of the Compact Flash card should be wiped clean and re-formatted.
3.
Copy the Sysgen configuration files to the Compact Flash card
Note:
For reference, the Sysgen files to be copied are located at the following pathname:
...<sysgen_tree>\plugins\bin\ML402_sysace_cf.zip
Invoke MATLAB on the PC, then enter the following command on the MATLAB
Command Line: unzip(fullfile(xlFindSysgenRoot,'plugins/bin/ML402_sysace_cf.zip'),'e:/')
238
www.xilinx.com
System Generator for DSP User Guide
UG640 (v11.4) December 2, 2009
Installing Your Hardware Co-Simulation Board
The following files and folder should now be listed on the CompactFlash drive:
Optional Step to set the Ethernet MAC Address and the IPv4 Address
Note:
The following step may be necessary if the default MAC and IP addresses conflict with your default network settings, or if you wish to co-simulate two or more ML402 boards concurrently. If not, proceed to the next topic.
After writing the data to the card, you will find two files, mac.dat and ip.dat, in the card root directory. The mac.dat and ip.dat files specify the Ethernet MAC address and IPv4 address associated with the platform, respectively. These addresses are used to uniquely identify a target platform during Ethernet hardware co-simulation. a.
Open mac.dat in a text editor and change the Ethernet MAC address. The MAC address must be specified as a six pair of two-digit hexadecimal separated by colons (e.g. 00:0a:35:11:22:33). All-zeros, broadcast, or multicast MAC addresses are not supported. b. Open ip.dat in a text editor and change the IP address. The IP address must be specified in IPv4 dotted decimal notation (e.g. 192.168.8.1). All-zeros, broadcast, multicast, or loop-back IP address are not supported. After changing the IP address for ML402 platformplatform, update the IP address for the network connection on the PC accordingly as mentioned in topic
. For direct connection, the ML402 and the PC must be on the same subnet. Otherwise, the ML402 IP address should be reachable from the PC and vice versa.
System Generator for DSP User Guide
UG640 (v11.4) December 2, 2009 www.xilinx.com
239
Chapter 3: Using Hardware Co-Simulation
Setup the ML402 Platform
The figure below illustrates the ML402 components of interest in this setup procedure:
1.
Position the ML402 platform so the Virtex®-4 and Xilinx logos are oriented near the top edge of the board.
2.
Make sure the power switch, located in the upper-right corner of the platform, is in the
OFF
position.
3.
As shown below, Eject the CompactFlash card from the CompactFlash Reader.
240
4.
Remove the CompactFlash card from the CompactFlash Reader.
5.
Locate the CompactFlash card slot (on the back side of the ML402 platform), and carefully insert the CompactFlash card with its front label facing away from the platform. The figure below shows the back side of the platform with the ConpactFlash card properly inserted.
www.xilinx.com
System Generator for DSP User Guide
UG640 (v11.4) December 2, 2009
Installing Your Hardware Co-Simulation Board
Note:
The CompactFlash card provided with your platform might differ.
Caution!
Be careful when inserting or removing the CompactFlash card from the slot. Do not force it.
6.
Connect the AC power cord to the power supply brick. Plug the power supply adapter cable into the ML402 board. Plug in the power supply to AC power.
Caution!
Make sure you use an appropriate power supply with corrrect voltage and power ratings.
7.
Using the RJ45 Male/Male Ethernet Cable, connect the Ethernet connector on the
ML402 platform directly to the Ethernet connector on the host PC.
8.
Set the Configuration Address DIP Switches.
As shown below, set the Configuration Address DIP Switches as follows: 1:on, 2:off,
3:off, 4:on, 5:off, 6:on
]
9.
Set the Configuration Source Selector Switch.
System Generator for DSP User Guide
UG640 (v11.4) December 2, 2009 www.xilinx.com
241
Chapter 3: Using Hardware Co-Simulation
As shown below, set the Configuration Source Selector Switch to SYS ACE
242
10. Verify the Configuration Settings a.
Turn the target platform Power switch ON. b. Check the on-board status LEDs to ensure the FPGA is configured. If the configuration succeeded, the DONE LED should be on and all error LEDs should be off.
c.
As shown below, check the information displayed on the 16-character 2-line LCD screen of the board. If no error occurred, the Ethernet MAC address (without colons) should appear on the first line of the display and the IPv4 address should appear on the second line.
d. If the LCD display does not show the information correctly, press the System
ACE™ Reset button to reconfigure the FPGA. e.
Check the status LEDs again to ensure the configuration sequence completed successfully.
11. Verify the Ethernet Interface and Connection Status a.
Connect the Ethernet interface of the board to a network connection, or directly to a host. b. Check the on-board Ethernet status LEDs to make sure the Ethernet interface is attached to an active Ethernet segment. The LEDs should reflect the link speed and the duplex mode at which the interface is operating. The TX and RX leds should flash on and off occasionally depending on the network traffic. If no LED is on, press the CPU Reset button to reset the FPGA, and also examine whether the
Ethernet segment is active.
www.xilinx.com
System Generator for DSP User Guide
UG640 (v11.4) December 2, 2009
Installing Your Hardware Co-Simulation Board
c.
To ensure the platform is reachable by the host, issue ICMP ping from the host to check the connectivity. For example, type "ping 192.168.8.1" on a console to test the connectivity to a platform with IP address 192.168.8.1.
d. The target FPGA listens on the UDP port 9999. Please ensure the underlying network does not block the associated traffic when network-based Ethernet configuration is used. This does not affect point-to-point Ethernet configuration.
System Generator for DSP User Guide
UG640 (v11.4) December 2, 2009 www.xilinx.com
243
Изтегляне
Реклама