Skip to content
Dilara Caglar
CourseworkGraded course simulation

Transient Solver with Region-Aware Step Control

Trapezoidal transient analysis that recovers a failing ring-oscillator run through region-aware local step control.

My contribution

I designed the region-aware step-rejection heuristic and the 5-stage bonus case and verified the results; the stamp equations and time loop were implemented with Claude Code from my handoff.

Affiliation
18-762 Circuit Simulation and Optimization Methods
Dates
Fall 2026
Role
Individual project on course skeleton code
Topics
Optimization and Simulation
Tools
Python, Newton-Raphson, MNA
Contents
  1. The problem
  2. My contribution
  3. Constraints
  4. Design decisions
  5. What was difficult
  6. Evidence
  7. Current status
  8. What I would change next

01

The problem

I extended the solver to transient analysis (Trapezoidal companion models plus Newton at each time step). The ring oscillator fails at 0.52 µs with the required 13 ns step. Fast switching events squeezed into one or two steps break Newton, while the slow RC charging between them should allow large steps.

02

My contribution

This was an individual project on course skeleton code. The stamp equations and time loop were specified in a handoff and implemented with Claude Code. The heuristic was my own choice: I designed the region-aware step rejection, had it implemented behind a switch, and added the 5-stage bonus case. I then verified the reported results against a clean rerun.

03

Constraints

The MOSFET model is piecewise-linear, defined only by VT and GM, with a fixed 13 ns TSTEP and a 500-iteration Newton cap. The fix had to meet the handout's accuracy and efficiency requirements together. The report was about 2.5 pages.

04

Design decisions

A smaller global time step looked like the obvious fix, but the baseline fails erratically: it breaks at 11, 14 and 18 ns but not at 12, 15 or 20 ns. So I chose local control. Because each region pattern has fixed companion values, a repeated pattern guarantees Newton will loop forever. I detect that cycle, reject the step, halve it, and grow it back once no transistor is switching.

05

What was difficult

At the failing step, Newton cycled through three region patterns and pushed a node to 42.56 V on a 5 V supply, even though a valid solution existed. An early assumption was wrong: I expected a discharge to take under 1 ns, but a 0.25 ns reference run showed 13.5 ns, about one full step. That changed the physical story.

06

Evidence

Cycle detection declares failure within 28 iterations (3^M + 1) instead of 500. Halving the step cuts the first iterate's RC drift from 39 to 19 mV, and Newton converges in 3 iterations at 6.5 ns. The heuristic recovered the expected sawtooth and was robust across steps from 5 to 20 ns. The baseline needed about 156 steps per oscillation at 10 ns, which set the efficiency bar.

07

Current status

This is a graded course simulation and is complete.

08

What I would change next

I'd add true local truncation error control alongside the region trigger, try a smooth MOSFET model where region patterns don't make the system piecewise constant, and test on larger circuits.

Related work