From 842895c6d482bbe6016cbe558e5c46570c6ce4e7 Mon Sep 17 00:00:00 2001 From: xingchen <1098756313@qq.com> Date: Fri, 25 Sep 2026 11:57:25 +0800 Subject: [PATCH] docs: update README.md --- README.md | 32 +++++++++++++++++++++++++++++--- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a1c2233..319a61d 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,29 @@ -# starcodedoc-demo-systemverilog-link-frame - -数据链帧格式校验(SystemVerilog):多文件小项目与文档生成验收 \ No newline at end of file +# 试验数据链路帧监测器 + +语言:SystemVerilog 2012 + +## 项目目标 + +对试验设备低速数据链路帧进行边界识别、长度限制、奇偶校验和错误统计,阻断损坏帧进入后续分析 + +## 模块 + +- 帧状态机:识别起始、载荷和结束 +- 奇偶累积:逐字节校验 +- 错误计数:分类统计长度与校验错误 +- 顶层连接:输出帧有效脉冲 + +## 构建或运行 + +`iverilog -g2012 -s frame_monitor -o monitor.vvp rtl/frame_types.sv rtl/parity_accumulator.sv rtl/error_counters.sv rtl/frame_monitor.sv` + +## 验收重点 + +仿真有效帧、短帧、超长帧和奇偶错误帧;仅有效帧产生完成脉冲,各错误计数独立增长 + +## 文件 + +- `rtl/frame_types.sv` +- `rtl/parity_accumulator.sv` +- `rtl/error_counters.sv` +- `rtl/frame_monitor.sv`