Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/augustunderground/hspectre
Haskell module for interacting with Cadence Spectre
https://github.com/augustunderground/hspectre
cadence-spectre circuit-simulator haskell
Last synced: about 5 hours ago
JSON representation
Haskell module for interacting with Cadence Spectre
- Host: GitHub
- URL: https://github.com/augustunderground/hspectre
- Owner: AugustUnderground
- License: bsd-3-clause
- Created: 2022-09-28T14:47:30.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-07-07T07:21:55.000Z (over 1 year ago)
- Last Synced: 2023-07-07T08:27:11.068Z (over 1 year ago)
- Topics: cadence-spectre, circuit-simulator, haskell
- Language: Haskell
- Homepage: https://augustunderground.github.io/hspectre/
- Size: 397 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# HSpectre
Haskell Module for communicating with Cadence Spectre.
[Documentation](https://augustunderground.github.io/hspectre)
## Build
```sh
$ stack build
```**Note:** Make sure this is always installed in conjunction with the same
version of [hnutmeg](https://github.com/augustunderground/hnutmeg).## Examples
```haskell
import Spectre.Interactivemain :: IO ()
main = do
session <- initSession ["path/to/pdk/lib"] "path/to/netlist.scs"
analyses <- listAnalysis session
print analyses
results <- runAll session
print results
exitSession session
```## Interactive
Interactive mode commands
| Command | Implemented | Functionality |
|---------------------------|-------------|-------------------------------------|
| `sclGetParameter` | [ ] | |
| `sclListParameter` | [ ] | |
| `sclGetAttribute` | [X] | Get Netlist Parameter Value |
| `sclSetAttribute` | [X] | Set Netlist Parameter Value |
| `sclListAttribute` | [ ] | |
| `sclGetAnalysis` | [ ] | |
| `sclGetCircuit` | [ ] | |
| `sclGetInstance` | [ ] | |
| `sclGetModel` | [ ] | |
| `sclGetPrimitive` | [ ] | |
| `sclListAnalysis` | [X] | Get list of all analyses in netlist |
| `sclListCircuit` | [ ] | |
| `sclListInstance` | [ ] | |
| `sclListModel` | [ ] | |
| `sclListNet` | [ ] | |
| `sclListPrimitive` | [ ] | |
| `sclCreateAnalysis` | [ ] | |
| `sclReleaseObject` | [ ] | |
| `sclRun` | [X] | Run _all_ analyses |
| `sclRunAnalysis` | [X] | Run given analysis |
| `sclGetError` | [ ] | |
| `sclGetResultDir` | [ ] | |
| `sclSetResultDir` | [ ] | |
| `sclGetPid` | [ ] | |
| `sclHelp` | [ ] | |
| `sclQuit` | [X] | Quit current session |
| `mdlRegMeasurement` | [ ] | |
| `mdlListAliasMeasurement` | [ ] | |
| `mdlRun` | [ ] | |
| `mdlDelMeasurement` | [ ] | |