Safe Haskell | None |
---|---|
Language | Haskell2010 |
Interactive Communication between Haskell and Spectre
Synopsis
- data Session = Session {}
- type Parameter = String
- startSession :: [FilePath] -> FilePath -> FilePath -> IO Session
- startSession' :: [FilePath] -> FilePath -> IO Session
- stopSession :: Session -> IO ()
- runAll :: Session -> IO NutMeg
- runAll_ :: Session -> IO ()
- results :: Session -> IO NutMeg
- listAnalysis :: Session -> IO [(String, Analysis)]
- runAnalysis :: Session -> String -> IO NutMeg
- sweep :: Session -> [Map Parameter Double] -> IO NutMeg
- getParameter :: Session -> Parameter -> IO Double
- setParameter :: Session -> Parameter -> Double -> IO ()
- getParameters :: Session -> [Parameter] -> IO (Map Parameter Double)
- setParameters :: Session -> Map Parameter Double -> IO (Map Parameter ())
Types
Spectre Interactive Session
Session Management
startSession :: [FilePath] -> FilePath -> FilePath -> IO Session Source #
Initialize spectre session with given include path, netlist and temp dir
startSession' :: [FilePath] -> FilePath -> IO Session Source #
Initialize spectre session with given include path and netlist
stopSession :: Session -> IO () Source #
Close a spectre interactive session
Running Simulations
listAnalysis :: Session -> IO [(String, Analysis)] Source #
Get Map of Available Simulation Analyses: (id, type)
sweep :: Session -> [Map Parameter Double] -> IO NutMeg Source #
Perform a number of simulation analyses for a given list of parameter maps and read the results only afterwards.