Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improved readme #282

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Contributing to riscv-opcodes

Welcome, and thank you for your interest in contributing to the `riscv-opcodes` repository!

## Table of Contents
- [How to Contribute](#how-to-contribute)
- [Setting Up the Project](#setting-up-the-project)
- [Code Standards](#code-standards)
- [Running Tests](#running-tests)
- [Submitting a Pull Request](#submitting-a-pull-request)

## How to Contribute
- **Report an Issue**: For bugs or improvement suggestions, please open an issue.
- **Submit a Pull Request (PR)**: For fixes, improvements, or new features, submit a PR. It’s recommended to connect your PR with an open issue or prior discussion.

## Setting Up the Project
### Prerequisites
Ensure you have:
- Python 3.9+
- Necessary Python dependencies

### Generating Artifacts
To generate artifacts like `encoding.h` and `inst.rs`, navigate to the project root and run:
```bash
make
```
To generate specific artifacts like `inst.chisel` and `inst.rs`, run:
```bash
make inst.chisel inst.rs
```
To clean up generated files:
```bash
make clean
```
## Code Standards

- **File Naming**: Follow naming conventions provided in the README.
- **Syntax**: Use correct encoding syntax.
- **Comments**: Use `#` for comments, avoiding inline comments.

To format code, run:
```bash
pre-commit run --all-files
```
## Running Tests
Run tests to check encoding files and artifact generation before submitting a PR.

## Submitting a Pull Request

- **Branching**: Create a new branch for each PR.
- **Commits**: Use clear and descriptive commit messages.
- **PR Details**:
- Reference any related issues.
- Provide a summary of changes and their purpose.
- Verify that all tests pass.

Thank you for contributing to the RISC-V community!
Loading
Loading