SynchronousUtils Module
Functions and values
Function or value | Description |
Full Usage:
calculateCustomComponentsCombinatorialPaths diagramName graph
Parameters:
string
graph : SimulationGraph
Returns: CustomCompsCombPaths option
|
For each dependecy in a simulation graph, create a map containing: - key: name of the custom component. - value: a map with: - key: each InputPortNumber - value: a list of OutputPortNumber combinatorially connected to the input. An input is considered combinatorially connected to an output if there is at least one logic path connecting an input directly with the output. In other words, there must be at least one route from the input to output that does not encounter any synchronous component. Return None if such information cannot be inferred, for example if there is a circular dependency.
|
|
|
Full Usage:
getCombinatorialOutputs combRoutes node inputPortNumberOpt
Parameters:
CustomCompsCombPaths
node : SimulationComponent
inputPortNumberOpt : InputPortNumber option
Returns: Map<OutputPortNumber, (ComponentId * InputPortNumber) list>
|
Given a map of combinatorial routes from inputs to outputs for every simulation graph, perform a lookup to find the combinatorial routes from a given input to the outputs. Then filter the outputs of the custom node to only point to the combinatorial children (i.e. the ones connected to the combinatorial outptus).
|
Full Usage:
getHybridComponentAsyncOuts compType inputPortNumber
Parameters:
ComponentType
inputPortNumber : InputPortNumber
Returns: OutputPortNumber list option
|
|
Full Usage:
getNodeOrFail graph id
Parameters:
SimulationGraph
id : ComponentId
Returns: SimulationComponent
|
|
Full Usage:
hasSynchronousComponents graph
Parameters:
Map<ComponentId, SimulationComponent>
Returns: bool
|
|
|
|