OTA architecture trade-off model — checker

Phase 7 Wave 2 Python 3 checker file.

Download original file
import json
from pathlib import Path

d = json.loads(Path('starter.json').read_text())
s = d['spec']
passing = []
for name, (gain, bw, swing) in d['architectures'].items():
    if gain >= s['gain_db_min'] and bw >= s['bandwidth_mhz_min'] and swing >= s['swing_v_min']:
        passing.append(name)
assert passing == ['folded_cascode']
print(f"PASS ota_tradeoff candidates={len(d['architectures'])} spec_compliant={','.join(passing)} model=normalized")