Back to skills
SKILL.md
Readable Verilog Bus
ASecurityDefine physical and logical interface contracts for RTL and check configured vendor IP ports against generated declarations. Use for protocol selection, signal roles and widths, transfer timing, and bridge boundaries.
- 346 stars
- 0 votes
- 0 copies
- 0 views
- Added December 2, 2026
Security analysis
100/100Pro scans all 20 files and shows the line behind each finding
npx -y skills add Eriemon/verilog-generator --skill readable-verilog-bus --agent claude-codeAre you the author of Readable Verilog Bus?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/eriemon-readable-verilog-bus)---
name: readable-verilog-bus
description: Define physical and logical interface contracts for RTL and check configured vendor IP ports against generated declarations. Use for protocol selection, signal roles and widths, transfer timing, and bridge boundaries.
---
# 总线与外设接口
## 选定端点
1. 明确两端角色、版本、工作模式及观察边界。运行 `python -m verilog_generator bus --protocol <协议>`;省略协议列目录,桥接任务重复传 `--protocol`。
2. 从接口族下钻到具体协议/变体。返回的 `family_reference` 是族页,`reference` 是独立设计页,`detail` 是正文。AMBA、AXI、MIPI 等族名需再选具体成员;IIS、CAN FD 分别进入 I2S、CAN-FD 页。未收录端点按正式规范或器件手册提取契约。
3. 读协议页“位宽与参数”,区分物理线数、单拍数据宽度、帧/突发长度及派生字段。记录固定位数或可求值表达式、参数默认展开与支持范围;flit/sideband 取实际配置。角色、版本或板级极性变化时重核方向与波形。
## 写入 spec
- **命名**:用返回的 `port_prefix`,按本模块方向命名为 `i_<协议>_<功能>`、`o_<协议>_<功能>` 或 `io_<协议>_<功能>`。例如 `i_uart_tx_data` 是并行字节,`o_uart_tx_serial` 是串行输出。同协议多端点在协议后加用途,如 `i_uart_console_tx_data`;专用时钟、复位、状态及握手带协议标记,共享系统时钟按域命名。端口表、RTL、实例、模型/TB 和引脚波形共用完整工程名。[UART 声明与 8N1 实例](references/profiles/serial/uart.md)
- **事务**:每个 `bus_interfaces` 记录 name、protocol、role、transfer;补充 revision、clock、signals、options。ports 逐项注明方向、沿、电平、位宽、时钟域。桥接两侧按所属协议命名,分别确认吞吐、能否反压、满缓冲策略、CDC 和恢复边界。
- **芯片与 IP**:分清应用口、用户 UI、PHY、收发器及封装管脚。记录器件、IP 版本及配置;用 `python -m verilog_generator bus-ports --top <模块> --veo <模板.veo> <wrapper.v或.sv>` 读本工程生成声明,`--veo` 可省略。按板级、时钟复位、用户口、维护/调试分组,将正式名称、方向与展开宽度绑定到工程端口、常量或留空输出。缺配置先索取生成物;管脚、电气属性和约束取自原理图、器件资料和 XDC。
## 按场景协作
- **视频**:内部像素级优先用[Video 九端口](references/profiles/video/video.md),同一像素时钟对齐行/场同步、VDE 和数据。桥接示例:`--protocol Video --protocol HDMI`。HDMI/DP/eDP 先确认内置 PHY 或外置芯片,分别列像素口、参考时钟、P/N 对数、DDC/AUX/HPD 和专用控制。
- **工业与采样**:如 Modbus-TCP 跨 TCP 和 MAC–PHY,分别确认寄存器映射、字节流定界和物理线。AD/DA 需定采样/更新沿、码型、有效位/容器位数、通道及延迟;不能停的源明确缓冲与溢出。[采样到 UDP](references/adc-to-udp.md)
- **交接**:端点和握手明确后交[规格](../readable-verilog-spec/SKILL.md)画正常、停顿/竞争、异常恢复场景;[模型](../readable-verilog-model/SKILL.md)按接受拍记账,[生成](../readable-verilog-generate/SKILL.md)或[编辑](../readable-verilog-edit/SKILL.md)据此实现缓冲、CDC 与通道分组。[验证](../readable-verilog-verify/SKILL.md)独立驱动对端,首次协议违规交[故障定位](../readable-verilog-debug/SKILL.md),最终接线与验收证据交[手册](../readable-verilog-manual/SKILL.md)。[AXI4-Lite 分拍写到 SPI 示例](references/bridge.md)
## 接口族索引
| 接口族 | 专项参考 |
|---|---|
| 串行帧、板级收发器与器件总线 | [UART、I²C、SPI、RS 系列](references/profiles/serial.md) |
| 以太网数据和 PHY 管理 | [MII、GMII、RGMII、XGMII、SGMII、MDIO](references/profiles/ethernet.md) |
| 片上互连、流、缓存一致性、调试和低功耗 | [AMBA 系列](references/profiles/amba.md) |
| 其他片上和板级接口 | [Wishbone、Avalon、I²S、CAN](references/profiles/other.md) |
| 图像处理和显示/广播链路 | [Video、HDMI、DP、eDP、V-by-One HS、VGA、SDI 及具体制式](references/profiles/video.md) |
| 高速主机与可插拔模块 | [USB、FT232/FT2232 各料号、QSFP 系列、PCIe](references/profiles/host-link.md) |
| 网络、现场总线和工业反馈 | [UDP、TCP、PTP、Modbus 各版本、工业以太网、IO-Link 与编码器](references/profiles/industrial.md) |
| AD/DA 及 DSP | [并行、SPI、源同步 LVDS、JESD204、定点和 I/Q 样本、TDM/PDM](references/profiles/sampling.md) |
| 存储器与块设备 | [Flash/NOR/NAND、DDR2/3/4、HBM、SSD、NVMe、SATA、SDIO、eMMC](references/profiles/storage.md) |
| 片上互连与调试 | [TileLink 子集、PLB、LPC、JTAG、SWD、J-Link](references/profiles/fabric-debug.md) |
Files in this skill
- SKILL.md
- references/adc-to-udp.md
- references/bridge.md
- references/profiles/amba.md
- references/profiles/amba/ace-lite.md
- references/profiles/amba/ace.md
- references/profiles/amba/ace5-lite.md
- references/profiles/amba/ace5.md
- references/profiles/amba/ahb-lite.md
- references/profiles/amba/ahb.md
- references/profiles/amba/ahb5.md
- references/profiles/amba/amba.md
- references/profiles/amba/apb.md
- references/profiles/amba/apb2.md
- references/profiles/amba/apb3.md
- references/profiles/amba/apb4.md
- references/profiles/amba/apb5.md
- references/profiles/amba/asb.md
- references/profiles/amba/atb.md
- references/profiles/amba/axi-stream.md
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.