readable-verilog-generator
VerifiedUse when creating, writing, reviewing, annotating, repairing, refactoring, or validating readable Verilog RTL, including synthesizable Verilog-2001 .v files, existing-RTL analysis, semantic comment annotation, testbench scaffold planning, ASIC-quality review, local or remote Vivado/xsim validation, evidence-backed repair, and workflow trace diagnosis.
assets/examples/remote_fixtures/pipeline_delay/generated/tb/tb_pipeline_delay.v
View on GitHubmodule tb_pipeline_delay; //模块: mock生成模块 - 承载Verilog工作流样例
reg i_clk = 1'b0; //寄存器: mock寄存器 - 保存样例状态或数据
reg i_rstn = 1'b0; //寄存器: mock寄存器 - 保存样例状态或数据
reg i_valid = 1'b0; //寄存器: mock寄存器 - 保存样例状态或数据
reg [7:0] i_data = 8'd0; //寄存器: mock寄存器 - 保存样例状态或数据
wire o_valid; //连线: mock连线 - 连接样例组合视图
wire [7:0] o_data; //连线: mock连线 - 连接样例组合视图
reg [7:0] EXPECTED_VALUE = 8'd1; //寄存器: mock寄存器 - 保存样例状态或数据
wire [7:0] value = o_data; //连线: mock连线 - 连接样例组合视图
always #5 i_clk = ~i_clk; //时序逻辑: mock流水 - 更新样例寄存器
pipeline_delay dut ( //语义说明: mock代码 - 保持样例可审查
.i_clk(i_clk), //端口映射: mock实例 - 连接测试平台信号
.i_rstn(i_rstn), //端口映射: mock实例 - 连接测试平台信号
.i_valid(i_valid), //端口映射: mock实例 - 连接测试平台信号
.i_data(i_data), //端口映射: mock实例 - 连接测试平台信号
.o_valid(o_valid), //端口映射: mock实例 - 连接测试平台信号
.o_data(o_data) //端口映射: mock实例 - 连接测试平台信号
); //语义说明: mock代码 - 保持样例可审查
initial begin //语义说明: mock代码 - 保持样例可审查
// case_1 compares checkpoint value against EXPECTED_VALUE and reports PASS/FAIL
i_rstn = 1'b0; //语义说明: mock代码 - 保持样例可审查
#12; //延时控制: mock测试 - 等待信号稳定
i_rstn = 1'b1; //语义说明: mock代码 - 保持样例可审查
i_data = 8'd1; //语义说明: mock代码 - 保持样例可审查
i_valid = 1'b1; //语义说明: mock代码 - 保持样例可审查
#20; //延时控制: mock测试 - 等待信号稳定
if (o_valid !== 1'b1) begin //条件分支: mock条件 - 选择复位或运行路径
$fatal(1, "FAIL: valid output did not assert"); //语义说明: mock代码 - 保持样例可审查
end //结束代码块: mock流程
if (value !== EXPECTED_VALUE) begin //条件分支: mock条件 - 选择复位或运行路径
$fatal(1, "FAIL: value checkpoint mismatch"); //语义说明: mock代码 - 保持样例可审查
end //结束代码块: mock流程
$display(" > INFO: [Verilog] self-checking mock testbench completed."); //结果输出: mock测试 - 打印PASS或FAIL
$finish; //语义说明: mock代码 - 保持样例可审查
end //结束代码块: mock流程
endmodule //结束模块: mock生成模块
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| planning-and-task-breakdownaddyosmani/agent-skillsBreaks work into ordered tasks. Use when you have a spec or clear requirements and need to break work into implementable tasks. Use when a task feels too large to start, when you need to estimate scope, or when parallel work is possible. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| screenpipethedotmack/claude-memSearch screen and audio history recorded by Screenpipe and optionally save selected context into claude-mem. Use when the user asks to recall desktop activity, a meeting, or something seen in another app through Screenpipe. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |
| contact-widgetnexu-io/open-designSelf-contained floating chat widget with welcome screen, social links, meeting button, and message input. Single HTML file, zero dependencies. | Stars: 108k | Updated | Claude CodeCodex | Verified | Install |
| meeting-notesnexu-io/open-designMeeting notes page — title bar with attendees, agenda checklist, decisions block, action items table with owners + dates, and a "next meeting" footer. Use when the brief mentions "meeting notes", "minutes", "1:1 notes", "all-hands recap", or "会议纪要". | Stars: 108k | Updated | Claude CodeCodex | Verified | Install |