Giter Club home page Giter Club logo

ahcal-axidmatcp's Introduction

Heavy work in progress !

ahcal-axidmatcp

This is supposed to be a generic Zynq 7020 TCP server, that receives data from the axi4-stream infrastructure in the FPGA part and uses the TCP stack on Linux running on the ARM core of the Zynq. The FPGA part also provides a packet generation engine, which packs stream of successive 32-bit numbers to packets of various size (depends on Switches). Alternatively, a feedback loop can be used.

Strongly optimized for outgoing direction (S2MM -> TCP), almost no traffic opposite direction. The project consist of following parts:

  1. VHDL code, that was used as testing environment. It can work either as an echo mode (mm2s->s2mm), or a packet generation mode. PSwitches have a special meaning
    • SW0: data production generation enabled
    • SW1-4: packet size ("0000" = random size <4 kB, "0001" = 256 Bytes, "0010" = 512 bytes, ... "1101" = 1MBytes)
    • SW5: mode of operation ("1" = packet generation, "0" = feadback mode)
    • SW6-7: LED status switch
  2. Linux kernel module, that presents 2 character node in the /dev folder (for reading and writing)
  3. xldas: a TCP server, that reads from the character device (and writes to)
  4. TCP receiving application , that checks for the missing data / data corruption checker

Usage

VHDL part has to be synthesized via Vivado (version 2018.2 used) Petalinux needs following changes:

  • cma=256 parameter to be passed as bootargs. In petalinux: petalinux-config, → DTG Settings → Kernel Bootargs → unset generate boot args automatically, set user set kernel bootargs to "console=ttyPS0,115200 earlyprintk cma=256M"
  • create the module: petalinux-create -t modules -n axidmachar --enable
  • remove the xilinx dma module: petalinux-config -c kernel #takes a while to start. unset → Device Drivers → DMA Engine support → Xilinx AXI DMAS Engine

Performance

  • pseudorandom <4kB packets can be received with 72 MBytes/s (555-605 Mbits/s)
  • 1MB packets packets can be received with 78 MBytes/s (605-650 Mbits/s)

ahcal-axidmatcp's People

Contributors

jkvas avatar eyiliu avatar

Watchers

James Cloos avatar

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.