Giter Club home page Giter Club logo

Comments (5)

alexforencich avatar alexforencich commented on May 28, 2024

Define what you mean by "byte swapping".

from cocotbext-axi.

elgorwi avatar elgorwi commented on May 28, 2024

With byte swapping I mean controlling how the data bytes are presented left to right on the tdata/tkeep signals. Would be nice if both little endian and big endian was supported.

from cocotbext-axi.

alexforencich avatar alexforencich commented on May 28, 2024

The AXI stream specification is very specific about byte ordering:

image

I'm already bending the spec by supporting byte sizes of other than 8 bits (which I think is reasonable). However, if your IP expects the first byte to start on a byte lane other than [n:0], then it's not AXI stream compliant, and the most reasonable way forward is to write an HDL shim to convert your IP to AXI stream.

from cocotbext-axi.

elgorwi avatar elgorwi commented on May 28, 2024

OK, understand if you prefer not to introduce non-standard features.
I’ll use a shim to work around the issue.
Thanks

from cocotbext-axi.

alexforencich avatar alexforencich commented on May 28, 2024

Let me put it to you this way: I'm not necessarily opposed to it, but I'll have to be convinced it would be a useful feature, and to do that you'll have to overcome 1. the fact that the AXI stream spec is very explicit about byte ordering, and 2. my opinion that big endian makes no sense whatsoever and therefore should never be used, except inside of packet headers that require network byte order. Avalon is a slightly different story as it seems like it supports both orderings, just to make things more confusing.

from cocotbext-axi.

Related Issues (20)

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.