UCAGENT / DOCUMENTATION
UCAgent Documentation¶
UCAgent is an AI verification agent for digital circuit unit testing. It reads the DUT and verification requirements, generates documents, tests, and coverage models in stages, runs tests, and retains reports that can be reviewed. Deterministic Checkers validate each stage. You can intervene manually or connect an external coding agent through MCP.
Complete Your First Run¶
If you are new to UCAgent, start with ToffeeUT unit verification:
- Prerequisites and installation: install UCAgent, Picker, the simulator tools, and OpenCode.
- Global Agent: start UCAgent, then request ToffeeUT verification in one sentence.
- If you already know the workspace and DUT, start the task directly in normal mode. See the ToffeeUT user guide (Chinese) for workflow selection and task recipes. For other entry points, see run modes and MCP integration.
- Results and workflow summary: understand the workspace and verification artifacts.
Read Master mode when you need to manage multiple tasks centrally.
Responsibilities¶
- picker exports RTL as a Python DUT package; UCAgent manages verification workflows and their artifacts.
- UCAgent does not define the DUT specification for you. Prepare the README, RTL, and other references first. A failed test must be checked against the specification to distinguish a test problem from a DUT defect.
- Run modes share workflows and Checkers, but use different model connections, process arrangements, and interaction interfaces.
Documentation Map¶
Getting Started¶
- Prerequisites and installation: environment setup and preparation for model configuration.
- Run modes: normal and Master modes, backends, and interaction interfaces.
- Normal mode: prepare a DUT, configure a model, and run verification in the terminal.
- MCP integration: connect an external coding agent.
- Master mode: manage multiple tasks through the web interface.
- Tasks, workspaces, and workflows: inputs, artifacts, and acceptance criteria.
- Results and workflow summary: read results and review a completed run.
Replace example values such as
<workspace>and<DUT>in commands. In configuration files,{WORKSPACE},{DUT}, and{OUT}are template variables.{OUT}is the selected workflow's output directory; ToffeeUT defaults tout_project.
User Guide¶
- Direct use: run locally with the LangChain backend.
- Human–agent collaboration: pause, inspect, repair, and resume verification.
- CLI options: command-line arguments and environment variables.
- TUI: terminal interface and shortcuts.
- FAQ: common questions.
- LLM Check and Refinement: optional stage reviews and repair suggestions.
- Web Master guide: web interface reference.
- Docker Swarm deployment: build a 2- or 3-node cluster and start Swarm Master Web.
- Skills: optional task guidance and scripts.
- Graphical applications with Xpra: graphical applications in the browser.
Development¶
- Overview: development learning path.
- Development quick start: create a custom workflow.
- Architecture: components and execution.
- Workflow configuration: stages, configuration layers, and template variables.
- Templates and generated artifacts: runtime guidance and output files.
- Custom tools: implement and register tools.
- Tool reference: built-in tools.
- Waveform formats and extensions: configure and extend waveform analysis.
- Checkers: implement deterministic acceptance rules.
- Mini example: a complete runnable workflow.
- Plugin development and distribution: package and publish extensions.
Examples¶
- RTL2Spec documentation generation: generate design documents from XiangShan source and RTL evidence.
- Concurrent instances: verify multiple DUTs concurrently.
- Batch execution: run a series of verification tasks.
- Workflow Builder: build, evaluate, and iterate on custom workflows.