From 06a497636e84dc67469fad231a4ff28939c84ff3 Mon Sep 17 00:00:00 2001 From: chentianya Date: Mon, 24 Aug 2026 09:31:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E6=A1=A3=EF=BC=9Aexecutor=20=E8=AE=A1?= =?UTF-8?q?=E5=88=92=E9=A1=B9=E2=80=94=E2=80=94=E5=8F=AF=E9=80=89=20--side?= =?UTF-8?q?car=20=E5=8F=82=E6=95=B0=EF=BC=88=E6=98=BE=E5=BC=8F=E6=8C=87?= =?UTF-8?q?=E5=AE=9A=20I/O=20=E7=BB=91=E5=AE=9A=E6=96=87=E4=BB=B6=EF=BC=8C?= =?UTF-8?q?=E7=BC=BA=E7=9C=81=E5=9B=9E=E9=80=80=E5=90=8C=E5=90=8D=E6=8E=A8?= =?UTF-8?q?=E5=AF=BC=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Doc/executor/执行器入口.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Doc/executor/执行器入口.md b/Doc/executor/执行器入口.md index bad9343..263f274 100644 --- a/Doc/executor/执行器入口.md +++ b/Doc/executor/执行器入口.md @@ -15,6 +15,11 @@ BytecodeExecutor .stb [--cycles N] [--replay ] [--step] - `--step`:单步——采样 I 后逐指令打印(pc/fn/反汇编 + 执行后非零寄存器),跑 1 个周期,最后打印 I/Q - 每周期打印 `cycle N: I=[...] Q=[...]`(按 sidecar 绑定顺序);故障打印 `FAULT(n)` 并退出码 1 +### sidecar 定位(当前 + 计划) + +- **当前(已实现)**:sidecar 路径按「同名替换扩展名」推导——`.stb` → `.runtime.toml`。依据:sidecar 是编译产物的配对文件,同名约束由 STCompiler 写侧强制,约定即可。 +- **计划(未实现)**:加可选参数 `--sidecar ` 显式指定 I/O 绑定文件。适用场景:同一程序多套接线配置并存(厂内/现场不同 sidecar)、接线文件与 `.stb` 不同目录。缺省行为**不变**(未指定时回退到同名推导),向后兼容。 + ## 职责 - 加载 `.stb` 映像与 `.runtime.toml` sidecar(I/O 绑定 var → 槽号 → channel/bit)