@vessel-dsp/compiler 0.0.0-stage → 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 +118 -2
- package/dist/bake.d.ts +38 -0
- package/dist/bake.d.ts.map +1 -0
- package/dist/bake.js +101 -0
- package/dist/bake.js.map +1 -0
- package/dist/bbd-clock.d.ts +171 -0
- package/dist/bbd-clock.d.ts.map +1 -0
- package/dist/bbd-clock.js +1750 -0
- package/dist/bbd-clock.js.map +1 -0
- package/dist/block-row.d.ts +51 -0
- package/dist/block-row.d.ts.map +1 -0
- package/dist/block-row.js +17 -0
- package/dist/block-row.js.map +1 -0
- package/dist/bypass.d.ts +3 -0
- package/dist/bypass.d.ts.map +1 -0
- package/dist/bypass.js +228 -0
- package/dist/bypass.js.map +1 -0
- package/dist/compile.d.ts +24 -0
- package/dist/compile.d.ts.map +1 -0
- package/dist/compile.js +348 -0
- package/dist/compile.js.map +1 -0
- package/dist/converter-scale.d.ts +14 -0
- package/dist/converter-scale.d.ts.map +1 -0
- package/dist/converter-scale.js +133 -0
- package/dist/converter-scale.js.map +1 -0
- package/dist/couple.d.ts +28 -0
- package/dist/couple.d.ts.map +1 -0
- package/dist/couple.js +567 -0
- package/dist/couple.js.map +1 -0
- package/dist/dangling-active-terminal.d.ts +47 -0
- package/dist/dangling-active-terminal.d.ts.map +1 -0
- package/dist/dangling-active-terminal.js +542 -0
- package/dist/dangling-active-terminal.js.map +1 -0
- package/dist/declared-program.d.ts +23 -0
- package/dist/declared-program.d.ts.map +1 -0
- package/dist/declared-program.js +387 -0
- package/dist/declared-program.js.map +1 -0
- package/dist/denomination.d.ts +48 -0
- package/dist/denomination.d.ts.map +1 -0
- package/dist/denomination.js +27 -0
- package/dist/denomination.js.map +1 -0
- package/dist/device-laws.d.ts +237 -0
- package/dist/device-laws.d.ts.map +1 -0
- package/dist/device-laws.js +3513 -0
- package/dist/device-laws.js.map +1 -0
- package/dist/diagnostics.d.ts +13 -0
- package/dist/diagnostics.d.ts.map +1 -0
- package/dist/diagnostics.js +19 -0
- package/dist/diagnostics.js.map +1 -0
- package/dist/emit.d.ts +8 -0
- package/dist/emit.d.ts.map +1 -0
- package/dist/emit.js +43 -0
- package/dist/emit.js.map +1 -0
- package/dist/errors.d.ts +22 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +39 -0
- package/dist/errors.js.map +1 -0
- package/dist/firmware-class.d.ts +69 -0
- package/dist/firmware-class.d.ts.map +1 -0
- package/dist/firmware-class.js +20 -0
- package/dist/firmware-class.js.map +1 -0
- package/dist/fixtures/circuits.d.ts +1742 -0
- package/dist/fixtures/circuits.d.ts.map +1 -0
- package/dist/fixtures/circuits.js +13896 -0
- package/dist/fixtures/circuits.js.map +1 -0
- package/dist/fixtures/expected.d.ts +261 -0
- package/dist/fixtures/expected.d.ts.map +1 -0
- package/dist/fixtures/expected.js +315 -0
- package/dist/fixtures/expected.js.map +1 -0
- package/dist/fixtures/index.d.ts +4 -0
- package/dist/fixtures/index.d.ts.map +1 -0
- package/dist/fixtures/index.js +8 -0
- package/dist/fixtures/index.js.map +1 -0
- package/dist/fixtures/registry.d.ts +52 -0
- package/dist/fixtures/registry.d.ts.map +1 -0
- package/dist/fixtures/registry.js +341 -0
- package/dist/fixtures/registry.js.map +1 -0
- package/dist/generic-tube-fit.d.ts +12 -0
- package/dist/generic-tube-fit.d.ts.map +1 -0
- package/dist/generic-tube-fit.js +45 -0
- package/dist/generic-tube-fit.js.map +1 -0
- package/dist/grounded-clock-supply.d.ts +13 -0
- package/dist/grounded-clock-supply.d.ts.map +1 -0
- package/dist/grounded-clock-supply.js +45 -0
- package/dist/grounded-clock-supply.js.map +1 -0
- package/dist/identify.d.ts +50 -0
- package/dist/identify.d.ts.map +1 -0
- package/dist/identify.js +319 -0
- package/dist/identify.js.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +19 -0
- package/dist/index.js.map +1 -0
- package/dist/inert-controls.d.ts +15 -0
- package/dist/inert-controls.d.ts.map +1 -0
- package/dist/inert-controls.js +266 -0
- package/dist/inert-controls.js.map +1 -0
- package/dist/latch-seed.d.ts +53 -0
- package/dist/latch-seed.d.ts.map +1 -0
- package/dist/latch-seed.js +257 -0
- package/dist/latch-seed.js.map +1 -0
- package/dist/link.d.ts +7 -0
- package/dist/link.d.ts.map +1 -0
- package/dist/link.js +270 -0
- package/dist/link.js.map +1 -0
- package/dist/lower.d.ts +79 -0
- package/dist/lower.d.ts.map +1 -0
- package/dist/lower.js +1855 -0
- package/dist/lower.js.map +1 -0
- package/dist/netlist.d.ts +79 -0
- package/dist/netlist.d.ts.map +1 -0
- package/dist/netlist.js +4746 -0
- package/dist/netlist.js.map +1 -0
- package/dist/non-executable-clock-drivers.d.ts +8 -0
- package/dist/non-executable-clock-drivers.d.ts.map +1 -0
- package/dist/non-executable-clock-drivers.js +33 -0
- package/dist/non-executable-clock-drivers.js.map +1 -0
- package/dist/open-category.d.ts +98 -0
- package/dist/open-category.d.ts.map +1 -0
- package/dist/open-category.js +111 -0
- package/dist/open-category.js.map +1 -0
- package/dist/over-driven-node.d.ts +33 -0
- package/dist/over-driven-node.d.ts.map +1 -0
- package/dist/over-driven-node.js +188 -0
- package/dist/over-driven-node.js.map +1 -0
- package/dist/part-catalog.d.ts +15 -0
- package/dist/part-catalog.d.ts.map +1 -0
- package/dist/part-catalog.js +6712 -0
- package/dist/part-catalog.js.map +1 -0
- package/dist/part-number.d.ts +32 -0
- package/dist/part-number.d.ts.map +1 -0
- package/dist/part-number.js +80 -0
- package/dist/part-number.js.map +1 -0
- package/dist/partition.d.ts +7 -0
- package/dist/partition.d.ts.map +1 -0
- package/dist/partition.js +242 -0
- package/dist/partition.js.map +1 -0
- package/dist/port-full-scale.d.ts +70 -0
- package/dist/port-full-scale.d.ts.map +1 -0
- package/dist/port-full-scale.js +235 -0
- package/dist/port-full-scale.js.map +1 -0
- package/dist/pot-orientation.d.ts +114 -0
- package/dist/pot-orientation.d.ts.map +1 -0
- package/dist/pot-orientation.js +551 -0
- package/dist/pot-orientation.js.map +1 -0
- package/dist/power-domain-control.d.ts +40 -0
- package/dist/power-domain-control.d.ts.map +1 -0
- package/dist/power-domain-control.js +142 -0
- package/dist/power-domain-control.js.map +1 -0
- package/dist/proxy-declaration.d.ts +121 -0
- package/dist/proxy-declaration.d.ts.map +1 -0
- package/dist/proxy-declaration.js +50 -0
- package/dist/proxy-declaration.js.map +1 -0
- package/dist/registry.d.ts +323 -0
- package/dist/registry.d.ts.map +1 -0
- package/dist/registry.js +192 -0
- package/dist/registry.js.map +1 -0
- package/dist/sparse-schedule.d.ts +65 -0
- package/dist/sparse-schedule.d.ts.map +1 -0
- package/dist/sparse-schedule.js +421 -0
- package/dist/sparse-schedule.js.map +1 -0
- package/dist/speaker-load.d.ts +38 -0
- package/dist/speaker-load.d.ts.map +1 -0
- package/dist/speaker-load.js +97 -0
- package/dist/speaker-load.js.map +1 -0
- package/dist/stage-coverage.d.ts +21 -0
- package/dist/stage-coverage.d.ts.map +1 -0
- package/dist/stage-coverage.js +124 -0
- package/dist/stage-coverage.js.map +1 -0
- package/dist/stamp-partition.d.ts +314 -0
- package/dist/stamp-partition.d.ts.map +1 -0
- package/dist/stamp-partition.js +472 -0
- package/dist/stamp-partition.js.map +1 -0
- package/dist/supply-reference.d.ts +19 -0
- package/dist/supply-reference.d.ts.map +1 -0
- package/dist/supply-reference.js +66 -0
- package/dist/supply-reference.js.map +1 -0
- package/dist/supply-short.d.ts +32 -0
- package/dist/supply-short.d.ts.map +1 -0
- package/dist/supply-short.js +118 -0
- package/dist/supply-short.js.map +1 -0
- package/dist/supply-stamps.d.ts +51 -0
- package/dist/supply-stamps.d.ts.map +1 -0
- package/dist/supply-stamps.js +363 -0
- package/dist/supply-stamps.js.map +1 -0
- package/dist/terminal-role.d.ts +109 -0
- package/dist/terminal-role.d.ts.map +1 -0
- package/dist/terminal-role.js +46 -0
- package/dist/terminal-role.js.map +1 -0
- package/dist/terminal-roles.d.ts +59 -0
- package/dist/terminal-roles.d.ts.map +1 -0
- package/dist/terminal-roles.js +92 -0
- package/dist/terminal-roles.js.map +1 -0
- package/dist/transformer.d.ts +181 -0
- package/dist/transformer.d.ts.map +1 -0
- package/dist/transformer.js +476 -0
- package/dist/transformer.js.map +1 -0
- package/dist/types.d.ts +3157 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +11 -0
- package/dist/types.js.map +1 -0
- package/dist/unbounded-operating-point.d.ts +35 -0
- package/dist/unbounded-operating-point.d.ts.map +1 -0
- package/dist/unbounded-operating-point.js +181 -0
- package/dist/unbounded-operating-point.js.map +1 -0
- package/dist/unexecuted-region.d.ts +3 -0
- package/dist/unexecuted-region.d.ts.map +1 -0
- package/dist/unexecuted-region.js +122 -0
- package/dist/unexecuted-region.js.map +1 -0
- package/dist/unimplemented-control-role.d.ts +3 -0
- package/dist/unimplemented-control-role.d.ts.map +1 -0
- package/dist/unimplemented-control-role.js +61 -0
- package/dist/unimplemented-control-role.js.map +1 -0
- package/dist/unreachable-output.d.ts +3 -0
- package/dist/unreachable-output.d.ts.map +1 -0
- package/dist/unreachable-output.js +97 -0
- package/dist/unreachable-output.js.map +1 -0
- package/dist/unreadable-terminal-role.d.ts +67 -0
- package/dist/unreadable-terminal-role.d.ts.map +1 -0
- package/dist/unreadable-terminal-role.js +409 -0
- package/dist/unreadable-terminal-role.js.map +1 -0
- package/dist/unverified-pinout.d.ts +27 -0
- package/dist/unverified-pinout.d.ts.map +1 -0
- package/dist/unverified-pinout.js +121 -0
- package/dist/unverified-pinout.js.map +1 -0
- package/package.json +75 -5
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { declaredRegulatorTerminals } from "./device-laws.js";
|
|
2
|
+
import { identify, mayCarryRegistrySections, requiresIdentification, } from "./identify.js";
|
|
3
|
+
import { foldToken, pinoutMatches, terminalWithRole } from "./registry.js";
|
|
4
|
+
/**
|
|
5
|
+
* The entry a part identified to, or null.
|
|
6
|
+
*
|
|
7
|
+
* Matched on the resolved `partId` against both id lists, because `identify` returns a part id
|
|
8
|
+
* that may have come from either -- an `exact-part` match resolves through `partIds`, a
|
|
9
|
+
* `declared-type` match through `declaredTypes`.
|
|
10
|
+
*/
|
|
11
|
+
function entryFor(partId, registry) {
|
|
12
|
+
// Folded on both sides, because `identify` matches folded and this looked up raw: a part that
|
|
13
|
+
// resolved through a declared type spelled differently from the registry's copy would fail to
|
|
14
|
+
// find its own entry here and silently lose its pinout check. `Circuit.LED`/`Circuit.Led` is
|
|
15
|
+
// the spelling the corpus actually varies on today.
|
|
16
|
+
const folded = foldToken(partId);
|
|
17
|
+
for (const entry of registry.entries) {
|
|
18
|
+
if (entry.partIds.some((id) => foldToken(id) === folded) ||
|
|
19
|
+
entry.declaredTypes.some((type) => foldToken(type) === folded)) {
|
|
20
|
+
return entry;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Does this device's pin-to-law-slot mapping rest on nothing but the order its terminals were
|
|
27
|
+
* written in?
|
|
28
|
+
*
|
|
29
|
+
* `expandRegistrySections` has three rungs. A clean bijection from the entry's role groups onto
|
|
30
|
+
* the device's terminal names wires by role. Failing that, `pinoutMatches` checks the device's
|
|
31
|
+
* names against the entry's `pinout` position by position -- but **a position the entry leaves
|
|
32
|
+
* `null` is unchecked**, so an entry whose pinout is null throughout accepts any order at all.
|
|
33
|
+
* Failing both, the device is refused.
|
|
34
|
+
*
|
|
35
|
+
* This finds the middle rung with nothing left to check: the mapping is the declaration order,
|
|
36
|
+
* and no side asserts what that order means.
|
|
37
|
+
*/
|
|
38
|
+
function bindsByUnverifiedOrder(device, entry) {
|
|
39
|
+
if (entry.model.kind !== "sections" && entry.model.kind !== "sections-core") {
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
// **A declared supply binding takes the section before any of this runs.** Without this the
|
|
43
|
+
// warning fired on `moogerfooger-mf-102`'s `U13` after its packet declared `positive` and
|
|
44
|
+
// `ground` on it -- reporting an unverified order for a device whose order the document had
|
|
45
|
+
// just settled, which is the same defect as a warning naming a mechanism the compiler did
|
|
46
|
+
// not use.
|
|
47
|
+
if (declaredRegulatorTerminals(device, entry.model) !== null) {
|
|
48
|
+
return false;
|
|
49
|
+
}
|
|
50
|
+
const roles = device.identity.terminalRoles;
|
|
51
|
+
const groups = entry.terminalRoleGroups;
|
|
52
|
+
const positions = groups.map((group) => terminalWithRole(roles, group));
|
|
53
|
+
const boundByRole = groups.length > 0 &&
|
|
54
|
+
groups.length === roles.length &&
|
|
55
|
+
positions.every((position) => position !== null) &&
|
|
56
|
+
new Set(positions).size === positions.length;
|
|
57
|
+
if (boundByRole) {
|
|
58
|
+
return false;
|
|
59
|
+
}
|
|
60
|
+
if (!pinoutMatches(entry.model.pinout, roles)) {
|
|
61
|
+
return false; // Refused elsewhere, and a refusal is not a silent binding.
|
|
62
|
+
}
|
|
63
|
+
return entry.model.pinout.every((position) => position === null);
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Parts whose terminals are mapped to law slots by declaration order alone.
|
|
67
|
+
*
|
|
68
|
+
* **Measured 2026-09-03: 30 devices across 21 packets, and one of them is wrong.**
|
|
69
|
+
* (55 corpus devices take the positional rung; the 30 are those whose entry pinout is null
|
|
70
|
+
* throughout, so nothing checks the order at all.)
|
|
71
|
+
* `moogerfooger-mf-102`'s `U13` is a 78L05 whose three terminals are `pin1`/`pin2`/`pin3`, and the
|
|
72
|
+
* order the entry assumed puts the regulator's reference on the pedal's own rail: node 3 carries
|
|
73
|
+
* 24 devices and solves to **-4.9989 V**, so 18 of the packet's 26 active devices sit dark with
|
|
74
|
+
* their base-emitter junctions reverse-biased by a whole supply.
|
|
75
|
+
*
|
|
76
|
+
* **There is no connectivity rule to fall back on, and that was tested rather than assumed.**
|
|
77
|
+
* "The reference is the grounded terminal and the output is the busier of the rest" agrees with
|
|
78
|
+
* four of the corpus's named regulators, disagrees with `boss-dd-3b`'s `TA78L05F`, and cannot
|
|
79
|
+
* apply to `boss-rv-3`, whose 78L05 has no terminal on ground at all. A rule that fixes one
|
|
80
|
+
* packet and breaks another is not a rule.
|
|
81
|
+
*
|
|
82
|
+
* Nor does the corpus agree on the order itself: three packets name a 78Lxx `in, gnd, out` and
|
|
83
|
+
* `electro-harmonix-q-tron` names it `in, out, ground`. So this is reported rather than repaired
|
|
84
|
+
* -- the order has to be asserted by the entry's `pinout` or by the document's own terminal
|
|
85
|
+
* roles, and until one of them does, an author who writes a package's pins in a different order
|
|
86
|
+
* gets a different circuit with no diagnostic.
|
|
87
|
+
*/
|
|
88
|
+
export function findUnverifiedPinoutBindings(netlist, registry) {
|
|
89
|
+
const warnings = [];
|
|
90
|
+
for (const device of netlist.devices) {
|
|
91
|
+
if (!requiresIdentification(device) || !mayCarryRegistrySections(device)) {
|
|
92
|
+
continue;
|
|
93
|
+
}
|
|
94
|
+
let identity;
|
|
95
|
+
try {
|
|
96
|
+
identity = identify(device, registry);
|
|
97
|
+
}
|
|
98
|
+
catch {
|
|
99
|
+
continue;
|
|
100
|
+
}
|
|
101
|
+
if (identity === null) {
|
|
102
|
+
continue;
|
|
103
|
+
}
|
|
104
|
+
const entry = entryFor(identity.partId, registry);
|
|
105
|
+
if (entry === null || !bindsByUnverifiedOrder(device, entry)) {
|
|
106
|
+
continue;
|
|
107
|
+
}
|
|
108
|
+
warnings.push({
|
|
109
|
+
code: "unverified-pinout-binding",
|
|
110
|
+
device: device.id,
|
|
111
|
+
partNumber: identity.partId,
|
|
112
|
+
detail: `${identity.partId} ${device.id} has its ${device.nodes.length} terminals mapped to ` +
|
|
113
|
+
"law slots by the order they were written in: its registry entry states no pinout " +
|
|
114
|
+
"and its terminal names do not resolve onto the entry's role groups, so nothing " +
|
|
115
|
+
"asserts what that order means. A document listing the same package's pins in a " +
|
|
116
|
+
"different order compiles to a different circuit.",
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
return warnings;
|
|
120
|
+
}
|
|
121
|
+
//# sourceMappingURL=unverified-pinout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unverified-pinout.js","sourceRoot":"","sources":["../src/unverified-pinout.ts"],"names":[],"mappings":"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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,76 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
"name": "@vessel-dsp/compiler",
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"description": "Headless circuit compiler turning .vdsp documents into executable simulation Programs.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"guitar-pedal",
|
|
7
|
+
"electronics",
|
|
8
|
+
"simulation",
|
|
9
|
+
"dsp",
|
|
10
|
+
"compiler",
|
|
11
|
+
"mna",
|
|
12
|
+
"circuit"
|
|
13
|
+
],
|
|
14
|
+
"homepage": "https://vessel-dsp.github.io/core/",
|
|
15
|
+
"bugs": {
|
|
16
|
+
"url": "https://github.com/vessel-dsp/core/issues"
|
|
17
|
+
},
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/vessel-dsp/core.git"
|
|
21
|
+
},
|
|
22
|
+
"license": "MIT",
|
|
23
|
+
"sideEffects": false,
|
|
24
|
+
"type": "module",
|
|
25
|
+
"exports": {
|
|
26
|
+
".": {
|
|
27
|
+
"types": "./dist/index.d.ts",
|
|
28
|
+
"bun": "./dist/index.js",
|
|
29
|
+
"import": "./dist/index.js"
|
|
30
|
+
},
|
|
31
|
+
"./diagnostics": {
|
|
32
|
+
"types": "./dist/diagnostics.d.ts",
|
|
33
|
+
"bun": "./dist/diagnostics.js",
|
|
34
|
+
"import": "./dist/diagnostics.js"
|
|
35
|
+
},
|
|
36
|
+
"./fixtures": {
|
|
37
|
+
"types": "./dist/fixtures/index.d.ts",
|
|
38
|
+
"bun": "./dist/fixtures/index.js",
|
|
39
|
+
"import": "./dist/fixtures/index.js"
|
|
40
|
+
},
|
|
41
|
+
"./fixtures/*": {
|
|
42
|
+
"types": "./dist/fixtures/*.d.ts",
|
|
43
|
+
"bun": "./dist/fixtures/*.js",
|
|
44
|
+
"import": "./dist/fixtures/*.js"
|
|
45
|
+
},
|
|
46
|
+
"./package.json": {
|
|
47
|
+
"default": "./package.json"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"main": "./dist/index.js",
|
|
51
|
+
"module": "./dist/index.js",
|
|
52
|
+
"types": "./dist/index.d.ts",
|
|
53
|
+
"files": [
|
|
54
|
+
"dist",
|
|
55
|
+
"README.md",
|
|
56
|
+
"LICENSE.md"
|
|
57
|
+
],
|
|
58
|
+
"scripts": {
|
|
59
|
+
"build": "tsc -p tsconfig.build.json && bun run ../../scripts/fix-dist-imports.ts dist",
|
|
60
|
+
"clean": "rm -rf dist",
|
|
61
|
+
"prepack": "bun run --cwd ../core build && bun run build",
|
|
62
|
+
"pack:dry-run": "npm pack --dry-run",
|
|
63
|
+
"typecheck": "tsc --noEmit -p tsconfig.json",
|
|
64
|
+
"test": "bun test tests"
|
|
65
|
+
},
|
|
66
|
+
"dependencies": {
|
|
67
|
+
"@vessel-dsp/core": "0.16.0",
|
|
68
|
+
"js-yaml": "^4.1.0"
|
|
69
|
+
},
|
|
70
|
+
"devDependencies": {
|
|
71
|
+
"@types/js-yaml": "^4.0.9"
|
|
72
|
+
},
|
|
73
|
+
"publishConfig": {
|
|
74
|
+
"access": "public"
|
|
75
|
+
}
|
|
76
|
+
}
|