开发中In development版图寄生 RC · CLI / Python API / 工作台Layout parasitic RC · CLI / Python API / workbench
rc-annot
版图改一版,抽出两万多颗寄生电阻电容,哪根线拖了后腿?rc-annot 读取抽取出的 DSPF,按 net 汇总寄生 C 和 R,把热点落到版图坐标,对比各版,再把选定 net 反标回 Spectre 网表或原理图,并逐项核对。After each layout revision the extraction returns more than twenty thousand parasitic resistors and capacitors. Which wire is hurting? rc-annot reads the extracted DSPF, sums parasitic C and R per net, puts hotspots on layout coordinates, compares revisions, back-annotates selected nets into a Spectre netlist or a schematic, and checks every item.
可以动手体验Try it by hand
Layout 实验室:拖参数,看版图和寄生一起变Layout Lab: drag a parameter, watch layout and parasitics change
以 Class-B 和 Hegazi tail 为例,直接调电感、腿、阵列接法、线宽和叠层,版图实时重排,违例当场标红,每一位 P/N 两侧的寄生 R、C 同步更新。看完点左下角就能回到这里。Using Class-B and Hegazi tail, tune the coil, legs, array connection, wire widths and metal stack; the layout rearranges live, violations light up, and per-bit P/N parasitic R and C update with it. The button at the bottom left brings you back here.
抽出来的东西太多,
看不出重点Too much comes out
to see what matters
例子是一个 class-B CMOS VCO,最终版的 DSPF 有 21,365 个电阻行和 2,319 个电容行。逐行看没有意义,要的是每个 net 一个 C、一个 R,以及这个 R 落在哪一段走线上。The example is a class-B CMOS VCO. Its final-revision DSPF holds 21,365 resistor lines and 2,319 capacitor lines. Reading them one by one gets nowhere. What you need is one C and one R per net, and where along the wire that R sits.
- 读入Input
- Calibre xRC 抽取的 DSPF,加上 LVS 对应关系(版图 net 到原理图 net)。A DSPF from Calibre xRC, plus the LVS mapping from layout nets to schematic nets.
- 汇总Summary
- 每个 net 的总电容(对地加耦合)和有效电阻,C 和 R 分别排序。Per-net total capacitance (to ground plus coupling) and effective resistance, ranked separately for C and R.
- 输出Output
- CSV 和 JSON 汇总、热点坐标、版本对比,以及反标后的网表或原理图。CSV and JSON summaries, hotspot coordinates, revision comparisons, and the annotated netlist or schematic.
一条命令,
汇总加反标One command:
summary and annotation
rcannot postlayout 读入抽取结果,汇总、反标并自检。四版各跑一次,耗时 1.40、1.25、1.68、1.20 秒,平均约 1.4 秒。rcannot postlayout reads the extraction, summarises, annotates and self-checks. Four revisions took 1.40, 1.25, 1.68 and 1.20 s, about 1.4 s on average.
$ rcannot postlayout VCO_DUT.dspf \
--netlist circuit.scs --map lvs2sim.txt \
--tank OUTP,OUTN,CT_MAIN/IB*/BOT_* \
--dc SP=… --dc VDD=… --dc VSS=…
# 每版输出相同的三行 / the same three lines per revision
items C=21 CC=0 R=47
annotate scope VCO_ClassB_CMOS: 68 applied, 0 warnings
OK: 68/68 items realised, 0 extra RCA elements
- summary
- 只汇总,不改网表。Summary only; the netlist is untouched.
- annotate-netlist
- 把选定 net 写成一个 C,谐振节点再加 star R,写入 Spectre 网表。Writes each selected net as one C, adds a star R on tank nodes, and emits a Spectre netlist.
- verify-netlist
- 逐项比对反标网表的数值、节点和端子。Compares the annotated netlist item by item: values, nodes and terminals.
- Python API
- 同样的步骤可以在脚本里调用,给优化循环用。The same steps can be called from a script, for use inside an optimisation loop.
每个 net 的 C 和 R,
从高到低排好Per-net C and R,
ranked high to low
工作台里一版一页。Overview 给 net 数、总电容和最差电阻,Capacitance 和 Resistance 各画一张降序条形图,Optimization advisor 列出明显偏高的走线。The workbench keeps one page per revision. Overview shows net count, total capacitance and worst resistance. Capacitance and Resistance each draw a descending bar chart, and the optimisation advisor lists wires that stand out.
四版对比,
改动落在哪Four revisions:
what the edit changed
Compare / History 把同一 net 在各版的 C 或 R 连成线,也可以选一版做基线,看逐 net 的变化。Compare / History plots one net’s C or R across revisions, or takes one revision as the baseline and shows the change per net.
开关下极板电阻减半The switch bottom-plate resistance halves
第二版(it1)起,net CT_MAIN/IB3/BOT_N 上开关漏极到电容下极板的电阻从 2.58 Ω 降到 1.26 Ω。代价是这个 net 的电容从 6.6 fF 升到 8.3 fF。after 和 final 与 it1 在这个量上相同。From the second revision (it1) the resistance on net CT_MAIN/IB3/BOT_N, from the switch drain to the capacitor bottom plate, drops from 2.58 Ω to 1.26 Ω. The cost is capacitance on that net, 6.6 fF to 8.3 fF. After and final match it1 on this quantity.
- R 2.58 → 1.26 Ω
- C 6.6 → 8.3 fF
只有 4 个 BOT_N 变了Only four BOT_N nets moved
以 before 为基线,it1 的 ΔR_max 条形图里只有 IB0 到 IB3 的 BOT_N 四个 net 有明显变化,其余 net 基本不动。With before as the baseline, the ΔR_max chart for it1 shows visible change only on the four BOT_N nets, IB0 to IB3. The other nets barely move.

热点落到版图坐标Hotspots on layout coordinates
选一个 net 和两个端子,Hotspots 把这条路径上的电阻损耗按坐标分簇,列出每簇的占比、段数和包围框(µm)。Pick a net and two terminals. Hotspots clusters the resistive loss along that path by coordinate and lists each cluster’s share, segment count and bounding box in µm.
一段约 12 µm 的走线占六成About 12 µm of wire carries 60 %
before 版中,开关漏极到电容下极板这条路径的有效电阻是 2.583 Ω,最大的一簇占 60.15 %,横向约 11.9 µm。到 it1,同一路径降到 1.259 Ω,最大一簇只占 8.1 %。In the before revision the effective resistance on the path from the switch drain to the capacitor bottom plate is 2.583 Ω, and the largest cluster takes 60.15 %, spanning about 11.9 µm. In it1 the same path falls to 1.259 Ω and the largest cluster takes only 8.1 %.
- before 2.583 Ω · 60.15 %
- it1 1.259 Ω · 8.1 %

反标:每个 net 一个 C,
谐振节点加 star RAnnotation: one C per net,
a star R on tank nodes
前仿网表原样保留,只追加 RCA_ 开头的元件。反标前可以在 Annotation 页预览每个 net 的 C 和 R,再写网表,或在 Virtuoso 里新建 schematic_rcann 视图,原 schematic 不动。The pre-layout netlist is kept as is, with only RCA_ elements added. Preview each net’s C and R on the Annotation page first, then write the netlist, or create a schematic_rcann view in Virtuoso and leave the original schematic untouched.
先预览,再写入Preview, then write
例子中选了 21 个 C 和 47 个 R,共 68 项。OUTP 收成一个 62.97 fF 的 C,另有 6 颗 star R,每个器件端子一颗,阻值 0.026 到 0.80 Ω。The example selects 21 C and 47 R, 68 items in all. OUTP becomes one 62.97 fF C plus six star R, one per device terminal, 0.026 to 0.80 Ω.
RCA_C_OUTP (OUTP VSS) capacitor c=6.2967e-14
RCA_R_OUTP (OUTP OUTP__rca) resistor r=0.448541
RCA_R_OUTP_2 (OUTP OUTP__rca2) resistor r=0.64572
…在原理图里看到同样的结构The same structure in the schematic
器件端子改接 DP_rca,经 star R 回到 DP。截图取自 Virtuoso 只读打开的 schematic_rcann 视图。Device terminals are rewired to DP_rca and return to DP through a star R. The capture is a read-only Virtuoso view of schematic_rcann.
核对:68/68,
频率只差 0.06 %Verification: 68/68,
frequency within 0.06 %
verify-netlist 逐项比对,68 项全部落实,没有多余的 RCA 元件。同一测试台上,反标原理图的振荡频率与全 RC 后仿只差 −0.06 %。verify-netlist compared all 68 items and every one is realised, with no extra RCA elements. On the same testbench, the annotated schematic oscillates within −0.06 % of the full-RC post-layout simulation.
条长从 0 起算。反标对全 RC:频率 −0.06 %,幅度 +0.7 %;前仿相对全 RC 偏高 6.4 %。Bars start at 0. Annotated vs full RC: frequency −0.06 %, amplitude +0.7 %. Pre-layout reads 6.4 % above full RC.
按版本看每个 netEach net, by revision
选一版,两张图重画:左边是每个 net 的总电容 C_total,右边是最大电阻 R_max,数字来自汇总输出。后三版相对 before 只有少数几个 net 的数值在变,主要是 4 个 BOT_N。Pick a revision and both charts redraw: C_total per net on the left, R_max on the right, taken from the summary output. Against before, only a handful of nets change in the last three revisions, mainly the four BOT_N nets.
C_total · fF · 平方根刻度square-root scale
R_max · Ω
现在能做什么,
还不能做什么What works now,
and what does not yet
rc-annot 还在开发中,接口和输出格式可能变动。rc-annot is still in development. Interfaces and output formats may change.
- 验证范围Validation scope
- 本页的数字都来自一个 class-B CMOS VCO 的四版版图。频率对比只做了这一个设计,不代表别的电路。Every number on this page comes from four layout revisions of one class-B CMOS VCO. The frequency comparison covers that single design only.
- 反标取舍Annotation trade-off
- 每个 net 收成一个集总 C,只在选定的谐振节点加 star R。这是简化模型,不等同于完整的 RC 网络。Each net is lumped into one C, and a star R is added only on the selected tank nodes. This is a simplified model, not the full RC network.
- 输入依赖Inputs
- 需要 Calibre xRC 的 DSPF 和 LVS 对应关系;反标原理图和 Spectre 仿真需要自有的 Virtuoso、Spectre 环境。Needs a Calibre xRC DSPF and the LVS mapping. Annotating a schematic and running Spectre need your own Virtuoso and Spectre environment.
- 未发布Not released
- 目前没有版本号、下载或公开仓库。There is no version number, download or public repository yet.
演示片Film
寄生 RC,一键看清Parasitic RC at a glance
竖屏短片,54 秒。工作台、原理图和核对数字来自真实运行,版图改动的示意画面在片中已标注。A 54-second vertical film. The workbench, schematic and check figures come from real runs; the layout-change sketch is labelled as illustrative in the film. The narration is in Chinese; an English version is in progress.