Thanks for your interest in contributing to CharLib! We're always looking for new ideas and ways to improve.
This document is a set of guidelines for how to contribute to CharLib. These are mostly guidelines, not strict rules; you should use your best judgment, and feel free to suggest improvements to this document.
Looking for information on how to use CharLib? Check out the README, which has helpful links to detailed usage information.
If you still need additional help, reach out to one of us. We're constantly looking for ways to improve documentation, and your feedback is a big help.
CharLib is composed of three main components:
- liberty: An object-based Python interface for writing standard cell libraries to liberty files. This includes objects to manage standard cell libraries and represent individual combinational and sequential cells.
- characterizer: A set of tools for running spice simulations against standard cells. This includes tools for managing collections of standard cells and dispatching simulation jobs, as well as simulation procedures for characterizing cells.
- CharLib.py: A command-line tool that facilitates interaction with the
characterizer
andliberty
components. This is the primary user interface for CharLib.
If you have questions about where to direct your efforts for a particular task, please reach out to one of the contacts listed here.
To get started, you'll need to install a few prerequisites:
- Python version 3.10 or later
- ngspice version 36 or later
After installing those, you should fork the CharLib repository and clone your fork. To make sure everything is set up correctly, run make
to test CharLib with a simple OSU350 characterization task.
- Identify an existing issue that you want to solve, or create a new issue.
- Fork the CharLib repository and make changes to fix the identified issue.
- Open a draft Pull Request as early as possible in the process. This helps us work as a team and work out potential issues ahead of time.
- Extensively test your changes.
- Once you're done making changes, mark your PR as ready for review. Maintainers will review your code and accept your PR or request changes as needed.
Bugs can be reported by opening a new Issue here. Include as much detail as possible. If feasible, attach your CharLib configuration files and cells to the Issue so that we can identify what went wrong.
Feature requests can be made by opening a new Issue here. Include as much detail as possible about how you want to use CharLib and/or how you think it should behave.
- Use present tense ("Fix bug", not "Fixed bug")
- Use imperative mood ("Replace thingamajig", not "Replaces thingamajig")
- Limit the first line to 72 characters or less
- Reference issues, pull requests, and other information liberally after the first line
- If the first line isn't enough to explain the full scope of your changes, use as much extra space as needed.
- Pull Requests should be concise and focused. Smaller changesets are much easier to implement and review than large changes. Keeping PRs small also helps us limit scope creep.
- Provide a detailed description of changes. Add as much context and rational for your decision-making process as possible.
- Add 'Fixes #[issue number]' to the pull request description or commit message if your PR targets a specific issue. See the github docs for more information.
Python code submissions should adhere to the guidelines in PEP 8. Aim for improved readability over conciseness. We aren't super strict on this - just make sure your code is formatted in a reasonable manner.
If you have any other questions, please reach out to one of us:
- Marcus Mellor: [email protected]
- Dr. James Stine: [email protected]