Simulation. Xilinx DSP
Reklāma
Reklāma
Chapter 3: Using Hardware Co-Simulation
Setup the Spartan-3A DSP 1800A Starter Platform
1.
Position the Spartan-3A DSP 1800A Starter Platform so the Xilinx logo is oriented rightside up and located in the lower-right quadrant of the platform.
2.
Make sure the power switch, located in the upper-right corner of the platform, is in the
OFF
position.
3.
If you are using a Xilinx Parallel Cable IV, follow steps 3a through 3d.
a.
Connect the DB25 Plug Connector on the Xilinx Parallel Cable IV to the IEEE-1284 compliant PC Parallel (Printer) Port Connector .
b. Using the narrow (14 pin) 6” High Performance Ribbon cable, connect the pod end of the Xilinx Parallel Cable IV to the JTAG Port (J2) on the Starter Platform.
c.
Connect the attached Power Jack cable to the Keyboard/Mouse connector on the
PC.
d. If necessary, connect the male end of the Keyboard/Mouse cable to the associated female connector on the Xilinx Power Jack cable (splitter cable) .
4.
If you are using a Xilinx Platform Cable USB, follow step 4a and 4b.
a.
Connect the Xilinx Platform Cable USB to a USB port on the PC.
b. Using the narrow (14 pin) 6” High Performance Ribbon cable, connect the pod end of the Xilinx Platform Cable USB to the JTAG Port (J2) on the Starter Platform.
5.
Connect the AC power cord to the power supply brick. Plug the 5V power supply adapter cable into the 5V DC ONLY connector (J5) on the Starter Board. Plug the power supply cord into AC power.
Caution!
Make sure you use an appropriate power supply with correct voltage and power ratings.
6.
Turn the Spartan-3A DSP 1800A Starter Platform POWER switch ON.
Installing a Spartan-3A DSP 3400A Development Platform for Ethernet
Hardware Co-Simulation
The following procedure describes how to install and configure the hardware and software required to run an Spartan-3A DSP 3400A Development Platform Point-to-Point Ethernet
Hardware Co-Simulation.
Assemble the Required Hardware
1.
Xilinx Spartan-3A DSP 3400A Development Platform Kit which includes the following: a.
Spartan-3A DSP 3400A Development Platform b. +12V Power Supply bundled with Board LYR178-101C (Rev C) or
+5 V Power Supply bundled with Board LYR178-101D (Rev D) 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.
260
www.xilinx.com
System Generator for DSP User Guide
UG640 (v11.4) December 2, 2009
Installing Your Hardware Co-Simulation Board
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:
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 the 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 fo ML506. See Load the Sysgen ML506 HW Co-Sim Configuration Files
for further details.).
System Generator for DSP User Guide
UG640 (v11.4) December 2, 2009 www.xilinx.com
261
Chapter 3: Using Hardware Co-Simulation
262
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
263
Chapter 3: Using Hardware Co-Simulation
Load the Sysgen Spartan-3A DSP 3400A HW Co-Sim Configuration Files
System Generator comes with HW Co-Sim configuration files that first need to be loaded into the Spartan-3A DSP 3400A CompactFlash card with a CompactFlash Reader.
1.
Optionally Backup the Spartan-3A DSP 3400A Demo Files
The Spartan-3A DSP 3400A 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\S3ADSP_DB_sysace_cf.zip
Invoke MATLAB on the PC, then enter the following command on the MATLAB
Command Line: unzip(fullfile(xlFindSysgenRoot,'plugins/bin/S3ADSP_DB_sysace_cf.zip'),'e:/')
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 ML506 platforms 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
264
www.xilinx.com
System Generator for DSP User Guide
UG640 (v11.4) December 2, 2009
Installing Your Hardware Co-Simulation Board
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. a.
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 the ML506 platform, update the IP address for the network connection on the PC accordingly as mentioned in the topic
. For direct connection, the ML506 and the PC must be on the same subnet. Otherwise, the ML506 IP address should be reachable from the PC and vice versa.
Setup the Spartan-3A 3400A Development Platform
The figure below illustrates the Spartan-3A 3400A Platform (Rev C) components of interest in this setup procedure:
Ethernet Mode Select jumper (JP2)
Power Switch
+12V Power Connector
Ethernet Port
LYR178-101C (Rev C)
Configuration
Address
DIP Switches (S2)
System ACE
™
Reset Button
Compact Flash Card
LCD
System Generator for DSP User Guide
UG640 (v11.4) December 2, 2009 www.xilinx.com
265
Chapter 3: Using Hardware Co-Simulation
The figure below illustrates the Spartan-3A 3400A Platform (Rev D) components of interest in this setup procedure:
Ethernet Mode Select
Ethernet Port
LYR178-101D (Rev D)
Configuration
Address
DIP Switches (S2)
System ACE
™
Reset Button
LCD
Compact Flash Card
+5V Power Connector
Power Switch
1.
Position the Spartan-3A 3400A Development Platform as shown above with the LCD display at the bottom.
2.
Make sure the power switch is in the OFF position.
3.
As shown below, Eject the CompactFlash card from the CompactFlash Reader.
266
www.xilinx.com
System Generator for DSP User Guide
UG640 (v11.4) December 2, 2009
Installing Your Hardware Co-Simulation Board
4.
Remove the CompactFlash card from the CompactFlash Reader.
5.
Locate the CompactFlash card slot (on the back side of the Spartan-3A 3400A platform) and carefully insert the CompactFlash card with its front label facing away from the platform. The figure below shows the back side of a platform with the ConpactFlash card properly inserted.
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.
If you are using a “Rev C” 3400A Development Platform, plug the +12V power supply adapter cable into the power connector. Plug in the power supply into AC power.
If you are using a “Rev D” 3400A Development Platform, plug the +5V power supply adapter cable into the power connector. Plug in the power supply into AC power.
Caution!
Make sure you use an appropriate power supply with the correct voltage and power ratings.
7.
Using the RJ45 Male/Male Ethernet Cable, connect the Ethernet connector on the
Spartan-3A 3400A platform directly to the Ethernet connector on the host PC.
System Generator for DSP User Guide
UG640 (v11.4) December 2, 2009 www.xilinx.com
267
Chapter 3: Using Hardware Co-Simulation
8.
Set the S2 Configuration Address DIP Switches as follows:
1:off, 2:on, 3:off, 4:on, 5:off, 6:on, 7:on, 8:off
9.
Set the Ethernet Mode Select jumper JP2 to pin 1 and pin 2 (the default GMII).
10. Verify the Configuration Settings a.
Turn the target platform Power switch ON. b. As shown below, check the information displayed on the 16-character 2-line LCD screen of the platform. 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.
c.
If the LCD display does not show the information correctly, press the System
ACE™ Reset button to reconfigure the FPGA.
11. Verify the Ethernet Interface and Connection Status a.
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.
268
b. 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.
For indepth reference information on the Spartan-3A 3400A Development Platform, plese refer to the following online manual: http://www.xilinx.com/bvdocs/ipcenter/user_guide_user_manual/s3a-dsp-3400auserguide.pdf
www.xilinx.com
System Generator for DSP User Guide
UG640 (v11.4) December 2, 2009
Lejupielādēt
Reklāma