HSPICE can not perform Monte Carlo (MC) simulations while considering aging effects. I developed a python wrapper that automatically performs MC and aging simulations using HPSICE to save engineering hours.
windows or linux
python3
hspice
Step1:
- Parses the spice file and reads the distribution and monte parameters
- Removes the distribution and monte parameters
- For example if monte parameter was 10, it creates 10 versions of the given spice file but with width and length values changed according to the distributions it parsed previously
- Runs the generated spice files
- Parses the csv results and calculates the mean and sigma of delays
Step2:
- Adds the aging section to step1 spice files
- Runs the generated spice files
- parses the csv results and calculates the mean and sigma of delays
Add the installation directory to your PATH variable, so the script can run the hspice.
(For example in windows, Add "C:\synopsys\Hspice_L-2016.06-SP1\BIN" to your PATH variable)
pip install -r requirements.txt
To use this wrapper, you do not need to know Python, just Add *<---BeginAging---> before the aging section and *<---EndAging---> after the aging section.
With the help of these annotations, the wrapper will be able to remove the aging section in step1 and add it again in step2.
python .\toolchain.py -i yourspicefilepath
This project is available under the MIT license. See the LICENSE file for more info.