@mica-js/simulator 0.4.0 → 1.0.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 CHANGED
@@ -1,3 +1,13 @@
1
1
  # @mica-js/simulator
2
2
 
3
- 在虚拟时钟上运行电路与原理图器件。`@mica-js/simulator` 提供统一 IR 的 `Circuit`,以及用于原理图集成的 `DeviceSimulationHost`;`@mica-js/simulator/sandbox` 提供沙箱宿主接入。本包不内建任何具体器件模型,器件定义由调用方提供。
3
+ 在虚拟时钟上编译和运行电路与原理图器件,提供电气求解、器件状态访问和宿主集成。器件描述、行为工厂与器件库由调用方提供,本包不内置具体器件模型。
4
+
5
+ 仿真运行时可在宿主中直接使用,也可通过现有沙箱接入。编辑器界面和文档持久化由上层应用负责。
6
+
7
+ ## 主要入口
8
+
9
+ - `@mica-js/simulator`:`compileCircuit`、`Circuit` 及原理图仿真宿主工厂。
10
+ - `DeviceSimulationHost`:原理图加载、虚拟时钟推进和主题通信的宿主契约。
11
+ - `@mica-js/simulator/sandbox`:沙箱环境中的仿真宿主接入。
12
+
13
+ 器件定义与接口约定见 [RFC](../../docs/rfc/)。