UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 17757

LogiCORE PCI - How do I retarget the PING Example to a Virtex-II device?

Description

General Description:

The PING Example in the PCI Core download targets the XCV300BG432-6. How do I target it to another device ?

Solution

Here are the steps needed to retarget the example to a different device (Example 2V1000 -6 FG456) using Verilog language.

1. Download the latest build of the core.

2. Copy the contents of "pcim_lc_66_3_s.v" in folder WRAP to the file "pcim_lc.v" in folder XPCI.

(See the Implementation Guide for appropriate file names. It is important that the correct wrapper file is chosen for the device and core combination that is being targeted. Table 2-1 of the Implementation Guide found in the docs directory of the core download will give more details.)

3. Open the "cfg_ping.v" file (in folder example\source) and change the line:

assign CFG[254:245] = 10'b0000000000;

to

assign CFG[254:245] = 10'b0001000000;

Bit CFG[251] enables Virtex-II as the target device of the design. Not doing this when targeting a Virtex-II or Virtex-II Pro will result in the map error described in (Xilinx Answer 10979).

4. In the "example\synthesis" directory, edit the file "run_xst.cmd", change the "-p v300bg432-6" to "-p 2v1000fg456-5".

5. Run the script "run_xst.bat" in the "example\synthesis" folder. This will synthesize the design.

6. Edit the file called "run_xilinx.bat" in the "example\xilinx" folder to match the following:

set XVKMA_CORE_LUT_PACK=TRUE

set XIL_PAR_MAX_PLOAD=100

set XIL_GUIDE_CONNECTRPT=1

ngdbuild -sd ..\..\src\xpci -sd ..\synthesis -uc ..\..\src\ucf\2v1000fg456_64_66.ucf pcim_top

map -pr b pcim_top.ngd -o pcim_top.ncd pcim_top.pcf

par -gm exact -gf ..\..\src\guide\2v1000fg456_64_66.ncd -pl 5 -rl 5 -w pcim_top.ncd pcim_top_routed pcim_top.pcf

trce -v 100 pcim_top_routed.ncd pcim_top.pcf

ngdanno -o pcim_top_routed.nga -p pcim_top.pcf pcim_top_routed.ncd

ngd2ver -w pcim_top_routed.nga

(See the Implementation Guide for appropriate file names.)

7. Execute the script "run_xilinx.bat". This will implement the design.

Here are the steps needed to retarget the example to a different device (Example NV -6 FG456) using VHDL language.

1. Download the latest build of the core.

2. Copy the contents of "pcim_lc_66_3_s.vhd" in folder WRAP to the file "pcim_lc.vhd" in folder XPCI.

(See the Implementation Guide for appropriate file names. It is important that the correct wrapper file is chosen for the device and core combination that is being targeted. Table 2-1 of the Implementation Guide found in the docs directory of the core download will give more details.)

3. Open the "cfg_ping.vhd" file (in folder example\source) and change the line:

cfg_int(254 downto 245) <= "0000000000";

to

cfg_int(254 downto 245) <= "0001000000";

Bit CFG[251] enables Virtex-II as the target device of the design. Not doing this when targeting a Virtex-II or Virtex-II Pro will result in the map error described in (Xilinx Answer 10979).

4. In the "example\synthesis" directory edit the file "run_xst.cmd", change the "-p v300bg432-6" to "-p 2v1000fg456-5".

5. Run the script "run_xst.bat" in the "example\synthesis" folder. This will synthesize the design.

6. Edit the file called "run_xilinx.bat" in the "example\xilinx" folder to match the following:

set XVKMA_CORE_LUT_PACK=TRUE

set XIL_PAR_MAX_PLOAD=100

set XIL_GUIDE_CONNECTRPT=1

ngdbuild -sd ..\..\src\xpci -sd ..\synthesis -uc ..\..\src\ucf\2v1000fg456_64_66.ucf pcim_top

map -pr b pcim_top.ngd -o pcim_top.ncd pcim_top.pcf

par -gm exact -gf ..\..\src\guide\2v1000fg456_64_66.ncd -pl 5 -rl 5 -w pcim_top.ncd pcim_top_routed pcim_top.pcf

trce -v 100 pcim_top_routed.ncd pcim_top.pcf

ngdanno -o pcim_top_routed.nga -p pcim_top.pcf pcim_top_routed.ncd

ngd2vhdl -w pcim_top_routed.nga

(See the Implementation Guide for appropriate file names.)

7. Execute the script "run_xilinx.bat". This will implement the design.

A similar procedure can be followed to retarget the example design to a Virtex-II Pro (2VP7-FF672-7) device.

The main changes will be:

- Step 4: Part number will be 2vp7-ff672-7.

- Step 6:

- The name of the ".ucf" file will be "2vp7ff672_64_66.ucf".

- "-gm exact" and "-gf <filename>" need to be removed from the PAR command line.

Example: par -pl 5 -rl 5 -w pcim_top.ncd pcim_top_routed pcim_top.pcf

AR# 17757
Date Created 09/03/2007
Last Updated 12/15/2012
Status Active
Type General Article