RF-FIELDWORK Flux Studio

Tr1射频无源结构RF passive structures

画一次结构,
把设计空间摊开看。
Define the structure.
Explore the space.

Flux Studio 把参数化版图、EMX 求解、扫参和多目标优化接成一条流程。选中的结果交给 SNPFit,拟合成能逐段核对的等效电路。Flux Studio chains parametric layout, EMX, sweeps and multi-objective search into one workflow. Hand a chosen result to SNPFit and get an equivalent circuit you can check segment by segment.

GitHub 直接看求解结果Jump to the results
Tr1共面 1:1 变压器Coplanar 1:1 transformer0°拖动旋转drag to rotate
取自一次 EMX 候选的 GDS 多边形;层间高度为示意GDS polygons from a recorded EMX candidate; layer heights illustrative
绕组、地环、过孔与 PGS 分在四层Windings, ground ring, vias and PGS on four layers

为什么做Why

设计时间应该花在
判断上。
Spend design time
on judgement.

做一个电感或变压器,大部分时间耗在画图、配仿真和整理结果上。下面四件事,Flux Studio 各自接了过来。Most of the time on an inductor or transformer goes into drawing, setting up simulations and sorting results. Flux Studio takes over each of these four.

以前Before
在 Flux Studio 里In Flux Studio
手画电感版图Drawing inductor layouts by hand
参数化结构(开源版内置差分电感,其他结构按结构包提供),改参数直接出几何和引脚Parametric structures (differential inductor built in, others as structure packs); change a parameter, get geometry and pins
每轮重配 EMXReconfiguring EMX every round
频点、计算资源、目标与约束存成设置,下次直接载入Frequencies, compute, objectives and constraints saved as a setup you reload
来回手动调参Tuning parameters by hand, round after round
扫参和 NSGA-II 多目标搜索自动跑完,指标可以指定任意 pinSweeps and NSGA-II multi-objective search run unattended, with metrics on any pins
结果散在文件里,难以对比Results scattered across files
曲线、热图、Pareto 前沿与结果表联动Curves, heatmaps, Pareto fronts and the result table stay linked

演示片Film

一分钟看完工作流程。The workflow in about a minute.

中英文版各有配音,随页面语言切换。界面画面是 Flux Studio 的实际抓帧,用离线测试库和虚构工艺;扫参热图与 Pareto 图用真实 EMX 运行的数据绘制;SNPFit 拟合界面来自仓库示例数据。片中的变压器结构来自结构包。Chinese and English versions each have their own narration and follow the page language. Interface shots are real Flux Studio captures with an offline test library and a fictional technology; the sweep heatmap and Pareto charts are drawn from real EMX runs; the SNPFit fitting view uses the repository example data. The transformer shown in the film comes from a structure pack.


流程Workflow

三步,在一个窗口里。Three steps, one window.

Layout、EMX Settings、Sweep & Optimization 三个标签页,对应下面三步。The Layout, EMX Settings and Sweep & Optimization tabs map to the three steps below.

1

搭结构Build the structure

选器件和走线方式,按需打开 PGS 和地环,应用参数后预览几何与引脚。生成前会检查几何冲突和层约束,并把需要人工确认的项目列出来。开源版内置差分电感;单端、抽头电感和共面、叠层等变压器是独立的结构包,需要时请在 GitHub Issues 联系维护者。Pick a device and routing, add PGS or a ground ring if needed, apply parameters and preview geometry and pins. Before generating, it checks geometry conflicts and layer rules and lists anything that needs a human look. The open-source release includes the differential inductor; single-ended and tapped inductors, coplanar and stacked transformers and other structures are separate structure packs. If you need one, contact the maintainer through GitHub Issues.

  • 差分电感(内置)Differential inductor (built in)
  • 单端 / 抽头电感(结构包)Single-ended / tapped (packs)
  • 共面 / 叠层变压器(结构包)Coplanar / stacked transformers (packs)
  • PGS
  • 地环Ground ring
2

定目标Set the goals

设定频点、计算资源和扫描范围。目标和约束用下拉框选指标、规则和频率,例如在 20 GHz 最大化 Qp,同时把 Lp 限制在一个区间内。Set frequencies, compute resources and sweep ranges. Objectives and constraints come from metric, rule and frequency menus, for example maximize Qp at 20 GHz while keeping Lp inside a window.

3

读结果Read the results

曲线、热图和 Pareto 视图都连着结果表。点一个格子或一个前沿点,就能看到它的参数、L、Q、k 和可行性。Curves, heatmaps and Pareto views all link to the result table. Click a cell or a front point to see its parameters, L, Q, k and feasibility.


自动优化Auto-optimization

设好目标,
几何自己搜。
Set the goal.
Let the geometry search.

手动调参要一轮轮改参数、画版图、跑 EMX、看结果。在 Flux Studio 里,目标和约束定好之后,扫参或 NSGA-II 多目标搜索会自己改内径、线宽、间距和 leg 长度,每个候选都经过几何校验再送 EMX。Tuning by hand means round after round of tweaking, redrawing, running EMX and reading results. In Flux Studio you set objectives and constraints once; a sweep or an NSGA-II multi-objective search then varies inner diameter, trace widths, gap and leg length on its own, and every candidate passes the geometry checks before it goes to EMX.

候选几何Candidate geometry

尺寸大幅变化,校验不过的不送仿真。Big swings in size; anything that fails the checks never reaches EMX.

动图里每一帧都是 Flux Studio 实际生成并通过几何校验的一个候选,比例尺固定,所以能看出内径、线宽、间距和引线长度的变化幅度。Each frame is a candidate that Flux Studio actually generated and validated. The scale is fixed, so the swings in inner diameter, widths, gap and leg length stay visible.

动图:隐式共面 1:1 变压器(结构包),离线测试库与虚构工艺。Animation: implicit coplanar 1:1 transformer (structure pack), offline test library, fictional technology.

结构与结构包Structures and packs

开源版内置差分电感,其他结构按包提供。The differential inductor is built in; other structures come as packs.

动图依次是隐式共面 1:1 变压器的直引线和交叉引线、八边形单端电感、带中心抽头的差分电感、共面多匝变压器和叠层变压器。开源仓库只带差分电感;其余结构是独立的结构包,需要时请在 GitHub Issues 联系维护者。PGS 和地环在每种结构上都可以单独开关。In turn: the implicit coplanar 1:1 transformer with direct and crossed legs, an octagonal single-ended inductor, a differential inductor with center tap, a multi-turn coplanar transformer and a stacked transformer. The open-source repository ships the differential inductor only; the others are separate structure packs, so contact the maintainer through GitHub Issues if you need one. PGS and the ground ring can be switched on or off for every structure.

动图来自离线测试库与虚构工艺;PGS / 地环开关见下图。Captured with an offline test library and a fictional technology; the PGS / ring toggles are shown below.


Leg Pins、指标与 3D 预览Leg pins, metrics and 3D preview

pin 放在哪,
指标就算在哪。
Put pins where you need them.
Metrics follow.

引线(leg)上的端口不再只有默认的一个。Leg Pin 管理器让你在每条 leg 上放多个 pin、自由命名、拖动定位;扫参和优化里的电感、耦合指标可以指定任意 pin 组合。A leg is no longer limited to its default port. The Leg Pin manager lets you place several pins on every leg, name them and drag them into place, and sweep or optimization metrics for inductance and coupling can use any pin combination.

Leg Pin 管理器manager

一条 leg 多个 pin,名字自己起。Many pins per leg, named by you.

进入 Leg Pins 模式后,非引线几何变暗、pin 高亮。点 leg 标插入点,加 pin、删 pin、双击改名;拖动 pin 时它只沿自己的 leg 滑动,并停在直线段上。位置和长度也可以在面板里直接输入。In Leg Pins mode, everything except the legs is dimmed and pins are highlighted. Click a leg to mark an insert point, add or delete pins, double-click to rename. A dragged pin slides only along its own leg and stays on a straight run; position and length can also be typed in the panel.

动图:隐式共面 1:1 变压器(结构包),离线测试库与虚构工艺。Animation: implicit coplanar 1:1 transformer (structure pack), offline test library, fictional technology.

比例跟随Pins follow the leg

leg 变长,pin 按比例跟着走。Stretch the leg; the pins keep their place.

pin 的位置按它在 leg 上的比例保存。扫参或优化改变 leg 长度时,每个 pin 都按比例移到新位置,不需要重新摆放。A pin is stored as a ratio along its leg. When a sweep or an optimization changes the leg length, every pin moves to the matching position, with nothing to re-place.

指标指定 pinMetrics on pins

Lp、Ls 各一对 pin,k 四个。Lp and Ls take a pin pair, k takes four.

在 Sweep & Optimization 页定目标时,Lp、Ls 各指定一对 pin,k 指定两对差分 pin。同一个指标配不同 pin 可以出现多次,结果表按指标自动加列,例如 Lp[pin_1,pin_2] 和 Lp[pin_1b,pin_2]。When you set goals on the Sweep & Optimization tab, Lp and Ls each take one pin pair and k takes two differential pairs. The same metric can appear several times with different pins, and the result table adds a column per metric, such as Lp[pin_1,pin_2] and Lp[pin_1b,pin_2].

可选 3D 预览Optional 3D preview

2D、3D Studio、3D Metal 一键切换。Switch between 2D, 3D Studio and 3D Metal.

Layout 页的预览可以切到 3D Studio 或 3D Metal,拖动旋转,pin 带标签。3D 预览是可选组件,通过 Layout 3D Viewer 的嵌入接口加载;没有安装或 OpenGL 不可用时自动回到 2D。The Layout preview can switch to 3D Studio or 3D Metal; drag to rotate, with labelled pins. The 3D preview is optional and loads through the embedding interface of Layout 3D Viewer; without it, or without OpenGL, the preview falls back to 2D.

动图:隐式共面 1:1 变压器(结构包),离线测试库与虚构工艺。Animation: implicit coplanar 1:1 transformer (structure pack), offline test library, fictional technology.

Leg Pins 与 3D 并排Leg pins beside 3D

2D 里选中的 pin,3D 里标 CURRENT。The pin selected in 2D is tagged CURRENT in 3D.

在 3D 视图下进入 Leg Pins,2D 编辑画布和 3D 视图并排显示。2D 里选中哪个 pin,3D 里就把它标成 CURRENT;在 3D 里点 pin 标签,也会在编辑器里选中它。Enter Leg Pins from a 3D view and the 2D editor sits beside the 3D view. Whichever pin you select in 2D is tagged CURRENT in 3D, and clicking a pin label in 3D selects it in the editor.


求解结果Results

每个点都是一次
真实的 EMX 求解。
Every point is a real
EMX solve.

下面的图来自 OA → GDS → EMX 的实际运行。原始候选直接成图,缺的样本不用平滑曲线补。The plots below come from actual OA → GDS → EMX runs. Candidates are plotted as they are; missing samples are not smoothed over.

参数扫描Sweep

参数怎么影响 L、Q、k,一张图看完。How parameters move L, Q and k, on one sheet.

单参曲线看趋势,双参热图看组合。热图的每一格对应一个实际求解的设计。Single-parameter curves show trends; two-parameter heatmaps show combinations. Each heatmap cell is one solved design.

怎么读热图:横轴是内径 D,纵轴是绕组间距 g,颜色是 20 GHz 的 Qp,每一格是一个已求解的设计。这次运行里越往上越亮,说明间距越大 Q 越高;内径在 100 μm 附近时最好,再往大走 Q 反而下降。How to read the heatmap: inner diameter D runs across, winding gap g runs up, and color is Qp at 20 GHz; every cell is one solved design. In this run the map brightens toward the top, so a wider gap gives higher Q, and the best cells sit near D ≈ 100 μm; going larger lowers Q again.

9
单参求解点,D = 90–120 μmsingle-parameter solves, D = 90–120 μm
5×5
双参网格,D × 绕组间距two-parameter grid, D × winding gap

多目标优化Multi-objective search

没有唯一冠军,只有看得清的取舍。No single winner, but the trade-offs are plain to see.

怎么读 Pareto 图:以 Qp 和 Lp 偏离目标为两个目标时,金色前沿上的每个点,想把 Q 再提高,就得放松 Lp 的精度,反过来也一样;前沿之外的点,总能在前沿上找到一个两项都不差、至少一项更好的设计,它就是被支配的。挑设计就是沿前沿选你要的取舍。三个目标时,前沿变成一张曲面。How to read the Pareto plots: with Qp and the Lp error as the two objectives, every point on the gold front can only gain Q by giving up Lp accuracy, and the other way round. For any point off the front, some front design is no worse on both and better on at least one, so it is dominated. Choosing a design means picking your trade-off along the front. With three objectives the front becomes a surface.

同时看 Qp、目标电感误差和有符号 k。如果没有别的可行候选能在所有目标上不更差、并且至少一项更好,这个设计就在 Pareto 前沿上。沿前沿比较,就能看到改善一个目标时,其他目标怎么变。Qp, target-inductance error and signed k are weighed together. A design sits on the Pareto front when no other feasible candidate is at least as good on every objective and better on one. Move along the front to see how the other objectives change when one improves.

48
三目标运行完成的候选candidates completed in a three-objective run
27
采样得到的 Pareto 点sampled Pareto points

三维面只连接已求解的顶点,面内位置没有额外求解。有限预算下的采样前沿,不等于全局最优。The 3D surface only connects solved vertices; nothing inside a facet was simulated. A sampled front under a finite budget is not a global optimum.


SNPFit Studio

从 S 参数,
到能读的电路。
From S-parameters
to a readable circuit.

在 Flux Studio 里选中一个扫参或优化结果,一键打开 SNPFit Studio。独立的 SNPFit Studio 分两段:先建初始拓扑和参数,这时的模型还没验收,要对照源响应检查;再固定拓扑优化元件值,验收后生成原生 schematic、版图和 symbol。Flux 内的快速建模入口另有一套验证流程。Select a sweep or optimization result in Flux Studio and open SNPFit Studio in one click. The standalone SNPFit Studio works in two stages. First it builds an initial topology and values; that model is not yet validated and must be checked against the source response. Then it tunes values with the topology fixed and, once validated, generates a native schematic, layout and symbol. The quick-model entry inside Flux has its own validation flow.

拟合核对Fit check

拟合得准不准,逐点对着源数据看。Check the fit point by point against the source.

以下案例都是独立生成、提取和拟合的新样本,不属于上方的历史优化候选。同一个单圈共面样本,源 EMX 和完整拟合模型放在一起,在 1–30 GHz 的已有频点上逐点比较 L、Q 和耦合。The cases below are new, independently generated, extracted and fitted samples, not candidates from the optimization runs above. For the same single-turn coplanar sample, source EMX and the full fitted model are compared point by point for L, Q and coupling at existing 1–30 GHz samples.

4.59%
已有样点上 L 最大偏差max L deviation at existing samples
5.92%
已有样点上 Q 最大偏差max Q deviation at existing samples

三个单圈案例在目标频点都保持感性。All three single-turn cases stay inductive at the target frequency.

三个案例,每个四种视图。Three cases, four views each.

这些样例来自结构包:共面、叠层变压器和抽头电感不在开源版默认结构里,需要时请在 GitHub Issues 联系维护者。These samples come from structure packs: the coplanar and stacked transformers and the tapped inductor are not among the default open-source structures. Contact the maintainer through GitHub Issues if you need them.

两个绕组各 1 匝,内径 106.4 μm。四张图属于同一个已验收模型;schematic 里附带生成时在 5、10、20 GHz 的响应表。One turn per winding, 106.4 μm inner diameter. All four views belong to the same validated model; the schematic carries a response table at 5, 10 and 20 GHz from generation time.

两个绕组各 1 匝,内径 70 μm。独立生成、提取和拟合的叠层样本。One turn per winding, 70 μm inner diameter. An independently generated, extracted and fitted stacked sample.

单圈中心抽头,内径 70 μm。独立生成、提取和拟合的抽头样本。Single-turn center tap, 70 μm inner diameter. An independently generated, extracted and fitted tapped sample.


开源与安装Open source and install

先跑示例,
不需要 EDA 环境。
Run the example first.
No EDA tools needed.

源码以 MIT 许可证发布在 GitHub。仓库自带虚构工艺示例和用理想元件公式生成的 S 参数,离线就能看版图预览、结果视图和 SNPFit 拟合。接 Virtuoso、EMX 时,工艺数据与 license 由你自己提供。The source is on GitHub under the MIT licence. The repository ships a fictional example technology and S-parameters generated from ideal lumped-element formulas, so layout preview, result views and SNPFit fitting work offline. For Virtuoso and EMX you supply your own technology data and licences.

# 打开虚构示例,不启动任何 EDA 工具# open the fictional example; no EDA tools start
$ python3 -B app.py --example

# 单独启动 SNPFit Studio# run SNPFit Studio on its own
$ python3 -B -m snpfit gui --runtime ./local-runtime

# 重新生成合成 S 参数示例# regenerate the synthetic S-parameter examples
$ python3 -B examples/generate_synthetic.py
运行环境Runtime
Python 3.11+,Tk、NumPy、MatplotlibPython 3.11+ with Tk, NumPy and Matplotlib
可选Optional
Virtuoso/Ocean、EMX、Spectre 与你自己的工艺数据,用于原生版图生成与电磁仿真;仓库不包含Virtuoso/Ocean, EMX, Spectre and your own technology data for native layout and EM runs; not included
工艺配置Technology
层名、叠层与过孔规则放在 technology JSON 里,仓库只带虚构 generic 示例Layer names, stack and via rules live in a technology JSON; only a fictional generic example ships
结构Structures
开源版内置差分电感(可带中心抽头);单端、抽头电感和共面、叠层、隐式共面变压器等是独立结构包,需要时在 GitHub Issues 联系维护者Differential inductor (optional center tap) built in; single-ended and tapped inductors and coplanar, stacked and implicit coplanar transformers are separate structure packs, available from the maintainer through GitHub Issues
3D 预览3D preview
可选;通过 Layout 3D Viewer 的嵌入接口加载,需要 OpenGL,缺失时退回 2DOptional; loads through the Layout 3D Viewer embedding interface, needs OpenGL, falls back to 2D
许可证Licence
MIT

数据口径About the data

  • 结果来自实际的 OA → GDS → EMX 运行,属于工程仿真,不代表工艺精度、foundry DRC 签核或物理实测。Results come from actual OA → GDS → EMX runs. They are engineering simulations, not process-accuracy claims, foundry DRC sign-off or physical measurements.
  • 拟合验收限于已有样点和明确接法,不外推连续宽带或精确自谐振频率。Fit validation covers existing samples and stated connections only; it does not extrapolate to continuous broadband behavior or exact self-resonance.
  • 分段 localQ 统一在 20 GHz 计算,是局部模型损耗指标,不含互感和整体并联负载,与完整绕组 Q 不同。Segment localQ is computed at 20 GHz as a local loss indicator. It excludes mutual inductance and the overall parallel load, so it differs from full-winding Q.
  • SNPFit 分段示意不表示物理坐标。读 Q 时要带上频点、端口和返回条件。schematic 里的响应表是生成时的快照,手动改模型后不会自动更新。The SNPFit segment diagram does not represent physical coordinates. Read Q together with its frequency, ports and return conditions. The response table in the schematic is a snapshot from generation time and does not update after manual edits.
  • 演示片和动图里的界面画面来自离线测试库与虚构工艺,不对应任何真实工艺;片中热图、Pareto 图和曲面用上面这些真实 EMX 运行的数据重新绘制。Interface shots in the film and animations use an offline test library and a fictional technology, not any real process; the heatmap, Pareto plot and surface in the film are redrawn from the real EMX runs above.
  • 双目标教学图与三目标曲面来自不同运行;介绍图里的曲线为功能示意。版图配色仅用于展示。The two-objective plot and the three-objective surface come from different runs; curves in the introduction graphics are illustrative. Layout colors are for display.