Eriemon/verilog-generator
About
Agent skill for Verilog-2001 RTL generation and FPGA design workflows.
Other ProjectsMeasured star growth
- in 24h
- +3
- in 7 days
- +10
- in 15 days
- +16
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README-EN.md
Original
Readable RTL → clear behavior → reviewable delivery
Give AI the design intent, review the behavior preview, and receive artifacts you can inspect and verify.
Verilog Generator is an agent skill for practical Verilog-2001 work. It helps you create a module from a clear requirement, understand an existing RTL design, add semantic comments, repair a problem from real diagnostics, and run the checks that your task actually needs. v2.0.0 is suited to less capable LLMs, while v3.0.0 and later target models such as GPT, Claude, DeepSeek, and Gemini.
Demo
Run .\install.bat, select deepseek, then enter this prompt in the verilog workspace in DeepSeek Harness.
/readable-verilog-generator Design a 16-bit stereo I2S transmitter in Verilog.
The demo follows a 16-bit stereo I²S transmitter from frame timing and RTL generation through 498 cycles of verification to the specification and implementation manual.
Demo specification (in Chinese, with held levels redrawn from the original samples): I²S transmitter specification (PDF) · Word DOC · Markdown with waveforms

What it does
- Turn a module requirement into readable, synthesizable Verilog-2001 RTL.
- Explain an existing module through its ports, clock/reset behavior, state, timing, and data flow.
- Add or improve semantic comments without silently changing RTL behavior.
- Repair an existing design against a compiler, linter, simulator, or tool log.
- Prepare a testbench scaffold or request real simulation results when the environment is available.
The skill keeps results honest: a static review, a simulation, a synthesis run, and a hardware result are reported separately. A check that did not run is never presented as a completed result.
| Skill | Use |
|---|---|
| Orchestrator | Coordinate the skills from specification through verification and delivery. |
| Specification | Define ports and cycle behavior with WaveDrom timing diagrams. |
| Reference model | Generate expected outputs with an independent cycle-level Python model. |
| RTL generation | Write a Verilog-2001 module from the confirmed specification. |
| RTL editing | Modify, repair or annotate existing Verilog. |
| Compact procedural statements | Load alongside RTL or testbench authoring to shorten conditional chains, case arms, task calls and loop bodies. |
| Branch simplification | Merge equivalent case or if/else arms while preserving priority and hold behavior. |
| Combinational path pipelining | Insert register stages in arithmetic chains, reductions and deep selectors. Verify latency, throughput, backpressure and priority. |
| RTL functional grouping | Group registers, nets, assignments and processes by function. Separate adjacent always blocks and document each one. |
| Comparison optimization | Evaluate threshold, equality and complementary predicate rewrites for equivalence, area and timing. |
| Formatting | Preview and apply Verilog formatting changes. |
| Static review | Check ports, drivers, combinational logic and handshakes. |
| Verification | Compile RTL and run a self-checking testbench. |
| Debug | Trace simulation mismatches and synthesis errors to the RTL. |
| Bus interfaces | Define ports, timing and transfer conditions for each protocol. |
| State machines | Specify and review three-block FSMs, recovery and output timing. |
| Always blocks | Check register ownership per clocked block and combinational path coverage. |
| FPGA resources | Select primitives or IP for the target device. |
| Workspace | Set up project directories and organize source files. |
| Manuals | Publish the specification and implementation manual. |
For a complete design, the main skill coordinates specification discussion, WaveDrom diagrams, an independent Python model, golden traces, RTL implementation, format, review and simulation. Reopening a specification invalidates its approval. See the dispatcher guide and signal contract with timing example. Complete specification review uses a local WaveDrom CLI to render SVG.
Install
Clone the repository or extract the installation ZIP. Run the command for your system from the root directory and select a platform when prompted.
- Windows:
.\install.bator.\install.ps1 - Linux / macOS (Bash 4.2+):
bash install.sh
Command-line examples for Codex
.\install.ps1 -Platform codex -DryRun -Json
.\install.ps1 -Platform codex -Json
bash install.sh --platform codex --dry-run --json
bash install.sh --platform codex --json
install.bat -Platform codex -DryRun -Json
install.bat -Platform codex -Json
DeepSeek Harness plugin
Download the DSH plugin TGZ and run this command from the download directory:
dsh plugin --profile web add ./dsh-readable-verilog-3.3.0.tgz
Before you start
Prepare only the material that matches your task:

- New module: purpose, module name, ports, clock and reset semantics, cycle-by-cycle behavior, protocol rules, boundary cases, and the checks you expect.
- Existing RTL review: the
.vfiles, relevant testbench or integration context, and the questions or risks you want reviewed. - Commenting or repair: the original RTL, the diagnostic or log, the intended behavior, and whether the change must be comment-only or may change logic.
- Simulation or external validation: a usable testbench with expected outcomes, the simulator/tool environment, and any required project or remote access.
If something important is missing, the skill asks for it before making a consequential change.
How to call it
The dispatcher distinguishes new designs, debugging existing RTL, and optimizing existing RTL before starting a workflow. Pass --task-type design|debug|optimize to select the route explicitly. For existing designs, pass --source in compilation order. Debugging starts from an as-built specification and failure evidence. Optimization starts from the original behavior, constraints, and target metric.
Use a normal request. These examples are ready to adapt:
Use $readable-verilog-generator to create a Verilog-2001 AXI-Stream packet counter.
First ask for any missing interface and timing details, then show me the module spec
and WaveDrom behavior preview before generating RTL.
Use $readable-verilog-generator to review this RTL for reset behavior, handshake
errors, width issues, naming, comments, and synthesis risks. Do not modify the file.
Use $readable-verilog-generator to add semantic comments to this Verilog file.
Preserve every RTL token and show the comment-only verification result.
Use $readable-verilog-generator to diagnose and repair this module from the
attached simulator log. Show the proposed change and validation results first.
Preview and confirm before generation
For a new module or a behavior-changing repair, ask for a preview before asking AI to write the final RTL. The preview should make these decisions visible:

- Interface, port directions, widths, clock, and reset behavior.
- State transitions, handshake conditions, data-path timing, and corner cases.
- At least one WaveDrom scenario that shows the intended cycle behavior.
- The checks that will be run and what each result can prove.
Confirm the preview only after the behavior matches your intent. If it does not, revise the requirement and preview again; do not treat an unconfirmed interpretation as the final design.
What you receive
New module designs start with an approved specification and deliver the spec, RTL, verification results and a code design manual by default. Standalone reviews and formatting tasks retain their narrower scope.

- readable Verilog-2001 source (
.v); - the published specification (
spec/spec.md) and per-source design manual (manual.mdin the release directory), each with DOC and PDF copies; - WaveDrom behavior files (
.jsonand rendered.svg); - a testbench scaffold or updated testbench when requested;
- review, repair, static-check, simulation, or tool reports showing only checks that actually ran;
- a concise explanation of remaining assumptions, warnings, and unverified areas.
Review and deliver

Review the generated files and the checks that actually ran before accepting the handoff. Keep assumptions and unverified areas visible.
Example result
The example below is a 32-bit AXI-Stream meter. It counts bytes only after a TVALID/TREADY transfer, counts packets on a transferred TLAST, and saturates instead of wrapping.
// AXI-Stream transaction detection
assign flag_transfer = i_axis_tvalid & i_axis_tready;
assign flag_packet_end = flag_transfer & i_axis_tlast;
always@(posedge i_axis_aclk or negedge i_axis_arstn)begin
if(i_axis_arstn == 1'b0)begin
cnt_packet_o <= 32'd0;
end else if(i_clear == 1'b1)begin
cnt_packet_o <= 32'd0;
end else if(flag_packet_end == 1'b1)begin
if(data_frame_sum[32] == 1'b0)begin
cnt_packet_o <= data_frame_sum[31:0];
end else begin
cnt_packet_o <= 32'hFFFF_FFFF;
end
end
end
Open the complete commented source →
| Example check | Result |
|---|---|
| Formatter AST | PASS |
| Readability, comments, naming, profile | PASS |
| Errors | 0 |
| Strict warnings | 0 |
This is an example static result for the published sample. It does not claim that a simulator, synthesis tool, hardware target, or remote environment ran.
Star History
Authors and citation
Jiyuan Liu and He Li · Southeast University · HIQC (Heterogeneous Intelligence and Quantum Computing Laboratory)
Related research and future work
The third generation of Verilog Generator uses Fibo’s methods for assigning roles, coordinating multiple tasks to design and refine RTL, and using EDA verification results and fault localization to guide revisions.
We plan to release an RTL agent that internalizes the design and verification skills in this suite. A separate paper describing that agent has been submitted.
FPT 2026 paper citation
@inproceedings{liu2026fibo,
author = {Liu, Jiyuan and Gu, Fangtian and Tang, Yongming and Li, He},
title = {{Fibo}: A Role-Orchestrated Agentic Reasoning Framework for Autonomous {FPGA} {RTL} Design},
booktitle = {2026 International Conference on Field Programmable Technology (FPT)},
year = {2026},
month = dec,
address = {Honolulu, Hawaii, USA}
}
Software citation
If this skill supports your research, teaching, or engineering work, cite CITATION.cff.
@software{liu_2026_verilog_generator,
author = {Liu, Jiyuan and Li, He},
title = {{Verilog Generator}: An Agent Skill for Verilog-2001 RTL Workflows},
year = {2026},
version = {3.3.0},
url = {https://github.com/Eriemon/verilog-generator},
license = {Apache-2.0},
note = {Agent skill for readable Verilog-2001 RTL workflows}
}
Skill details • Apache License 2.0 (Apache-2.0) • Citation • Contact
Explore related projects
Loading…