Welcome to the hspiceParser GitHub page. hspiceParser aims to be the final word in parsing hSpice output files, building on a long legacy of programs built by other circuit designers.
The main goals of hspiceParser are:
- Very simple installation - Easy to set up and use
- Support for a wide variety of output formats - Compatible with multiple hSpice formats
- Thorough documentation - Clear explanations of what the parser is doing
If you've ever Googled "hSpice output format" and been frustrated at the result, then we're hoping this project helps.
Run the following command in your terminal:
pixi add hspice_parser --git https://github.com/HMC-ACE/hspiceParser --branch main
pixi add hspice_parser --git https://github.com/HMC-ACE/hspiceParser --tag latestYou can also install hspiceParser using pip:
pip install git+https://github.com/HMC-ACE/hspiceParser.git@mainAfter installation, you can use the hsp-parser command from your terminal.
You can download hspiceParser directly from here, or run the following terminal command:
wget https://raw.githubusercontent.com/HMC-ACE/hspiceParser/main/src/hspice_parser/hspiceParser.pyThe instruction above enable most of hSpiceParser’s functionality, but some output formats require additional Python libraries. The Parser file only relies on built-in Python 3.4+ functions to produce .m, .csv and Pickle files. The parser can also produce Matlab .mat files, but it requires that you have Scipy and Numpy installed on your machine to do so.
- Usage Guide: See Usage.md for examples and detailed usage instructions
- Output Formats: See hSpice_output.md for documentation on supported hSpice output file formats (9601, 2001, and ASCII)
We hope you download and use this parser, and we are also eager to integrate features from the community. Send us some pull requests!