xtp147 - kc705 ethernet design creation€¦ · run ethernet example design click start note:...

57
October 2012 KC705 Ethernet Design Creation XTP147

Upload: others

Post on 23-Sep-2020

6 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: XTP147 - KC705 Ethernet Design Creation€¦ · Run Ethernet Example Design Click Start Note: Presentation applies to the KC705 . Run Ethernet Example Design Open your Network Connections

October 2012

KC705 Ethernet Design Creation

XTP147

Page 2: XTP147 - KC705 Ethernet Design Creation€¦ · Run Ethernet Example Design Click Start Note: Presentation applies to the KC705 . Run Ethernet Example Design Open your Network Connections

© Copyright 2012 Xilinx, Inc. All Rights Reserved. XILINX, the Xilinx logo, the Brand Window and other designated brands included herein are trademarks of Xilinx, Inc. All other trademarks are the property of their respective owners. NOTICE OF DISCLAIMER: The information disclosed to you hereunder (the “Information”) is provided “AS-IS” with no warranty of any kind, express or implied. Xilinx does not assume any liability arising from your use of the Information. You are responsible for obtaining any rights you may require for your use of this Information. Xilinx reserves the right to make changes, at any time, to the Information without notice and at its sole discretion. Xilinx assumes no obligation to correct any errors contained in the Information or to advise you of any corrections or updates. Xilinx expressly disclaims any liability in connection with technical support or assistance that may be provided to you in connection with the Information. XILINX MAKES NO OTHER WARRANTIES, WHETHER EXPRESS, IMPLIED, OR STATUTORY, REGARDING THE INFORMATION, INCLUDING ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NONINFRINGEMENT OF THIRD-PARTY RIGHTS.

Revision History

Date Version Description 10/23/12 4.0 Regenerated for 14.3.

07/25/12 3.0 Regenerated for 14.2. Added AR50886.

05/08/12 2.0 Regenerated for 14.1

01/18/12 1.0 Initial version for 13.4. Applied AR45527.

Page 3: XTP147 - KC705 Ethernet Design Creation€¦ · Run Ethernet Example Design Click Start Note: Presentation applies to the KC705 . Run Ethernet Example Design Open your Network Connections

Overview KC705 Board KC705 Setup Generate RGMII Ethernet Example Design Modifications to Example Design Compile Example Design Run RGMII Ethernet Example Design Run SGMII Ethernet Example Design References

Note: This presentation applies to the KC705

Page 4: XTP147 - KC705 Ethernet Design Creation€¦ · Run Ethernet Example Design Click Start Note: Presentation applies to the KC705 . Run Ethernet Example Design Open your Network Connections

Kintex-7 Ethernet Capability KC705 Supports MII, GMII, RGMII, and SGMII Capability – RGMII demonstrated in this tutorial – Board TX to Host

LogiCORE Ethernet Example Design – RDF0164.zip – Available through http://www.xilinx.com/kc705

LogiCORE IP Tri-Mode Ethernet MAC – See UG777 for details

Note: Presentation applies to the KC705

Page 5: XTP147 - KC705 Ethernet Design Creation€¦ · Run Ethernet Example Design Click Start Note: Presentation applies to the KC705 . Run Ethernet Example Design Open your Network Connections

Xilinx KC705 Board

Page 6: XTP147 - KC705 Ethernet Design Creation€¦ · Run Ethernet Example Design Click Start Note: Presentation applies to the KC705 . Run Ethernet Example Design Open your Network Connections

ISE Software Requirement Xilinx ISE 14.3 software

Note: Presentation applies to the KC705

Page 7: XTP147 - KC705 Ethernet Design Creation€¦ · Run Ethernet Example Design Click Start Note: Presentation applies to the KC705 . Run Ethernet Example Design Open your Network Connections

ISE Software Requirements IP licenses are needed to compile the design in this tutorial: – LogiCORE, Ethernet AVB Endpoint, Evaluation License – LogiCORE, Tri-Mode Ethernet MAC, Evaluation License – LogiCORE, Tri-Mode Ethernet Media Access Controller, Evaluation License – Available free of charge at http://www.xilinx.com/getlicense

Page 8: XTP147 - KC705 Ethernet Design Creation€¦ · Run Ethernet Example Design Click Start Note: Presentation applies to the KC705 . Run Ethernet Example Design Open your Network Connections

ChipScope Pro Software Requirement Xilinx ChipScope Pro 14.3 software

Note: Presentation applies to the KC705

Page 9: XTP147 - KC705 Ethernet Design Creation€¦ · Run Ethernet Example Design Click Start Note: Presentation applies to the KC705 . Run Ethernet Example Design Open your Network Connections

ChipScope Pro Software Requirement Wireshark Protocol Analyzer available at http://www.wireshark.org/

Note: Presentation applies to the KC705

Page 10: XTP147 - KC705 Ethernet Design Creation€¦ · Run Ethernet Example Design Click Start Note: Presentation applies to the KC705 . Run Ethernet Example Design Open your Network Connections

Generate Ethernet Example Design Open the CORE Generator

Start → All Programs → Xilinx Design Tools → ISE Design Suite 14.3 → ISE Design Tools → 32-bit Tools → CORE Generator

Create a new project; select File → New Project

Note: Presentation applies to the KC705

Page 11: XTP147 - KC705 Ethernet Design Creation€¦ · Run Ethernet Example Design Click Start Note: Presentation applies to the KC705 . Run Ethernet Example Design Open your Network Connections

Generate Ethernet Example Design Create a project in a new directory named: – kc705_ethernet

Select Part Set the Part (as shipped on the KC705): – Family: Kintex7 – Device: xc7k325t – Package: ffg900 – Speed Grade: -2

Select Generation

Note: Presentation applies to the KC705

Page 12: XTP147 - KC705 Ethernet Design Creation€¦ · Run Ethernet Example Design Click Start Note: Presentation applies to the KC705 . Run Ethernet Example Design Open your Network Connections

Generate Ethernet Example Design Under Generation – Set the Design Entry

to Verilog

Click OK

Note: Presentation applies to the KC705

Page 13: XTP147 - KC705 Ethernet Design Creation€¦ · Run Ethernet Example Design Click Start Note: Presentation applies to the KC705 . Run Ethernet Example Design Open your Network Connections

Generate Ethernet Example Design Under Communications and Networking → Ethernet, right click on Tri Mode Ethernet MAC, v5.4 – Select Customize and Generate

Note: Presentation applies to the KC705

Page 14: XTP147 - KC705 Ethernet Design Creation€¦ · Run Ethernet Example Design Click Start Note: Presentation applies to the KC705 . Run Ethernet Example Design Open your Network Connections

Generate Ethernet Example Design Make the following settings – Set Component Name:

kc705_ethernet_rgmii – PHY Interface: RGMII – De-select Half Duplex,

Enable AVB, Frame Filter, and Statistics Counters

– Click Generate

Note: Presentation applies to the KC705

Page 15: XTP147 - KC705 Ethernet Design Creation€¦ · Run Ethernet Example Design Click Start Note: Presentation applies to the KC705 . Run Ethernet Example Design Open your Network Connections

Generate Ethernet Example Design After the Ethernet core finishes generating, click Close on the Datasheet window

Note: Presentation applies to the KC705

Page 16: XTP147 - KC705 Ethernet Design Creation€¦ · Run Ethernet Example Design Click Start Note: Presentation applies to the KC705 . Run Ethernet Example Design Open your Network Connections

Generate Ethernet Example Design Ethernet design appears in Project IP

Note: Presentation applies to the KC705

Page 17: XTP147 - KC705 Ethernet Design Creation€¦ · Run Ethernet Example Design Click Start Note: Presentation applies to the KC705 . Run Ethernet Example Design Open your Network Connections

Modify Ethernet Design As per AR45527, the design must be modified – Open the file: <design path>/<design name>/example_design/

kc705_ethernet_rgmii_example_design.ucf – Set the speed grade to -2

Page 18: XTP147 - KC705 Ethernet Design Creation€¦ · Run Ethernet Example Design Click Start Note: Presentation applies to the KC705 . Run Ethernet Example Design Open your Network Connections

Compile Example Design Start a ISE Design Suite Command Prompt and enter these commands:

cd C:\kc705_ethernet\kc705_ethernet_rgmii\implement implement.bat

Note: Presentation applies to the KC705

Page 19: XTP147 - KC705 Ethernet Design Creation€¦ · Run Ethernet Example Design Click Start Note: Presentation applies to the KC705 . Run Ethernet Example Design Open your Network Connections

KC705 Setup

Connect a USB Type-A to Micro-B cable to the USB JTAG (Digilent) connector on the KC705 board – Connect this cable to your PC – Power on the KC705 board

Page 20: XTP147 - KC705 Ethernet Design Creation€¦ · Run Ethernet Example Design Click Start Note: Presentation applies to the KC705 . Run Ethernet Example Design Open your Network Connections

KC705 Setup

Connect a Ethernet cable to the KC705 – Connect this cable to your PC

Page 21: XTP147 - KC705 Ethernet Design Creation€¦ · Run Ethernet Example Design Click Start Note: Presentation applies to the KC705 . Run Ethernet Example Design Open your Network Connections

KC705 Setup Set S11 to 1100 (1 = on, Position 1 → Position 4) This selects Gigabit Ethernet, with the packet generator off

Page 22: XTP147 - KC705 Ethernet Design Creation€¦ · Run Ethernet Example Design Click Start Note: Presentation applies to the KC705 . Run Ethernet Example Design Open your Network Connections

Run Ethernet Example Design Open ChipScope Pro and select JTAG Chain → Digilent USB Cable… (1) Verify 30 MHz operation and click OK (2)

Note: Presentation applies to the KC705

1

2

Page 23: XTP147 - KC705 Ethernet Design Creation€¦ · Run Ethernet Example Design Click Start Note: Presentation applies to the KC705 . Run Ethernet Example Design Open your Network Connections

Run Ethernet Example Design After the design compiles, open ChipScope Pro Analyzer – Click OK (1)

Note: Presentation applies to the KC705

1

Page 24: XTP147 - KC705 Ethernet Design Creation€¦ · Run Ethernet Example Design Click Start Note: Presentation applies to the KC705 . Run Ethernet Example Design Open your Network Connections

Run Ethernet Example Design Select Device → DEV:0 MyDevice0 (XC7K325T)… → Configure… Select <Design Path>\kc705_ethernet_rgmii\ implement\results\routed.bit

Note: Presentation applies to the KC705

Page 25: XTP147 - KC705 Ethernet Design Creation€¦ · Run Ethernet Example Design Click Start Note: Presentation applies to the KC705 . Run Ethernet Example Design Open your Network Connections

Run Ethernet Example Design Open Wireshark and select Capture → Options…

Page 26: XTP147 - KC705 Ethernet Design Creation€¦ · Run Ethernet Example Design Click Start Note: Presentation applies to the KC705 . Run Ethernet Example Design Open your Network Connections

Run Ethernet Example Design Select your PC’s Gigabit Ethernet connection; click on Capture filter

Note: Presentation applies to the KC705

Page 27: XTP147 - KC705 Ethernet Design Creation€¦ · Run Ethernet Example Design Click Start Note: Presentation applies to the KC705 . Run Ethernet Example Design Open your Network Connections

Run Ethernet Example Design Type in the following filter and click OK:

Ethernet address da:01:02:03:04:05 ether host da:01:02:03:04:05

Note: Presentation applies to the KC705

Page 28: XTP147 - KC705 Ethernet Design Creation€¦ · Run Ethernet Example Design Click Start Note: Presentation applies to the KC705 . Run Ethernet Example Design Open your Network Connections

Run Ethernet Example Design Click Start

Note: Presentation applies to the KC705

Page 29: XTP147 - KC705 Ethernet Design Creation€¦ · Run Ethernet Example Design Click Start Note: Presentation applies to the KC705 . Run Ethernet Example Design Open your Network Connections

Run Ethernet Example Design Open your Network Connections control panel Right click on the Gigabit network connection and select Status The status dialog will show you the speed and number of packets

Note: Presentation applies to the KC705

Page 30: XTP147 - KC705 Ethernet Design Creation€¦ · Run Ethernet Example Design Click Start Note: Presentation applies to the KC705 . Run Ethernet Example Design Open your Network Connections

Run Ethernet Example Design Wireshark should show no packets

Page 31: XTP147 - KC705 Ethernet Design Creation€¦ · Run Ethernet Example Design Click Start Note: Presentation applies to the KC705 . Run Ethernet Example Design Open your Network Connections

Run Ethernet Example Design Set S11 to 1110 (1 = on, Position 1 → Position 4) for a moment to run the packet generator Set S11 back to 1100

Page 32: XTP147 - KC705 Ethernet Design Creation€¦ · Run Ethernet Example Design Click Start Note: Presentation applies to the KC705 . Run Ethernet Example Design Open your Network Connections

Run Ethernet Example Design The status dialog shows a few packets received

Note: Presentation applies to the KC705

Page 33: XTP147 - KC705 Ethernet Design Creation€¦ · Run Ethernet Example Design Click Start Note: Presentation applies to the KC705 . Run Ethernet Example Design Open your Network Connections

Run Ethernet Example Design Wireshark captures and displays the actual packets

Page 34: XTP147 - KC705 Ethernet Design Creation€¦ · Run Ethernet Example Design Click Start Note: Presentation applies to the KC705 . Run Ethernet Example Design Open your Network Connections

Run Ethernet Example Design Select a packet in the upper panel

Page 35: XTP147 - KC705 Ethernet Design Creation€¦ · Run Ethernet Example Design Click Start Note: Presentation applies to the KC705 . Run Ethernet Example Design Open your Network Connections

Run Ethernet Example Design Use the arrow keys to move to the next packet

Page 36: XTP147 - KC705 Ethernet Design Creation€¦ · Run Ethernet Example Design Click Start Note: Presentation applies to the KC705 . Run Ethernet Example Design Open your Network Connections

Run Ethernet Example Design Viewing several packets, you can see a simple changing pattern

Page 37: XTP147 - KC705 Ethernet Design Creation€¦ · Run Ethernet Example Design Click Start Note: Presentation applies to the KC705 . Run Ethernet Example Design Open your Network Connections

Run KC705 SGMII Ethernet Design

Page 38: XTP147 - KC705 Ethernet Design Creation€¦ · Run Ethernet Example Design Click Start Note: Presentation applies to the KC705 . Run Ethernet Example Design Open your Network Connections

Download KC705 SGMII Ethernet Design Open the KC705 Ethernet Design Files (14.3 C) – Available through http://www.xilinx.com/kc705 – Extract the file, “kc705_sgmii.bit” only to C:\kc705_ethernet

Note: Presentation applies to the KC705

Page 39: XTP147 - KC705 Ethernet Design Creation€¦ · Run Ethernet Example Design Click Start Note: Presentation applies to the KC705 . Run Ethernet Example Design Open your Network Connections

Xilinx KC705 Board For SGMII, J29 and J30 must be connected to pins 2-3

Note: Presentation applies to the KC705

Page 40: XTP147 - KC705 Ethernet Design Creation€¦ · Run Ethernet Example Design Click Start Note: Presentation applies to the KC705 . Run Ethernet Example Design Open your Network Connections

KC705 Setup Set S11 to 0000 (1 = on, Position 1 → Position 4) This turns the packet generator off

Page 41: XTP147 - KC705 Ethernet Design Creation€¦ · Run Ethernet Example Design Click Start Note: Presentation applies to the KC705 . Run Ethernet Example Design Open your Network Connections

Run Ethernet Example Design Select Device → DEV:0 MyDevice0 (XC7K325T)… → Configure… Select <Design Path>\ready_for_download\kc705_sgmii.bit

Note: Presentation applies to the KC705

Page 42: XTP147 - KC705 Ethernet Design Creation€¦ · Run Ethernet Example Design Click Start Note: Presentation applies to the KC705 . Run Ethernet Example Design Open your Network Connections

Run Ethernet Example Design Open Wireshark and select Capture → Options…

Page 43: XTP147 - KC705 Ethernet Design Creation€¦ · Run Ethernet Example Design Click Start Note: Presentation applies to the KC705 . Run Ethernet Example Design Open your Network Connections

Run Ethernet Example Design Select your PC’s Gigabit Ethernet connection; click on Capture filter

Page 44: XTP147 - KC705 Ethernet Design Creation€¦ · Run Ethernet Example Design Click Start Note: Presentation applies to the KC705 . Run Ethernet Example Design Open your Network Connections

Run Ethernet Example Design Type in the following filter and click OK:

Ethernet address da:01:02:03:04:05 ether host da:01:02:03:04:05

Note: Presentation applies to the KC705

Page 45: XTP147 - KC705 Ethernet Design Creation€¦ · Run Ethernet Example Design Click Start Note: Presentation applies to the KC705 . Run Ethernet Example Design Open your Network Connections

Run Ethernet Example Design Click Start

Page 46: XTP147 - KC705 Ethernet Design Creation€¦ · Run Ethernet Example Design Click Start Note: Presentation applies to the KC705 . Run Ethernet Example Design Open your Network Connections

Run Ethernet Example Design Open your Network Connections control panel Right click on the Gigabit network connection and select Status The status dialog will show you the speed and number of packets

Note: Ethernet connection was reset to clear previous packets

Page 47: XTP147 - KC705 Ethernet Design Creation€¦ · Run Ethernet Example Design Click Start Note: Presentation applies to the KC705 . Run Ethernet Example Design Open your Network Connections

Run Ethernet Example Design Wireshark should show no packets

Page 48: XTP147 - KC705 Ethernet Design Creation€¦ · Run Ethernet Example Design Click Start Note: Presentation applies to the KC705 . Run Ethernet Example Design Open your Network Connections

Run Ethernet Example Design Set S11 to 0010 (1 = on, Position 1 → Position 4) for a moment to run the packet generator Set S11 back to 0000

Page 49: XTP147 - KC705 Ethernet Design Creation€¦ · Run Ethernet Example Design Click Start Note: Presentation applies to the KC705 . Run Ethernet Example Design Open your Network Connections

Run Ethernet Example Design The status dialog shows a few packets received

Note: Presentation applies to the KC705

Page 50: XTP147 - KC705 Ethernet Design Creation€¦ · Run Ethernet Example Design Click Start Note: Presentation applies to the KC705 . Run Ethernet Example Design Open your Network Connections

Run Ethernet Example Design Wireshark captures and displays the actual packets

Page 51: XTP147 - KC705 Ethernet Design Creation€¦ · Run Ethernet Example Design Click Start Note: Presentation applies to the KC705 . Run Ethernet Example Design Open your Network Connections

Run Ethernet Example Design Select a packet in the upper panel

Page 52: XTP147 - KC705 Ethernet Design Creation€¦ · Run Ethernet Example Design Click Start Note: Presentation applies to the KC705 . Run Ethernet Example Design Open your Network Connections

Run Ethernet Example Design Use the arrow keys to move to the next packet

Page 53: XTP147 - KC705 Ethernet Design Creation€¦ · Run Ethernet Example Design Click Start Note: Presentation applies to the KC705 . Run Ethernet Example Design Open your Network Connections

Run Ethernet Example Design Viewing several packets, you can see a simple changing pattern

Page 54: XTP147 - KC705 Ethernet Design Creation€¦ · Run Ethernet Example Design Click Start Note: Presentation applies to the KC705 . Run Ethernet Example Design Open your Network Connections

References

Page 55: XTP147 - KC705 Ethernet Design Creation€¦ · Run Ethernet Example Design Click Start Note: Presentation applies to the KC705 . Run Ethernet Example Design Open your Network Connections

References Tri-Mode Ethernet Media Access Controller – Tri-Mode Ethernet MAC Product Overview

• http://www.xilinx.com/products/intellectual-property/TEMAC.htm

– Tri-Mode Ethernet MAC Data Sheet – DS818 • http://www.xilinx.com/support/documentation/ip_documentation/

ds818_tri_mode_eth_mac.pdf

– LogiCORE IP Tri-Mode Ethernet MAC User Guide – UG777 • http://www.xilinx.com/support/documentation/ip_documentation/

tri_mode_eth_mac/v5_3/ug777_tri_mode_eth_mac.pdf

Page 56: XTP147 - KC705 Ethernet Design Creation€¦ · Run Ethernet Example Design Click Start Note: Presentation applies to the KC705 . Run Ethernet Example Design Open your Network Connections

Documentation

Page 57: XTP147 - KC705 Ethernet Design Creation€¦ · Run Ethernet Example Design Click Start Note: Presentation applies to the KC705 . Run Ethernet Example Design Open your Network Connections

Documentation Kintex-7 – Kintex-7 FPGA Family

• http://www.xilinx.com/products/silicon-devices/fpga/kintex-7/index.htm

KC705 Documentation – Kintex-7 FPGA KC705 Evaluation Kit

• http://www.xilinx.com/products/boards-and-kits/EK-K7-KC705-G.htm

– KC705 Getting Started Guide • http://www.xilinx.com/support/documentation/boards_and_kits/

ug883_K7_KC705_Eval_Kit.pdf

– KC705 User Guide • http://www.xilinx.com/support/documentation/boards_and_kits/

ug810_KC705_Eval_Bd.pdf

– KC705 Reference Design User Guide • http://www.xilinx.com/support/documentation/boards_and_kits/

ug845_Ref_Design.pdf