CosimCustomConfig constructor

CosimCustomConfig(
  1. Future<Process> _startCosimProcess(
    1. String directory
    ),
  2. {String directory = _defaultCosimDirectory,
  3. bool enableLogging = false,
  4. bool throwOnUnexpectedEnd = true}
)

A custom configuration for running cosimulation.

Generated files will be placed in directory, which is a relative path.

_startCosimProcess should begin a simulation with all necessary configuration and setup for cosimulation. It must print to stdout so that ROHD Cosim can find the proper port to connect to, communicated from the connector.

Implementation

CosimCustomConfig(
  this._startCosimProcess, {
  super.directory,
  super.enableLogging,
  super.throwOnUnexpectedEnd,
}) {
  Cosim.generateConnector(directory: directory, enableLogging: enableLogging);
  _createReadme();
}