Giter Site home page Giter Site logo

axi_riscv_atomics's Introduction

AXI Adapter(s) for RISC-V Atomic Operations

Disclaimer: This repository is under active development and not yet stabilized. Use only if you know what you are doing and are prepared to adapt to wide-reaching changes as the project evolves. Limited support is available for the latest v0.x version, but only for the latest, and we give no backwards compatibility guarantees for versions before v1.0.

The modules in this repository implement atomic operations (AMOs) for RISC-V processors ("A" extension version 2.0) on the AXI protocol. The modules adheres to the RISC-V Weak Memory Ordering (RVWMO) memory consistency model (version 0.1).

Usage

Place one of the following modules in your memory hierarchy between an AXI master and slave, where the slave owns a particular memory location (e.g., exclusive access to a memory controller or adherence to a cache coherency protocol). Choose depending on your needs:

  • axi_riscv_lrsc tracks memory reservations for LR/SC, forwards only successful SCs, and responds accordingly. This is sufficient to support LR/SC if the processor encodes them as AXI exclusive memory accesses. Downstream modules do not have to support AXI exclusive memory accesses.

  • axi_riscv_atomics implements all RISC-V AMOs in addition to LR/SC. The processor needs to encode RISC-V AMOs as AXI atomic transactions (AtomicSwap for AMOSWAP, AtomicLoad with the corresponding opcode for all other AMOs). This is sufficient to support the entire RISC-V "A" extension. Downstream modules do not have to support AXI atomic transactions or exclusive memory accesses.

For each of those modules we additionally provide a wrapper (_wrap filename suffix) that exposes SystemVerilog interfaces instead of logic ports.

axi_riscv_atomics's People

Contributors

andreaskurth avatar msfschaffner avatar samuelriedel avatar zarubaf avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  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.