Skip to content

Add analog simulation analyses and parameter sweep RFC#9

Merged
ShiboSoftwareDev merged 6 commits into
mainfrom
agent/analog-simulation-rfc
Jul 21, 2026
Merged

Add analog simulation analyses and parameter sweep RFC#9
ShiboSoftwareDev merged 6 commits into
mainfrom
agent/analog-simulation-rfc

Conversation

@ShiboSoftwareDev

@ShiboSoftwareDev ShiboSoftwareDev commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add dedicated <analog.*simulation> elements for transient, DC operating point, direct DC sweep, and AC sweep usage
  • add one-dimensional component sweeps through a nested <analog.sweepparameter> with parameter-specific target props
  • define the Circuit JSON experiments, sweep relationships, and analysis-specific voltage/current result types produced by that TSX
  • preserve the existing <analogsimulation> transient spelling and transient graph elements

Scope

This RFC is intentionally limited to TSX usage and the corresponding Circuit JSON. Compiler, engine, scheduling, rendering, export, measurement-expression, and implementation-order contracts are outside its scope.

Validation

  • parsed all embedded JSON examples
  • git diff --check

Comment thread assets/2026-07-20-analog-simulation/simulation-api-contracts.ts Outdated
Comment thread rfcs/2026-07-20-analog-simulation-analyses-and-parameter-sweeps.md Outdated
Comment thread rfcs/2026-07-20-analog-simulation-analyses-and-parameter-sweeps.md Outdated
Comment thread rfcs/2026-07-20-analog-simulation-analyses-and-parameter-sweeps.md Outdated
Comment thread rfcs/2026-07-20-analog-simulation-analyses-and-parameter-sweeps.md Outdated
Comment thread rfcs/2026-07-20-analog-simulation-analyses-and-parameter-sweeps.md Outdated
Comment thread rfcs/2026-07-20-analog-simulation-analyses-and-parameter-sweeps.md
Comment thread rfcs/2026-07-20-analog-simulation-analyses-and-parameter-sweeps.md
Comment thread rfcs/2026-07-20-analog-simulation-analyses-and-parameter-sweeps.md
Comment thread rfcs/2026-07-20-analog-simulation-analyses-and-parameter-sweeps.md Outdated
Comment thread rfcs/2026-07-20-analog-simulation-analyses-and-parameter-sweeps.md Outdated
Comment thread rfcs/2026-07-20-analog-simulation-analyses-and-parameter-sweeps.md Outdated
Comment thread rfcs/2026-07-20-analog-simulation-analyses-and-parameter-sweeps.md Outdated
Comment thread rfcs/2026-07-20-analog-simulation-analyses-and-parameter-sweeps.md Outdated
Comment thread rfcs/2026-07-20-analog-simulation-analyses-and-parameter-sweeps.md Outdated
Comment thread rfcs/2026-07-20-analog-simulation-analyses-and-parameter-sweeps.md Outdated
Comment thread rfcs/2026-07-20-analog-simulation-analyses-and-parameter-sweeps.md Outdated
Comment thread rfcs/2026-07-20-analog-simulation-analyses-and-parameter-sweeps.md Outdated
Comment thread rfcs/2026-07-20-analog-simulation-analyses-and-parameter-sweeps.md Outdated
Comment thread rfcs/2026-07-20-analog-simulation-analyses-and-parameter-sweeps.md Outdated
Comment thread rfcs/2026-07-20-analog-simulation-analyses-and-parameter-sweeps.md Outdated
Comment thread rfcs/2026-07-20-analog-simulation-analyses-and-parameter-sweeps.md Outdated
Comment thread rfcs/2026-07-20-analog-simulation-analyses-and-parameter-sweeps.md Outdated

@seveibar seveibar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keep the RFC small and focused on circuit json and TSX usage examples- the spec is far more important than anything else and the RFC doesn't focus sufficiently on it. Also the RFC should be smaller

Make sure you understand every line, remove lines like this (they waste the time of the reviewer)

The ngspice adapter must serialize access to one cached mutable simulation
instance. Parallelism is valid only through a bounded pool of independent
instances; a worker pool is not part of MVP.

Comment thread rfcs/2026-07-20-analog-simulation-analyses-and-parameter-sweeps.md Outdated
Comment thread rfcs/2026-07-20-analog-simulation-analyses-and-parameter-sweeps.md Outdated
Comment thread rfcs/2026-07-20-analog-simulation-analyses-and-parameter-sweeps.md Outdated
Comment thread rfcs/2026-07-20-analog-simulation-analyses-and-parameter-sweeps.md Outdated
@ShiboSoftwareDev
ShiboSoftwareDev marked this pull request as ready for review July 21, 2026 18:43

@seveibar seveibar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep looks good

@ShiboSoftwareDev
ShiboSoftwareDev merged commit 8df840b into main Jul 21, 2026
@tscircuitbot

Copy link
Copy Markdown

Thank you for your contribution! 🎉

PR Rating: ⭐⭐⭐
Impact: Major

Track your contributions and see the leaderboard at: tscircuit Contribution Tracker


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants