swift-osdi / SEMICONDUCTOR / MODEL SDK

Connect device response to circuit analysis.

Bring Verilog-A compact models into Swift. Pass model F/Q and Jacobians to a circuit solver with explicit evaluation conditions.

swift-osdi 1.2.0 ↗

Give every number conditions and an owner.

A semiconductor compact model is the boundary through which a circuit solver requests device behavior. OSDI (Open Simulator Device Interface) 0.4 separates Verilog-A physics, external compilation and Swift runtime ownership. F/Q are resistive and stored contributions; G/C are their Jacobians. Precision profiles bind results to source and numeric conditions. Version 1.2.0 makes REAL simulation inputs, Given semantics and snapshot work/storage admission and cancellation explicit. Unsupported conditions return typed errors.

Read the source · DESIGN.md ↗
01

Behind the experience

This projectConsuming app / personExternal technology
Data / executionOptional pathResult / response

Select a node to read its role.

External technologyVerilog-A

Describe device physics in Verilog-A

  • Verilog-A→OpenVAFData / execution
  • OpenVAF→OSDI 0.4 libraryData / execution
  • OSDI 0.4 library→OSDIRuntimeData / execution
  • OSDIRuntime→COSDI / F Q G CData / execution
  • COSDI / F Q G C→Circuit simulatorData / execution
  • OSDIRuntime→Precision workerOptional path
  • Precision worker→Circuit simulatorOptional path
  • Circuit simulator→OSDIRuntimeResult / response

OSDIRuntime and COSDI load, prepare and point-evaluate an OSDI 0.4 library generated by external OpenVAF. Optional precision evaluation uses a separate worker with explicit source and numeric profiles. The caller owns circuit solution, integration and accepted history.

02

Trace model conditions into circuit decisions.

Simulator developers can connect device responses to their solver while retaining model identity, terminals, temperature, parameters and evaluation mode. This gives designers a basis for tracing the conditions behind compared characteristics. The model interface supplies values; a separate circuit layer decides which solution to accept.

Explore more work →