Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.Interactive

main :: 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` | [ ] | |