BetterSPICE 是一款免费、开源的 SPICE 电路仿真器。
BetterSPICE is a free, open-source SPICE circuit simulator

原始链接: https://bspicesim.com/

BetterSPICE 的实时视图和 Simulate 引擎运行在同一核心上,两者均使用改进节点分析法、牛顿迭代和 ngspice 器件方程。在匹配的时间步上,1000 个示例中有 992 个产生完全相同的结果;7 个差异涉及 Gear 积分,实时视图则按梯形积分运行;另一个规模过大,无法比较。每个版本都会用 455 个电路对照 ngspice 验证:95% 的数值中,工作点匹配偏差在千亿分之一以内;95% 的交流结果偏差在 6.3 微分贝以内;瞬态差异的中位数为万亿分之二十;全部 4,647 个信号均通过。需要额外比对的情况会被标记,包括 ngspice 与独立参考结果相比有误的情况。没有 ngspice 模型的器件(如微控制器)会依据解析式或数据手册范围另行检查,不计入 ngspice 通过数。厂商模型会进行跨平台校验;一个 TI TLV9062 跟随器在 Windows、Ubuntu 和 Arch 上输出电压完全相同。用户可以运行:`bspice verify verification/circuits` 和 `bspice verify examples --all`。

Hacker News 最新 | 往期 | 评论 | 问答 | 展示 | 招聘 | 提交 登录 BetterSPICE 是一款免费的开源 SPICE 电路模拟器 (bspicesim.com) 10 分 由 zdw 1 小时前 | 往期 | 收藏 | 1 条评论 帮助 AIShill101 8 分钟前 [–] 嗯,可惜这个网站和 GitHub 仓库触发了我的 AI 垃圾内容过滤器。 不过我确实一直在找一个好用的电路模拟器。 回复 指南 | 常见问题 | 列表 | API | 安全 | 法律 | 申请加入 YC | 联系 搜索:
相关文章

原文

The live view matches Simulate, and Simulate matches ngspice

BetterSPICE has two engines on one core: the live view, which runs while you draw, and Simulate, the full transient, AC, DC and operating-point analysis. Both solve the circuit with modified nodal analysis and Newton iteration, using ngspice's device equations. At the same time step they give the same numbers: 992 of the 1,000 example circuits are identical to the last digit at Simulate's step. The other 8 are named in the test: 7 use the Gear method, which the live view runs as trapezoidal, and one result is too big to compare.

Every release is checked against ngspice on 455 test circuits. Operating points agree to better than 1 part in 100 billion on 95 % of values, AC responses within 6.3 µdB on 95 % of signals, and transients have a median difference of 20 parts per trillion of the signal's range. 4,647 of 4,647 signals pass.

A pass that needed more than the plain comparison is marked in the report. That includes the signals where ngspice was the one that was wrong, proved against an independent reference.

Parts that ngspice has no model for, such as the microcontroller, are checked against a closed form or a datasheet window and counted apart. They never count as an ngspice pass.

Vendor models get the same check across systems. A TI TLV9062 follower with 1 V in reads 1.00011272134857 V on Windows, Ubuntu and Arch.

Run the suite yourself

$ bspice verify verification/circuits
$ bspice verify examples --all
联系我们 contact @ memedata.com