GithubHelp home page GithubHelp logo

maxluck518 / ons45-app53-ref_ofshw Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 2.0 23.84 MB

ONetSwitch45 Reference Design(4*rgmii+4*1000-basex)

Tcl 0.23% Verilog 7.57% VHDL 83.11% Makefile 0.01% SystemVerilog 9.08% Shell 0.02%

ons45-app53-ref_ofshw's Introduction

ONetSwitch45 Reference Design

About ONetSwitch

Version

  • Xilinx Vivado 2017.4
  • Xilinx SDNet 2017.4

Features

  • Zynq Processing Sysyem
  • 1G Ethernet IP Core with 2 different Phy (RGMII,1000BASEX)
  • Programmable Packets Parser, FlowTable and Processing Pipeline

AXI Register Space

signal range address
Ethernet0 256k 0x43c00000
Ethernet1 256k 0x43c40000
Ethernet2 256k 0x43c80000
Ethernet3 256k 0x43cc0000
Ethernet4 256k 0x43d00000
Ethernet5 256k 0x43d40000
Ethernet6 256k 0x43d80000
Ethernet7 256k 0x43dc0000
Packet_pipeline 256k 0x43e00000

Getting Started

Quick Started

Just copy all the files in ./ready_to_download/sd_card/ into the FAT partition of SD_card, and start the device.

Started from Source File

1. build the vivado project

Download the repository:

$ git clone https://github.com/maxluck518/ons45-app53-ref_ofshw

Open Vivado 2017.4 and move into the dir downloaded before, then run the following tcl command:

$ source ./onets_7045_8x_ref_ofshw.tcl

Wait until the script completed.

2. Generate boot.bin

  1. Run Synethesis,Implement and Generate bitstream steps in Vivado;

  2. Wait until the Steps completed,Launch Vivado SDK to generate boot.bin and devicetree.dtc

For more details, please refer to the documents: UG973

SDNet Usage

RTL Design

Currently, the project only support for only 1 action for packet forwarding.

Parser

Extact the tcp/ip five-tuple(dst_ip,src_ip,proto,dst_port,src_port)

Lookup Table

key (phy_src_port,dip,sip,proto,dport,sport) mask (wildcard_for_key) value (phy_dst_port)
112 bits 112 bits 8 bits

Action

Based on the value got from the lookup table, Each packet can be sent to the specific phy_port.

For more about SDNet : UG1252, UG1012

Software Agent

The Software Agent is used for downloading flow_entry to the lookup table in SDNet.

Quick Started

Use the Prebuild app download_flow_entry in ./ready_to_download/tools/

1. Create the table_entry_file

Create :

$ touch test.txt

Edit :

$ vim test.txt
2. Download the table_entry
$ ./download_flow_entry test.txt

For more details about the flow_entry format: flow_table

To be continued!

ons45-app53-ref_ofshw's People

Contributors

maxluck518 avatar

Stargazers

Wenhan Do avatar  avatar  avatar

Watchers

James Cloos avatar  avatar

Forkers

zhguanw junganghu

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.