readable-verilog-always

readable-verilog-always is a skill for Claude Code, Codex from Eriemon/verilog-generator. It costs 36 tokens per session (844 once invoked), scanned A, original, Apache-2.0.

A guide for creating and reviewing Verilog always blocks, which describe combinational logic or clock-driven register updates.

In plain words
What is it for?
Use it to structure clocked and combinational logic, check register ownership, preserve sampling relationships, and review assignment coverage.
Why use it?
It helps prevent multiple drivers, incorrect reset or enable priority, missing combinational assignments, and unintended storage behavior.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to structure clocked and combinational logic, check register ownership, preserve sampling relationships, and review assignment coverage.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/eriemon/verilog-generator/readable-verilog-always
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Eriemon/verilog-generator --skill readable-verilog-always
Clone the repo
git clone --depth 1 https://github.com/Eriemon/verilog-generator

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for readable-verilog-always

README.md
[![agentmods](https://agentmods.dev/badge/skills/eriemon/verilog-generator/readable-verilog-always/github.svg)](https://agentmods.dev/skills/eriemon/verilog-generator/readable-verilog-always)
Your own site
<a href="https://agentmods.dev/skills/eriemon/verilog-generator/readable-verilog-always"><img src="https://agentmods.dev/badge/skills/eriemon/verilog-generator/readable-verilog-always/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for readable-verilog-always

Your own site · 80×15
<a href="https://agentmods.dev/skills/eriemon/verilog-generator/readable-verilog-always"><img src="https://agentmods.dev/badge/skills/eriemon/verilog-generator/readable-verilog-always.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 844 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00036 $0.00844
Opus 5.5 $0.00014 $0.00338
Sonnet 5.5 $0.00007 $0.00169
Haiku 4.5 $0.00004 $0.00084

Measured yesterday against content hash 931eeebe8c90, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

readable-verilog-always scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/readable-verilog-always/SKILL.md · 50 lines

What it actually says

always 块

  1. 确定触发与写入对象。 对每块列出事件、实际左值、复位值、使能和同拍优先级。区分边沿触发的时序块、组合块和有意锁存。同一模块可包含多个时序块。
  2. 一个时序块最多写一个寄存器。 同一寄存器在复位、使能、保持分支的重复写入或不同位段写入算一个目标。{a,b} <= data; 写入两个独立目标。一个数组的不同索引按同一声明计;另查同址写冲突。时序更新用非阻塞赋值,每个目标核对所有驱动源。
  3. 按原采样关系拆块。 例如 a <= d; b <= a; 分成两个同沿块后,第二块仍采样旧的 a。各自保留原复位极性、同步或异步方式、使能和优先级。原来依赖阻塞赋值顺序、task 副作用或 RAM 推断模板时,先查清依赖,对照逐拍结果再改。
  4. 组合块检查每条路径。 使用 always @(*) 和阻塞赋值。允许同一组合块计算多个相关结果;用入口默认值和完整分支覆盖各目标。有意锁存要记录使能及保持条件。状态转移按状态机单独处理。

标准示例:选择字节并延迟一级输出

组合块先选低字节,i_high 有效时改选高字节。两个时序块各写一个寄存器,共用时钟、同步复位和使能。使能沿到来时,reg_sample 采入所选字节,o_previous 采入沿前的 reg_sample。使能为低时两者保持,复位时两者清零。

module byte_sample_delay (
	input  wire        i_clk,
	input  wire        i_rst,
	input  wire        i_enable,
	input  wire        i_high,
	input  wire [15:0] i_data,
	output reg  [7:0]  o_previous
);
	reg [7:0] selected_byte;
	reg [7:0] reg_sample;

	// 默认值覆盖低字节路径,组合译码使用阻塞赋值。
	always@(*)begin
		selected_byte = i_data[7:0];
		if(i_high)selected_byte = i_data[15:8];
	end

	// 第一级只在使能沿接收样本。
	always@(posedge i_clk)begin
		if(i_rst)reg_sample <= 8'h00;
		else if(i_enable)reg_sample <= selected_byte;
	end

	// 第二级同步取走上一次使能沿保存的样本。
	always@(posedge i_clk)begin
		if(i_rst)o_previous <= 8'h00;
		else if(i_enable)o_previous <= reg_sample;
	end
endmodule

运行 python -m verilog_generator review <RTL文件>。always.multiple_registers 报告时序块位置及写入对象,reg.multiple_drivers 报告不同过程对同一变量的重叠写入。前者是结构建议,后者是驱动错误。按验证回放复位、使能、停顿和连续更新,对照首个受影响的输出拍。

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 50 lines · 36 tokens per session scan A 931eeebe8c90

Subscribe to this mod's changes

readable-verilog-always is a skill published in the GitHub repository Eriemon/verilog-generator (350 stars, last pushed yesterday), licensed Apache-2.0. It adds 36 tokens to every session and 844 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-12-03.

Related

readable-verilog-always compared with skills from other repositories

readable-verilog-always next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
readable-verilog-alwaysEriemon/verilog-generatorSkill350yesterdayApache-2.0A36Claude Code, Codex
readable-hls-generatorEriemon/hls-generatorSkill353mo agononeA40Codex
vivado-cdc-auditmapleleavessssssss-wq/vivado-mcpSkill1811mo agoApache-2.0A58Claude Code, Codex
vivado-constraints-authoringmapleleavessssssss-wq/vivado-mcpSkill1811mo agoApache-2.0A66Claude Code, Codex
vivado-project-bringupmapleleavessssssss-wq/vivado-mcpSkill1811mo agoApache-2.0A50Claude Code, Codex
vivado-timing-closuremapleleavessssssss-wq/vivado-mcpSkill1811mo agoApache-2.0A56Claude Code, Codex
vivado-waveform-debugmapleleavessssssss-wq/vivado-mcpSkill1811mo agoApache-2.0A62Claude Code, Codex