Skip to content

GUI Mode

The COBRA GUI is launched with:

cobra

What You Can Configure

The configuration panel has the sections Netlist and models, Analyses, Optimizer, Simulator and Fine-tuning. Click a title to collapse a section to a one-line summary. Rarely changed settings sit behind its Advanced fold; the Enabled box in its header switches fine-tuning on.

  • Netlist source
  • Component-to-model mapping (.onnx or .sNp). Hover over the model field to see what an ONNX model declares: its band, trained ranges, feasibility constraints and guarantees
  • Simulator: XyceSimulator or VacaskSimulator. Switching re-reads the netlist, and the goal list offers only what the simulator can run
  • Subcircuit surrogate: Use as surrogate replaces every instance of the selected subcircuit by a model (see VACASK Simulator), Clear undoes it
  • Analysis variants: further analyses of a type, each on the netlist with some values changed (e.g. the HB at another drive)
  • Design goals (S-parameter and RF metrics, and expressions over other goals)
  • Analysis point, when the run includes a Harmonic Balance or transient analysis
  • Optimization parameters and ranges
  • Iteration control and stop behavior
  • Parallelism: either N independent trials or one N-rank MPI simulation
  • Optional fine-tuning settings, including the retune after a Palace iteration that misses the goals (Retune trials, Retune range (±%), Retune min steps; see Fine-Tuning)

Appearance

The theme button in the top-right corner cycles through system → light → dark: Sandbank (light) and Deepwater (dark), or whichever the operating system uses.

Typical GUI Flow

flowchart TD
    A[Load Netlist] --> B[Map Components]
    B --> C[Define Design Goals]
    C --> D[Set Optimization Parameters]
    D --> E[Run Optimization]
    E --> F[Inspect Live Plots and Loss]
    F --> G[Review Saved Results]

Parallelism

The Parallelism row offers one choice and one process count:

  • Independent trials — the recommended mode. Processes trials are evaluated at the same time, each in its own single-core simulation. This is saved as parallel_trials.
  • Parallel simulator (MPI) — one trial at a time, each simulation on Processes MPI ranks (parallel_xyce and parallel_xyce_processes). Only worthwhile for very large netlists; it needs an MPI-enabled Xyce build.

The GUI never enables both, and rejects a configuration that does.

Optimization Parameters

The parameter dialog sets a parameter's bounds, step, unit and link, and an optional Start value (initial_value): the value the optimizer evaluates first, for example a known design you want to retune. None lets the optimizer choose. For an ONNX model input, the dialog takes the bounds, and the step of an input such as whole turns, from the model's metadata.

The Optimizer row offers OptunaOptimizer (the default, a global search) and GradientDescentOptimizer, a local search that runs one trial at a time.

Design Goals in Practice

Use goal constraints with optional frequency ranges, for example:

  • S11 <= -9 dB in 125-135ghz
  • -3 dB <= S21 <= 0 dB in 125-135ghz
  • Power_dBm[Out] >= 10 dB at 35ghz (single spectral line of an HB run)

The goal dialog groups the parameters by the analysis that produces them (.AC, .HB, .TRAN) in a tab bar at the top; the netlist's own analysis is opened first, and a goal from another tab adds that analysis to the run. Below, the dialog offers the inputs the selected parameter takes: choose Whole sweep / spectrum, Single frequency (the nearest frequency of the sweep or spectral line is used) or Frequency range. Goals that only make sense one way are restricted accordingly — an isolation goal, for example, has no max value and always targets a single frequency. Scale is the unit a miss of the limit is measured in (e.g. 1 for one dB); left empty, a miss counts relative to the limit, or in units of 1 for a limit of 0.

Analysis variants (the list above the goals; Add variant, right-click to edit or delete) run an analysis on the netlist with values changed: give a name, the analysis type and the values, e.g. vp_rf:ampl=0.00632, R1=60. Each variant has its own tab in the goal dialog. A variant that goals read cannot be renamed or deleted. See Analysis Variants.

The dialog's Expression tab makes a goal on a formula over other goals: name it and write the Expression with the variables listed under Terms (double-click one to insert it), e.g. a - b for compression. A goal an expression uses cannot be deleted. See Expression Goals.

Note

Goals are transformed into penalty values. Satisfying goals yields zero or negative penalty (reward), violations increase positive penalty.

Parameter Types

  • MODEL_INPUT: geometry/model inputs for ONNX surrogate components.
  • NETLIST_VARIABLE: parsed netlist values patched directly in netlist text.

Models from Hugging Face

The HuggingFace button of a component lists the models tagged orca-rfic on Hugging Face and those already downloaded ([LOCAL]). Download saves a repository to ./models/<owner>/<repo>/; Use selects its <repo>.onnx. A repository may also hold <repo>.py with the ORCA geometry class; without it, EM fine-tuning is off for that model. ORCA's documentation covers sharing your own models.

During Optimization

The GUI displays:

  • live S-parameter traces,
  • the HB or transient output spectrum at the selected analysis point, as power, gain, voltage or current,
  • per-goal penalty/loss behavior,
  • current and best trial values,
  • progress against maximum iterations (the bar turns amber while paused and green when finished).

When the run ends, parameters, goals and plots show its final result: the trial that met the goals or, if none did, the one that missed them by the least.

When a run produces more than one of the S-parameter, HB and transient plots, a selector switches the left plot between them. See Advanced -> Harmonic Balance for the spectrum markers and mixing-product labels, and Advanced -> Transient Analysis for the FFT window.

Outputs

Results are stored in a timestamped folder under results/ and include generated surrogate/predicted touchstone files, SPICE subcircuits, and run context.