Giter Site home page Giter Site logo

allenjbaum / configuration-structure Goto Github PK

View Code? Open in Web Editor NEW

This project forked from riscv/configuration-structure

0.0 0.0 0.0 765 KB

RISC-V Configuration Structure

License: Creative Commons Attribution 4.0 International

Python 63.33% C 12.13% Makefile 4.11% Meson 20.44%

configuration-structure's Introduction

RISC-V Configuration structure

Layout of files here

  • examples/ contains human-readable examples.
  • lib/ contains what you need to generate a C library that can parse the ASN.1 schema.
  • schema/ contains the ASN.1 schema used that describes the configuration structure format.
  • rvcs.py is a tool to convert between various human-readable formats and ASN.1 formats.

This figure explains how these various parts fit together:

Overview of the workflow.

Build PDF

  1. Update the submodules: git submodule init && git submodule update
  2. Follow the local build instructions.
  3. Run make

Test Schema Changes

  1. Run pip3 install -r requirements.txt
  2. Run make test

Convert a YAML file to UPER

./rvcs.py convert examples/example.yaml example.uper

Extend the Schema

This section describes as concisely as possible how to add information for your extension to the configuration structure. Many details will be omitted, but for simple use cases that should be fine.

  1. Make a list of any implementation decision your specification explicitly allows that affects what software can do.
  2. If the list is long, divide the decisions into primary, secondary, and complete decisions. Primary information is only discoverable by reading the configuration structure, or by running a significant amount of code. Secondary information is discoverable but not straightforward (e.g. WARL register). Anything else goes in the complete section.
  3. Get ready to make a pull request to https://github.com/riscv/configuration-structure, e.g. by cloning the repo.
  4. Write an ASN.1 description of this information. ASN.1 allows for all kinds of complexity, but for your purposes simply reading one of extension .asn files under the schema/ directory should be all you need. For a simple example, look at zjpm. For a complex example look at debug.
  5. Following those examples, make a new file for your extension. Then edit configuration-structure.asn, adding to the IMPORTS and adding appropriate reference in the Configuration and Harts section. (You might only need one of those.)
  6. Run make test at the top level, and make sure no errors are reported.
  7. Make a pull request against the github repo.

If you have any questions during this process, you might find the answers in the spec. Otherwise, please contact us at [email protected].

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.