@vessel-dsp/compiler 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -4,23 +4,23 @@ Headless circuit compiler turning `.vdsp` / `CircuitDocument` schematic data int
4
4
 
5
5
  ## Install
6
6
 
7
- `@vessel-dsp/compiler` 0.1.0 is not yet on npm. Until the release is published, use the package from this repository's workspace rather than an install command that will 404.
7
+ `@vessel-dsp/compiler` 0.3.0 is on npm:
8
8
 
9
9
  ```bash
10
- # once published:
11
10
  bun add @vessel-dsp/compiler
12
11
  ```
13
12
 
13
+ Subpath exports: `.` (compile, registries, the supply-stamp join, and every `Program` type), `./diagnostics` (the report-only reach into stages for instruments), and `./fixtures` (the synthetic circuits the engine is graded on, with hand-computed expectations).
14
+
14
15
  ## Minimal example
15
16
 
16
- Compile takes `.vdsp` source text and an optional part registry. It returns a result, never a throw, for a document it cannot use.
17
+ Compile takes `.vdsp` source text and an optional part registry. It returns a result, never a throw, for a document it cannot use. The fixtures below ship with the package under `./fixtures`, so this runs as written:
17
18
 
18
19
  ```ts
19
- import { readFileSync } from "node:fs";
20
- import { compile, pedalPartCatalog } from "@vessel-dsp/compiler";
20
+ import { compile, emptyRegistry } from "@vessel-dsp/compiler";
21
+ import { resistorDivider } from "@vessel-dsp/compiler/fixtures";
21
22
 
22
- const source = readFileSync("big-muff-pi.vdsp", "utf8");
23
- const result = compile(source, { registry: pedalPartCatalog });
23
+ const result = compile(resistorDivider, { registry: emptyRegistry });
24
24
 
25
25
  if (result.status === "ok") {
26
26
  console.log("Compiled program blocks:", result.program.blocks.length);
@@ -39,19 +39,19 @@ Warnings: 0
39
39
 
40
40
  `compile(source, options)` defaults to `emptyRegistry` when no registry is given. The empty registry models only device class laws (resistor, capacitor, plain op-amp stages) and refuses parts that need catalog identity. `pedalPartCatalog` is the corpus facing catalog injected by scripts and tests.
41
41
 
42
- Measured over the 121 top level packets in the artifacts corpus (read only, not committed):
42
+ Over the eight fixtures used in the guides (`resistorDivider`, `rcLowPass`, `diodeClipper`, `invertingAmplifier`, `potDivider`, `commonEmitterAmplifier`, `emitterFollower`, `triodeGainStage`), both registries compile 8 of 8. Measured over the 121 top level packets in the artifacts corpus (read only, not committed):
43
43
 
44
44
  - `emptyRegistry`: 74 of 121 compile.
45
- - `pedalPartCatalog`: 119 of 121 compile. The two refusals are `boss-dd-3t.vdsp` and `boss-dd-5.vdsp`.
45
+ - `pedalPartCatalog`: 119 of 121 compile. The two refusals are `boss-dd-3t.vdsp` and `boss-dd-5.vdsp`, both undisclosed DSP parts.
46
46
 
47
47
  Use `pedalPartCatalog` for real pedal packets. Use `emptyRegistry` only to measure what works with no part knowledge, or for synthetic device class probes.
48
48
 
49
- One refusal shape, for `boss-dd-3t.vdsp` with `pedalPartCatalog`:
49
+ One refusal shape, for the `unknownChip` fixture with `emptyRegistry`:
50
50
 
51
51
  ```text
52
52
  [{ "stage": "device-laws", "device": "U1",
53
53
  "reason": "integrated circuit has no model: its part number
54
- \"undisclosed-roland-boss-dsp\" matched no registry entry, and a declared
54
+ \"UNKNOWN-PART-XYZ\" matched no registry entry, and a declared
55
55
  class may not supply a macro for a part whose identity is unresolved" }]
56
56
  ```
57
57
 
@@ -59,12 +59,12 @@ One refusal shape, for `boss-dd-3t.vdsp` with `pedalPartCatalog`:
59
59
 
60
60
  `compile` returns `CompileResult`:
61
61
 
62
- - `{ status: "ok", program, warnings }`. Warnings never block a program. A pedal with a dead knob is still worth hearing, but it must not be silent about it.
63
- - `{ status: "unsupported", reasons }`. Each reason is a `CompileRefusal` with `stage` (`netlist`, `device-laws`, `partition`, `lower`, or `link`), `device` (component id or null), and a human readable `reason`. `device-laws` means a part could not be modelled; any other stage means the document itself does not support a program.
62
+ - `{ status: "ok", program, warnings }`. Warnings never block a program. A pedal with a dead knob is still worth hearing, but it must not be silent about it. Each warning carries a closed `code` callers can switch on, plus human readable `detail`.
63
+ - `{ status: "unsupported", reasons }`. Each reason is a `CompileRefusal` with `stage` (`netlist`, `device-laws`, `partition`, `lower`, or `link`), `device` (component id or null), and a human readable `reason`. `device-laws` means a part could not be modelled; any other stage means the document itself does not support a program. A floating wiper that disconnects the circuit refuses at the `link` stage instead of warning.
64
64
 
65
65
  Only a `StageRefusal` becomes a result. Anything else (a compiler bug) propagates as a throw, because a bug reported as an unsupported pedal would be a wrong answer about someone's circuit.
66
66
 
67
- `compileToArtifact(source, options)` runs `compile` and pairs it with `emit`: `{ result, artifact }` where `artifact` is null unless the result is ok. `decode(text)` parses an artifact back into a `Program`.
67
+ `compileToArtifact(source, options)` runs `compile` and pairs it with `emit`: `{ result, artifact }` where `artifact` is null unless the result is ok. `emit` renders the deterministic serializable form (`{ text, digest }`). There is no public `decode` in 0.2.0: program JSON is consumed by the consoles.
68
68
 
69
69
  `readNetlist(source, options?)` runs the first stage only: document text to a law free `Netlist` with `inputJack`/`outputJack` overrides and `parseQuantity` for SI values (`10k` to 10000).
70
70
 
@@ -72,11 +72,13 @@ Only a `StageRefusal` becomes a result. Anything else (a compiler bug) propagate
72
72
 
73
73
  A `Program` is rate independent: it carries no sample rate. The runtime supplies the rate at `prepare()`. Top level keys:
74
74
 
75
- `formatVersion` (always 1), `requiredOperators`, `requiredModels`, `costPredictors`, `blocks`, `order`, `controls`, `ports`, `supplyReference`, `portReferenceVolts`, `portFullScaleVolts`, `stageCoverage`, `portImpedanceOhms`.
75
+ `formatVersion` (6 in 0.2.0), `requiredOperators`, `requiredModels`, `costPredictors`, `blocks`, `order`, `controls`, `ports`, `supplyReference`, `portReferenceVolts`, `portFullScaleVolts`, `stageCoverage`, `portImpedanceOhms`, `bypass`.
76
+
77
+ Compiled `Program`s carry `formatVersion` 6. Named I/O ports and the `bufferProgram` bypass are deferred to a later `formatVersion`; from here any change to `Program`, the `Stamp` union, `ProgramJson.cpp` or `Program.h` is a package minor bump.
76
78
 
77
- `requiredOperators` lists every stamp operator the executed blocks present, sorted, so a runtime can refuse by name at load. `requiredModels` lists every macro DSP model id the same way. `order` is the block execution order. `supplyReference` is `negative-ground`, `positive-ground`, `dual-rail`, or `unpowered`, derived from `dc-source` signs. `stageCoverage` is `instrument`, `preamp`, `speaker-electrical`, or `miked`.
79
+ `requiredOperators` lists every stamp operator the executed blocks present, sorted, so a runtime can refuse by name at load. `requiredModels` lists every macro DSP model id the same way. `order` is the block execution order and may omit blocks `blocks` retains. `supplyReference` is `negative-ground`, `positive-ground`, `dual-rail`, or `unpowered`, derived from `dc-source` signs. `stageCoverage` is `instrument`, `preamp`, `speaker-electrical`, or `miked`. `portFullScaleVolts` (a ceiling derived from the rails) and `portReferenceVolts` (the 0 dBFS voltage the jack declares) are different quantities; either entry may be `null`.
78
80
 
79
- `big-muff-pi.vdsp` with `pedalPartCatalog` compiles to 1 block (`order: ["analog:0"]`) with stamp kinds `dc-source` 1, `bjt` 4, `conductance` 22, `capacitor` 13, `controlled-conductance` 6, `diode` 4, `input-source` 1. Controls are `IN`, `OUT`, `SUSTAIN`, `TONE`, `VOLUME`, each 0..1 with default 0.5.
81
+ `commonEmitterAmplifier` with `emptyRegistry` compiles to 1 block (`order: ["analog:0"]`) with stamp kinds `dc-source` 1, `capacitor` 2, `conductance` 5, `bjt` 1, `input-source` 1. The `potDivider` fixture declares one control, `Level` (`taper: linear`, default 0.5, continuous so `positions: null`, role `output-level`, label `VOLUME`).
80
82
 
81
83
  Each `mna` block carries `nodeIds` (row to source node map), `auxCount`, `stamps`, `stampPartition`, `sparseSchedule`, `stateCount`, `linear`, `controlFree`, `eliminate`, input/output nodes, and operating point seeds. A `macro` block carries a DSP `modelId` with parameters instead of stamps.
82
84
 
@@ -84,232 +86,34 @@ Each `mna` block carries `nodeIds` (row to source node map), `auxCount`, `stamps
84
86
 
85
87
  `resolveSupplyStamps(source, program)` joins the document power domains to the compiled `dc-source` stamps. It takes the same source text the program was compiled from and returns `{ supplies, refused }`. Only rails in an external DC domain with `derivation: direct` and `role: main-supply` are candidates; derived rails (divider, regulator, inverter, doubler, isolated) keep their compiled values.
86
88
 
87
- Measured over the same 121 packets with `pedalPartCatalog`: 54 packets resolve at least one supply. Refusals by entry: `derived-rail` 60, `no-power-section` 42, `no-stamp-for-rail` 17, `mains-ac-source` 7, `unknown-source-kind` 4, plus 2 packets that do not compile at all. `big-muff-pi` resolves `VPLUS_RAIL` with role `main-supply`.
89
+ The closed refusal reasons are `no-power-section`, `mains-ac-source`, `unknown-source-kind`, `source-kind-conflict`, `derived-rail`, `rail-not-main-supply`, `no-stamp-for-rail`, `ambiguous-stamp`. Callers switch on `reason`; `detail` is prose for a human report. Mains fed amp B+ rails are refused by design: a battery profile must never be applied downstream of a rectifier.
88
90
 
89
- The closed refusal reasons are `no-power-section`, `mains-ac-source`, `unknown-source-kind`, `source-kind-conflict`, `derived-rail`, `rail-not-main-supply`, `no-stamp-for-rail`, `ambiguous-stamp`. Callers switch on `reason`; `detail` is prose for a human report.
91
+ See the Compiler guide for a worked `resolveSupplyStamps` example, and the [runtime supply-control design note](https://github.com/vessel-dsp/core/blob/main/docs/design/runtime-supply-control.md) for the full design.
90
92
 
91
93
  ## Public exports
92
94
 
93
- ### Compile
95
+ Values on `.`:
94
96
 
95
97
  | Name | What it is |
96
98
  | --- | --- |
97
99
  | `compile` | Compile, or explain the refusal. Never throws for a document it cannot use. |
98
100
  | `compileToArtifact` | `compile` plus `emit`, paired as `{ result, artifact }`. |
99
- | `CompileOptions` | `{ registry, inputJack, outputJack }`. |
100
- | `CompileResult` | `CompileSuccess` or `CompileFailure`. |
101
- | `CompileSuccess` | `{ status: "ok", program, warnings }`. |
102
- | `CompileFailure` | `{ status: "unsupported", reasons }`. |
103
- | `CompileRefusal` | `{ stage, device, reason }`. |
104
- | `CompilerStage` | `netlist`, `partition`, `lower`, or `link`. |
105
- | `StageRefusal` | Stage error that becomes a result instead of a throw. |
106
- | `LoweringError` | A device declared with a terminal count lowering cannot stamp. |
107
- | `NetlistError` | Netlist stage refusal. |
108
- | `PartitionError` | Partition stage refusal. |
109
- | `LinkError` | Link stage refusal. |
110
-
111
- ### Artifacts
112
-
113
- | Name | What it is |
114
- | --- | --- |
115
- | `emit` | Render a `Program` to its serializable `Artifact`. |
116
- | `decode` | Parse an artifact back into a `Program`. |
117
- | `Artifact` | The serializable form of a compiled program. |
118
-
119
- ### Netlist
120
-
121
- | Name | What it is |
122
- | --- | --- |
123
- | `readNetlist` | First stage only: source text to a law free `Netlist`. |
124
- | `ReadNetlistOptions` | `{ inputJack, outputJack }` overrides. |
125
- | `Netlist` | Devices, controls, ports, and port metadata before laws attach. |
126
- | `Device` | One lowered device with kind, identity, terminals, and parameters. |
127
- | `DeviceId` | Component id string. |
128
- | `DeviceKind` | What a device is electrically (resistor through power-amp, plus sources, rails, gates, BBD, compandor). |
129
- | `DeviceIdentity` | Evidence a part is recognised by, in stage 2 order. |
130
- | `DeviceLaw` | A lumped constitutive relation the solver can stamp. |
131
- | `DeviceResolution` | Per device law outcome, including unsupported with reason. |
132
- | `LawedNetlist` | Netlist plus per device resolutions. |
101
+ | `emit` | Render a `Program` to its serializable `{ text, digest }` artifact. |
102
+ | `readNetlist` | First stage only: source text to a law free netlist. |
133
103
  | `parseQuantity` | Parse a quantity to SI base units (`10k` to 10000). |
134
- | `dcConductingKinds` | DC conducting device kinds, for asking whether a node potential is generated. |
135
- | `deviceCountByNode` | How many devices touch each node. |
136
- | `DeclaredWinding` | One declared coil: role, name, terminals in coil order. |
137
- | `DeclaredWindingImpedance` | One rated coil impedance in ohms. |
138
-
139
- ### Registries
140
-
141
- | Name | What it is |
142
- | --- | --- |
143
104
  | `emptyRegistry` | No part knowledge; measures what device class laws alone cover. |
144
105
  | `pedalPartCatalog` | The catalog corpus facing scripts inject. |
145
- | `PartRegistry` | `{ entries }` consulted by stage 2. |
146
- | `PartEntry` | One catalog entry binding identity to a model. |
147
- | `PartModel` | Law, sections, or macro model a part supplies. |
148
- | `PartSection` | One section of a multi section part with its terminals. |
149
- | `PartPinout` | Terminal order a sections model indices assume. |
150
- | `PartIdentity` | A resolved part identity. |
151
- | `MacroPartModel` | Macro model a registered part supplies. |
152
- | `MacroPortRoles` | Where a macro ports sit, named by terminal role. |
153
- | `MacroBarePinPositions` | Physical terminal positions for pin numbered documents. |
154
- | `registryEntryFor` | Entry lookup for a device. |
155
- | `registryModelFor` | Model lookup for a device. |
156
- | `registryLawFor` | The law a registered part supplies for a device. |
157
- | `terminalWithRole` | Index of the terminal whose role matches, or null. |
158
- | `pinoutMatches` | Whether a device declares the order an entry was written against. |
159
106
  | `foldPartId` | Fold case and separators (`MN-3007` is `mn3007`). |
160
107
  | `foldToken` | Fold case and whitespace for typed vocabulary values. |
161
- | `recordedReads` | What each owner consulted. |
162
- | `withRecordedReads` | Run a function with registry reads recorded. |
163
- | `clearRecordedReads` | Forget everything recorded so far. |
164
-
165
- ### Supply stamps
166
-
167
- | Name | What it is |
168
- | --- | --- |
108
+ | `registryEntryFor` | Entry lookup for a device. |
109
+ | `registryLawFor` | The law a registered part supplies for a device. |
110
+ | `canonicalPartId` | Canonical part identity spelling. |
111
+ | `zenerCatalogPartIds` | Part ids the catalog treats as zeners. |
169
112
  | `resolveSupplyStamps` | Join document power domains to compiled `dc-source` stamps. |
170
- | `SupplyAddress` | `{ blockIndex, sourceIndex }` naming one `dc-source` stamp. |
171
- | `ResolvedSupply` | Address plus rail id, role, and nominal volts. |
172
- | `RefusedSupply` | Unmapped rail with reason and human readable detail. |
173
- | `SupplyResolution` | `{ supplies, refused }`. |
174
- | `SupplyRefusalReason` | Closed union of eight refusal reasons. |
175
-
176
- ### Partition, lower, link, couple
177
-
178
- | Name | What it is |
179
- | --- | --- |
180
- | `partition` | Split the lawed netlist into regions. |
181
- | `Partitioning` | Regions plus dependencies. |
182
- | `Region` | One coupled subgraph with its kind. |
183
- | `RegionKind` | `linear`, `nonlinear`, or `macro`. |
184
- | `lower` | Turn regions into MNA stamp blocks. |
185
- | `lowerRegion` | Lower one region. |
186
- | `link` | Order blocks and attach program metadata. |
187
- | `couple` | Wire coupled and parameter ports after every region exists. |
188
- | `Coupled` | Coupled seam record. |
189
- | `blockNodeIndex` | A block row index for a source node id, or null. |
190
-
191
- ### Stamps, blocks, program
192
-
193
- | Name | What it is |
194
- | --- | --- |
195
- | `Program` | The compiled ROM: operators, models, blocks, order, controls, ports, supply reference, scales, coverage. |
196
- | `Block` | One `mna` solve block or one `macro` DSP block. |
197
- | `Stamp` | One MNA contribution (conductance through switch families). |
198
- | `OperatorKind` | A stamp kind a runtime must implement. |
199
- | `StampPartition` | Compile time linear, control, constant, and dynamic partition. |
200
- | `SparseSchedule` | Compile time static sparse elimination schedule. |
201
- | `stampControl` | Control a stamp reads, or null. |
202
- | `stampNeedsNewton` | Whether a stamp needs the Newton loop. |
203
- | `stampNodes` | Every node a stamp names. |
204
- | `stampInSourceNodes` | A stamp read back in document node ids. |
205
- | `withStamp` | Add a stamp with linear and controlFree re-derived. |
206
- | `Ports` | Input and output node ids. |
207
- | `CostPredictors` | Rate independent cost facts for admission. |
208
- | `OperatingPointSeed` | A nodeset style hint for the DC solve start. |
209
- | `NodeId` | Electrical node number. |
210
- | `GROUND` | Node 0. |
211
- | `ModulationPort` | Solved node read every sample to scale a delay macro. |
212
- | `ParameterPort` | Scalar another operator derives. |
213
- | `MacroModel` | A region the compiler does not solve. |
214
- | `MacroClockControl` | Clock control mapping for a macro block. |
215
- | `SUPPLY_SOURCE_OHMS` | Default series impedance of a pedal supply in ohms (1). |
216
- | `STATE_SLOTS_PER_REACTIVE_ELEMENT` | State slots a reactive element companion model needs. |
217
- | `THERMAL_VOLTAGE` | Room temperature thermal voltage for the diode law. |
218
- | `SILICON_SATURATION_CURRENT` | Default silicon saturation current. |
219
- | `SILICON_FORWARD_BETA` | Default silicon forward beta (100). |
220
- | `SWITCH_ON_OHMS` | Closed switch resistance. |
221
- | `SWITCH_OFF_OHMS` | Open switch resistance. |
222
-
223
- ### Controls and tapers
224
-
225
- | Name | What it is |
226
- | --- | --- |
227
- | `Control` | Compiled control with id, taper, default position, role, label. |
228
- | `ControlId` | Control id string. |
229
- | `TaperKind` | `linear`, `logarithmic`, `reverse-logarithmic`, or `reverse-linear`. |
230
-
231
- ### Clocks, timing, delay lines
113
+ | `attachDeviceLaws` | Stage 2: attach laws to every netlist device. |
232
114
 
233
- | Name | What it is |
234
- | --- | --- |
235
- | `deriveBbdDelayFromNetlist` | Derive BBD delay from the clock network. |
236
- | `derivePt2399DelayFromNetlist` | Derive PT2399 delay from the VCO resistor network. |
237
- | `deriveM50195DelayFromNetlist` | Derive M50195P delay from the oscillator network. |
238
- | `pt2399DelayFromOhms` | PT2399 delay formula from VCO resistance. |
239
- | `identifyClockFamily` | Clock driver family for a device. |
240
- | `ClockDriverFamily` | BBD clock family. |
241
- | `clockTimingNodes` | Nodes a clock driver timing network hangs on. |
242
- | `activeTimingDrivers` | Devices actively steering a timing network. |
243
- | `ACTIVE_TIMING_KINDS` | Device kinds that can drive a timing node. |
244
- | `findClockDriverDevice` | Locate the clock driver device. |
245
- | `resolveClockModulationSource` | Node an LFO reaches a modulated BBD clock on. |
246
- | `ClockModulationSource` | That modulation source. |
247
- | `BbdClockDerivationOutcome` | BBD clock derivation result. |
248
-
249
- ### Device helpers
115
+ Types on `.` (import with `import type`): `CompileOptions`, `CompileResult`, `CompileSuccess`, `CompileFailure`, `CompileRefusal`, every `Program`/`Block`/`Stamp`/`Control`/cost type (`Program`, `Block`, `Stamp`, `OperatorKind`, `Control`, `ControlId`, `TaperKind`, `Ports`, `CostPredictors`, `NodeId`, `GROUND`, and the rest in `types.ts`), and the supply-join types (`SupplyAddress`, `ResolvedSupply`, `RefusedSupply`, `SupplyResolution`, `SupplyRefusalReason`).
250
116
 
251
- | Name | What it is |
252
- | --- | --- |
253
- | `attachDeviceLaws` | Stage 2: attach laws to every netlist device. |
254
- | `declaredRegulatorTerminals` | Output and reference terminals of a regulator model. |
255
- | `isElectricallyIsolated` | Whether every device node is private to itself. |
256
- | `opampInputDistances` | Op-amp input network distances. |
257
- | `quietDistances` | Quiet network distances. |
258
- | `optocouplerBinding` | Which rung decided an optocoupler wiring. |
259
- | `otaPackageOrderAssumed` | Whether an OTA used DIP-8 package order. |
260
- | `potTerminals` | Potentiometer terminal roles. |
261
- | `synthesizeOpampImplicitBias` | Add implicit DC bias where topology leaves it undefined. |
262
- | `stageCoverage` | Amplification stage coverage read from lowered stamps. |
263
-
264
- ### Diagnostics (warnings and their finders)
117
+ `./diagnostics` (report-only reach into stages for instruments, not consumer API): `blockRow`, `describeRow`, `nodeAt`, `stampNodes`, `stampInSourceNodes`, `perSample`, `SILICON_FORWARD_BETA`, `SILICON_SATURATION_CURRENT`, `THERMAL_VOLTAGE`, `findBistableLatches`, `OPEN_RULES`, `connectedToBothPorts`, `isPacketDisconnected`, `outputDependence`, `validateProxy`, `recordedReads`, `withRecordedReads`, `clearRecordedReads`, `speakerImpedance`, `speakerImpedanceMagnitude`, `speakerOnePort`, `clockTimingNodes`, `deriveBbdDelayFromNetlist`, `findClockDriverDevice`, plus the accompanying types (`PerSample`, `BistableLatch`, `NetGraph`, `FirmwareClass`, and the violation types).
265
118
 
266
- | Name | What it is |
267
- | --- | --- |
268
- | `CompileWarning` | Union of every warning shape. |
269
- | `findInertControls` | A pot whose wiper touches nothing is a fixed resistor. |
270
- | `InertControlWarning` | Why a control cannot move the circuit. |
271
- | `ControlPositionDisagreesWarning` | Panel and component disagree about a control setting. |
272
- | `findUnboundedOpamps` | Op-amps with no DC feedback path. |
273
- | `UnboundedOpampWarning` | Op-amp on the signal path with no DC feedback. |
274
- | `findSupplyShorts` | Diodes forward across a supply. |
275
- | `SupplyShortWarning` | A diode wired forward across a supply. |
276
- | `findOverDrivenNodes` | Nodes driven by more than one ideal source. |
277
- | `OverDrivenNodeWarning` | Over-determined node. |
278
- | `findDanglingActiveTerminals` | Active terminals on untouched nodes. |
279
- | `DanglingActiveTerminalWarning` | Active device terminal that cannot conduct. |
280
- | `findGroundedClockSupplies` | Clock drivers with supply at ground. |
281
- | `ClockDriverSupplyAtGroundWarning` | Clock driver rendering no clock at all. |
282
- | `findUnimplementedDeviceLaws` | Devices with no law, told by name. |
283
- | `UnimplementedDeviceLawWarning` | Device class with no law. |
284
- | `UnimplementedControlRoleWarning` | Control role with no law: accepted, lowered, ignored. |
285
- | `findUnreachableOutput` | Outputs reachable by nothing. |
286
- | `OutputPortUnreachableWarning` | Program executing no blocks. |
287
- | `OutputPortNotTransformerCoupledWarning` | Output measured before the power stage. |
288
- | `NoOutputTransformerWarning` | Amp shaped document with no output transformer. |
289
- | `findUnexecutedRegions` | Regions the program never executes. |
290
- | `UnexecutedActiveRegionWarning` | Active region never executed. |
291
- | `findIcsNotExecuted` | Declared ICs the program does not execute. |
292
- | `IcNotExecutedWarning` | Declared but unexecuted IC. |
293
- | `findElectricallyIsolatedIcs` | Identification devices with all private nodes. |
294
- | `ElectricallyIsolatedIcWarning` | Isolated device given an open law. |
295
- | `OpenIcReason` | Why a device got an open law. |
296
- | `findPowerDomainControls` | Power hardware exposed as sweepable controls. |
297
- | `PowerDomainControlWarning` | Power domain hardware outside the audio graph. |
298
- | `findNonExecutableClockDrivers` | Clock drivers bypassed by the MNA solver. (finder; warning type `NonExecutableClockDriverWarning`) |
299
- | `NonExecutableClockDriverWarning` | Clock behavior not modelled. |
300
- | `NonExecutableSupportShellWarning` | Support shell preserved but not executed. |
301
- | `findGenericTubeFits` | Tubes lowered with device class fits. (finder; types below) |
302
- | `GenericTubeFitWarning` | Tube lowered without a catalog match. |
303
- | `GenericSpeakerProfileWarning` | Speaker load with a generic driver profile. |
304
- | `findUnverifiedPinoutBindings` | Parts wired by declaration order. (finder; type below) |
305
- | `UnverifiedPinoutBindingWarning` | Terminals placed by order, not assertion. |
306
- | `UnreadableTerminalRoleWarning` | Terminals wired by order after an unplaceable spelling. |
307
- | `UnroutableThrowWarning` | Switch throw alone on its node. |
308
- | `InterfaceOrSourceOnlyWarning` | Interface or source only component. |
309
- | `UnconnectedBehaviorComponentWarning` | Behavior component with no connection to the audio graph. |
310
- | `NotPopulatedWarning` | DNP position with nothing fitted. |
311
- | `NotPopulatedWithoutValueWarning` | DNP component with no value. |
312
- | `LedgerDivergenceWarning` | Nodes ledger and terminal refs disagree. |
313
- | `DeclaredDelayWarning` | Delay typed into the source, not derived. |
314
- | `ModulationNotModelledWarning` | Wired modulation input admission refused. |
315
- | `TaperNotExecutableWarning` | Taper that renders linear. |
119
+ `./fixtures` (248 exports: synthetic circuits, hand-computed expectations, and their registries): `resistorDivider`, `rcLowPass`, `diodeClipper`, `invertingAmplifier`, `potDivider`, `commonEmitterAmplifier`, `emitterFollower`, `triodeGainStage`, `unknownChip`, `dividerGain`, `potGainAt`, `fixtureRegistry`, and the rest. These are the only circuits whose answers are known independently of the instruments, which is what makes them shippable.
@@ -1 +1 @@
1
- {"version":3,"file":"compile.d.ts","sourceRoot":"","sources":["../src/compile.ts"],"names":[],"mappings":"AA0BA,OAAO,EAAE,KAAK,QAAQ,EAAQ,MAAM,QAAQ,CAAC;AAO7C,OAAO,EAAiB,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAe9D,OAAO,KAAK,EAGX,aAAa,EASb,MAAM,SAAS,CAAC;AAGjB,MAAM,MAAM,cAAc,GAAG;IAC5B,QAAQ,CAAC,QAAQ,CAAC,EAAE,YAAY,CAAC;IACjC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC;AAEF;;;;;;;;;GASG;AACH,wBAAgB,OAAO,CACtB,MAAM,EAAE,MAAM,EACd,OAAO,GAAE,cAA4C,GACnD,aAAa,CAcf;AA0UD,wBAAgB,iBAAiB,CAChC,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,cAAc,GACrB;IAAE,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAC;IAAC,QAAQ,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAAA;CAAE,CAMxE"}
1
+ {"version":3,"file":"compile.d.ts","sourceRoot":"","sources":["../src/compile.ts"],"names":[],"mappings":"AA0BA,OAAO,EAAE,KAAK,QAAQ,EAAQ,MAAM,QAAQ,CAAC;AAO7C,OAAO,EAAiC,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAe9E,OAAO,KAAK,EAGX,aAAa,EASb,MAAM,SAAS,CAAC;AAGjB,MAAM,MAAM,cAAc,GAAG;IAC5B,QAAQ,CAAC,QAAQ,CAAC,EAAE,YAAY,CAAC;IACjC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC;AAEF;;;;;;;;;GASG;AACH,wBAAgB,OAAO,CACtB,MAAM,EAAE,MAAM,EACd,OAAO,GAAE,cAA4C,GACnD,aAAa,CAcf;AAiVD,wBAAgB,iBAAiB,CAChC,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,cAAc,GACrB;IAAE,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAC;IAAC,QAAQ,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAAA;CAAE,CAMxE"}
package/dist/compile.js CHANGED
@@ -17,7 +17,7 @@ import { link } from "./link.js";
17
17
  import { lower } from "./lower.js";
18
18
  import { readNetlist } from "./netlist.js";
19
19
  import { partition } from "./partition.js";
20
- import { emptyRegistry } from "./registry.js";
20
+ import { emptyRegistry, registryLawFor } from "./registry.js";
21
21
  import { findDanglingActiveTerminals, synthesizeOpampImplicitBias, } from "./dangling-active-terminal.js";
22
22
  import { findOverDrivenNodes } from "./over-driven-node.js";
23
23
  import { findSupplyShorts } from "./supply-short.js";
@@ -159,7 +159,7 @@ function run(source, options) {
159
159
  ...findDeclaredDelays(program),
160
160
  ...findUnmodelledModulation(program),
161
161
  ...findRailsWithoutVoltage(netlist),
162
- ...findFetLawDefaults(netlist),
162
+ ...findFetLawDefaults(netlist, options.registry ?? emptyRegistry),
163
163
  ...findBjtLawDefaults(netlist),
164
164
  ...findOpampLawDefaults(lawed),
165
165
  ...scaled.warnings,
@@ -252,10 +252,14 @@ function findRailsWithoutVoltage(netlist) {
252
252
  });
253
253
  }
254
254
  /** JFETs stamped with the fet law's own defaults. See `FetLawDefaultWarning`. */
255
- function findFetLawDefaults(netlist) {
255
+ function findFetLawDefaults(netlist, registry) {
256
256
  const defaulted = netlist.devices.filter((device) => device.kind === "jfet" &&
257
257
  (device.parameters.thresholdVolts === undefined ||
258
- device.parameters.transconductance === undefined));
258
+ device.parameters.transconductance === undefined) &&
259
+ // A registered part runs on its catalog entry, not the class default --
260
+ // naming it here would claim the opposite. Exact part id only, the same
261
+ // rung `device-laws.ts` refines on.
262
+ registryLawFor(registry, device.identity.partNumber, "fet") === null);
259
263
  if (defaulted.length === 0)
260
264
  return [];
261
265
  const listed = defaulted.map((device) => {
@@ -1 +1 @@
1
- {"version":3,"file":"compile.js","sourceRoot":"","sources":["../src/compile.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,EAAE;AACF,oFAAoF;AACpF,kFAAkF;AAClF,+EAA+E;AAC/E,oBAAoB;AAEpB,OAAO,EACN,gBAAgB,EAChB,kBAAkB,EAClB,2BAA2B,EAC3B,kBAAkB,EAClB,2BAA2B,EAC3B,4BAA4B,EAC5B,6BAA6B,EAC7B,oBAAoB,EACpB,0BAA0B,GAC1B,MAAM,eAAe,CAAC;AACvB,OAAO,EACN,qBAAqB,EACrB,2BAA2B,GAC3B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAiB,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACx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,GAAG,IAAI,CA0D7C;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,+BAA+B,CAC9C,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,CAAC,GACtC,OAAO,CAAC,KAAK,EAAE;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,GAAG,IAAI,CA0E7C;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,4BAA4B,CAC3C,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,CAAC,GACtC,OAAO,CAAC,KAAK,EAAE;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,GAAG,IAAI,CA0D7C;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CACjC,MAAM,EAAE,SAAS,KAAK,EAAE,GACtB,SAAS,KAAK,EAAE,CAuClB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE;IACxC,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IACtC,QAAQ,CAAC,2BAA2B,EAAE,OAAO,CAAC;IAC9C,QAAQ,CAAC,yBAAyB,EAAE,OAAO,CAAC;CAC5C,GAAG,cAAc,CAcjB;AAuBD,wBAAgB,kBAAkB,CACjC,KAAK,EAAE,YAAY,EACnB,QAAQ,EAAE,OAAO,EACjB,QAAQ,EAAE,YAAY,GACpB,SAAS,oBAAoB,EAAE,CA0HjC;AAED;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CAC1C,OAAO,EAAE,OAAO,GACd,SAAS,6BAA6B,EAAE,CAoB1C"}
@@ -2150,7 +2150,21 @@ function resolveDevice(device, registry, rails, supply, taperByControl, mainsFre
2150
2150
  leakageAmps: device.parameters.leakageAmps ?? 0,
2151
2151
  },
2152
2152
  };
2153
- case "jfet":
2153
+ case "jfet": {
2154
+ // A registered part refines the class gate, exactly as `GENERIC_TUBE_GRID`'s
2155
+ // note says a registry entry should. Exact part number only -- see
2156
+ // `registryLawFor`. The refinement is the gate term alone: the channel
2157
+ // stays the declared-or-class law byte-for-byte (rank-dependent, and the
2158
+ // database beta disagrees with at least one packet's record), so a covered
2159
+ // part's channel is indistinguishable from an unregistered one's. Declared
2160
+ // Vt0/Beta win over everything, every time: the entries exist to fill
2161
+ // absence, not to overrule a packet that states the value (the same overlay
2162
+ // the diode case applies). Unregistered parts keep the class default
2163
+ // bit-identically, including the microamp gate clamp that `boss-cs-2` Q2
2164
+ // and `boss-ds-2` Q15 lean on -- a global change there would trade their
2165
+ // readable operating points for the switch fix.
2166
+ const catalogued = registryLawFor(registry, device.identity.partNumber, "fet");
2167
+ const entry = catalogued !== null && catalogued.kind === "fet" ? catalogued : null;
2154
2168
  return {
2155
2169
  outcome: "law",
2156
2170
  device: device.id,
@@ -2169,14 +2183,16 @@ function resolveDevice(device, registry, rails, supply, taperByControl, mainsFre
2169
2183
  // A JFET gate is a silicon PN junction, so it conducts once forward-biased.
2170
2184
  // Saturation current and scale are **reused from the triode grid**, which
2171
2185
  // `compact-mna-dynamic-triode-cell` reports 0 Newton failures with; the onset
2172
- // is moved from a tube grid's 0.05 V to a silicon junction's 0.5 V. These are
2173
- // not measured against any specific JFET and a registry entry should refine
2174
- // them -- the same caveat the triode's grid defaults carry.
2175
- gateSaturationCurrent: 1.0e-5,
2186
+ // is moved from a tube grid's 0.05 V to a silicon junction's 0.5 V. The
2187
+ // class default is not measured against any specific JFET: a registered
2188
+ // part refines the current through its catalog entry, and the
2189
+ // unregistered default stays exactly what it was.
2190
+ gateSaturationCurrent: entry?.gateSaturationCurrent ?? 1.0e-5,
2176
2191
  gateOnsetVolts: 0.5,
2177
2192
  gateScaleVolts: 0.06,
2178
2193
  },
2179
2194
  };
2195
+ }
2180
2196
  case "mosfet":
2181
2197
  return {
2182
2198
  outcome: "law",